BSSOPENAPI SDK Auto Released By xiaocun.zxc,Version:1.34.45

Signed-off-by: haowei.yao <haowei.yao@alibaba-inc.com>
This commit is contained in:
haowei.yao
2019-03-19 10:16:29 +08:00
parent c63bc0bcc9
commit 63a13d7b24
195 changed files with 17562 additions and 2 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,149 @@
/*
* 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/ApplyInvoiceRequest.h>
using AlibabaCloud::BssOpenApi::Model::ApplyInvoiceRequest;
ApplyInvoiceRequest::ApplyInvoiceRequest() :
RpcServiceRequest("bssopenapi", "2017-12-14", "ApplyInvoice")
{}
ApplyInvoiceRequest::~ApplyInvoiceRequest()
{}
int ApplyInvoiceRequest::getInvoicingType()const
{
return invoicingType_;
}
void ApplyInvoiceRequest::setInvoicingType(int invoicingType)
{
invoicingType_ = invoicingType;
setParameter("InvoicingType", std::to_string(invoicingType));
}
std::string ApplyInvoiceRequest::getApplyUserNick()const
{
return applyUserNick_;
}
void ApplyInvoiceRequest::setApplyUserNick(const std::string& applyUserNick)
{
applyUserNick_ = applyUserNick;
setParameter("ApplyUserNick", applyUserNick);
}
bool ApplyInvoiceRequest::getInvoiceByAmount()const
{
return invoiceByAmount_;
}
void ApplyInvoiceRequest::setInvoiceByAmount(bool invoiceByAmount)
{
invoiceByAmount_ = invoiceByAmount;
setParameter("InvoiceByAmount", invoiceByAmount ? "true" : "false");
}
long ApplyInvoiceRequest::getCustomerId()const
{
return customerId_;
}
void ApplyInvoiceRequest::setCustomerId(long customerId)
{
customerId_ = customerId;
setParameter("CustomerId", std::to_string(customerId));
}
std::vector<long> ApplyInvoiceRequest::getSelectedIds()const
{
return selectedIds_;
}
void ApplyInvoiceRequest::setSelectedIds(const std::vector<long>& selectedIds)
{
selectedIds_ = selectedIds;
for(int i = 0; i!= selectedIds.size(); i++)
setParameter("SelectedIds."+ std::to_string(i), std::to_string(selectedIds.at(i)));
}
int ApplyInvoiceRequest::getProcessWay()const
{
return processWay_;
}
void ApplyInvoiceRequest::setProcessWay(int processWay)
{
processWay_ = processWay;
setParameter("ProcessWay", std::to_string(processWay));
}
long ApplyInvoiceRequest::getCallerBid()const
{
return callerBid_;
}
void ApplyInvoiceRequest::setCallerBid(long callerBid)
{
callerBid_ = callerBid;
setParameter("CallerBid", std::to_string(callerBid));
}
long ApplyInvoiceRequest::getOwnerId()const
{
return ownerId_;
}
void ApplyInvoiceRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
long ApplyInvoiceRequest::getInvoiceAmount()const
{
return invoiceAmount_;
}
void ApplyInvoiceRequest::setInvoiceAmount(long invoiceAmount)
{
invoiceAmount_ = invoiceAmount;
setParameter("InvoiceAmount", std::to_string(invoiceAmount));
}
long ApplyInvoiceRequest::getAddressId()const
{
return addressId_;
}
void ApplyInvoiceRequest::setAddressId(long addressId)
{
addressId_ = addressId;
setParameter("AddressId", std::to_string(addressId));
}
long ApplyInvoiceRequest::getCallerUid()const
{
return callerUid_;
}
void ApplyInvoiceRequest::setCallerUid(long callerUid)
{
callerUid_ = callerUid;
setParameter("CallerUid", std::to_string(callerUid));
}

View File

@@ -0,0 +1,74 @@
/*
* 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/ApplyInvoiceResult.h>
#include <json/json.h>
using namespace AlibabaCloud::BssOpenApi;
using namespace AlibabaCloud::BssOpenApi::Model;
ApplyInvoiceResult::ApplyInvoiceResult() :
ServiceResult()
{}
ApplyInvoiceResult::ApplyInvoiceResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ApplyInvoiceResult::~ApplyInvoiceResult()
{}
void ApplyInvoiceResult::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["InvoiceApplyId"].isNull())
data_.invoiceApplyId = std::stol(dataNode["InvoiceApplyId"].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 ApplyInvoiceResult::getMessage()const
{
return message_;
}
ApplyInvoiceResult::Data ApplyInvoiceResult::getData()const
{
return data_;
}
std::string ApplyInvoiceResult::getCode()const
{
return code_;
}
bool ApplyInvoiceResult::getSuccess()const
{
return success_;
}

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/CancelOrderRequest.h>
using AlibabaCloud::BssOpenApi::Model::CancelOrderRequest;
CancelOrderRequest::CancelOrderRequest() :
RpcServiceRequest("bssopenapi", "2017-12-14", "CancelOrder")
{}
CancelOrderRequest::~CancelOrderRequest()
{}
std::string CancelOrderRequest::getOrderId()const
{
return orderId_;
}
void CancelOrderRequest::setOrderId(const std::string& orderId)
{
orderId_ = orderId;
setParameter("OrderId", orderId);
}
long CancelOrderRequest::getOwnerId()const
{
return ownerId_;
}
void CancelOrderRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}

View File

@@ -0,0 +1,74 @@
/*
* 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/CancelOrderResult.h>
#include <json/json.h>
using namespace AlibabaCloud::BssOpenApi;
using namespace AlibabaCloud::BssOpenApi::Model;
CancelOrderResult::CancelOrderResult() :
ServiceResult()
{}
CancelOrderResult::CancelOrderResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CancelOrderResult::~CancelOrderResult()
{}
void CancelOrderResult::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["HostId"].isNull())
data_.hostId = dataNode["HostId"].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 CancelOrderResult::getMessage()const
{
return message_;
}
CancelOrderResult::Data CancelOrderResult::getData()const
{
return data_;
}
std::string CancelOrderResult::getCode()const
{
return code_;
}
bool CancelOrderResult::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/ChangeConsumeAmountRequest.h>
using AlibabaCloud::BssOpenApi::Model::ChangeConsumeAmountRequest;
ChangeConsumeAmountRequest::ChangeConsumeAmountRequest() :
RpcServiceRequest("bssopenapi", "2017-12-14", "ChangeConsumeAmount")
{}
ChangeConsumeAmountRequest::~ChangeConsumeAmountRequest()
{}
long ChangeConsumeAmountRequest::getUid()const
{
return uid_;
}
void ChangeConsumeAmountRequest::setUid(long uid)
{
uid_ = uid;
setParameter("Uid", std::to_string(uid));
}
std::string ChangeConsumeAmountRequest::getAdjustType()const
{
return adjustType_;
}
void ChangeConsumeAmountRequest::setAdjustType(const std::string& adjustType)
{
adjustType_ = adjustType;
setParameter("AdjustType", adjustType);
}
std::string ChangeConsumeAmountRequest::getAmount()const
{
return amount_;
}
void ChangeConsumeAmountRequest::setAmount(const std::string& amount)
{
amount_ = amount;
setParameter("Amount", amount);
}
std::string ChangeConsumeAmountRequest::getOutBizId()const
{
return outBizId_;
}
void ChangeConsumeAmountRequest::setOutBizId(const std::string& outBizId)
{
outBizId_ = outBizId;
setParameter("OutBizId", outBizId);
}
std::string ChangeConsumeAmountRequest::getExtendMap()const
{
return extendMap_;
}
void ChangeConsumeAmountRequest::setExtendMap(const std::string& extendMap)
{
extendMap_ = extendMap;
setParameter("ExtendMap", extendMap);
}
std::string ChangeConsumeAmountRequest::getCurrency()const
{
return currency_;
}
void ChangeConsumeAmountRequest::setCurrency(const std::string& currency)
{
currency_ = currency;
setParameter("Currency", currency);
}
std::string ChangeConsumeAmountRequest::getSource()const
{
return source_;
}
void ChangeConsumeAmountRequest::setSource(const std::string& source)
{
source_ = source;
setParameter("Source", source);
}
std::string ChangeConsumeAmountRequest::getBid()const
{
return bid_;
}
void ChangeConsumeAmountRequest::setBid(const std::string& bid)
{
bid_ = bid;
setParameter("Bid", bid);
}
std::string ChangeConsumeAmountRequest::getBusinessType()const
{
return businessType_;
}
void ChangeConsumeAmountRequest::setBusinessType(const std::string& businessType)
{
businessType_ = businessType;
setParameter("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/ChangeConsumeAmountResult.h>
#include <json/json.h>
using namespace AlibabaCloud::BssOpenApi;
using namespace AlibabaCloud::BssOpenApi::Model;
ChangeConsumeAmountResult::ChangeConsumeAmountResult() :
ServiceResult()
{}
ChangeConsumeAmountResult::ChangeConsumeAmountResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ChangeConsumeAmountResult::~ChangeConsumeAmountResult()
{}
void ChangeConsumeAmountResult::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 ChangeConsumeAmountResult::getMessage()const
{
return message_;
}
std::string ChangeConsumeAmountResult::getData()const
{
return data_;
}
std::string ChangeConsumeAmountResult::getCode()const
{
return code_;
}
bool ChangeConsumeAmountResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,93 @@
/*
* 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/ConvertChargeTypeRequest.h>
using AlibabaCloud::BssOpenApi::Model::ConvertChargeTypeRequest;
ConvertChargeTypeRequest::ConvertChargeTypeRequest() :
RpcServiceRequest("bssopenapi", "2017-12-14", "ConvertChargeType")
{}
ConvertChargeTypeRequest::~ConvertChargeTypeRequest()
{}
int ConvertChargeTypeRequest::getPeriod()const
{
return period_;
}
void ConvertChargeTypeRequest::setPeriod(int period)
{
period_ = period;
setParameter("Period", std::to_string(period));
}
std::string ConvertChargeTypeRequest::getProductCode()const
{
return productCode_;
}
void ConvertChargeTypeRequest::setProductCode(const std::string& productCode)
{
productCode_ = productCode;
setParameter("ProductCode", productCode);
}
std::string ConvertChargeTypeRequest::getInstanceId()const
{
return instanceId_;
}
void ConvertChargeTypeRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}
std::string ConvertChargeTypeRequest::getSubscriptionType()const
{
return subscriptionType_;
}
void ConvertChargeTypeRequest::setSubscriptionType(const std::string& subscriptionType)
{
subscriptionType_ = subscriptionType;
setParameter("SubscriptionType", subscriptionType);
}
long ConvertChargeTypeRequest::getOwnerId()const
{
return ownerId_;
}
void ConvertChargeTypeRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string ConvertChargeTypeRequest::getProductType()const
{
return productType_;
}
void ConvertChargeTypeRequest::setProductType(const std::string& productType)
{
productType_ = productType;
setParameter("ProductType", productType);
}

View File

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

View File

@@ -0,0 +1,121 @@
/*
* 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/CreateInstanceRequest.h>
using AlibabaCloud::BssOpenApi::Model::CreateInstanceRequest;
CreateInstanceRequest::CreateInstanceRequest() :
RpcServiceRequest("bssopenapi", "2017-12-14", "CreateInstance")
{}
CreateInstanceRequest::~CreateInstanceRequest()
{}
std::string CreateInstanceRequest::getProductCode()const
{
return productCode_;
}
void CreateInstanceRequest::setProductCode(const std::string& productCode)
{
productCode_ = productCode;
setParameter("ProductCode", productCode);
}
int CreateInstanceRequest::getPeriod()const
{
return period_;
}
void CreateInstanceRequest::setPeriod(int period)
{
period_ = period;
setParameter("Period", std::to_string(period));
}
std::string CreateInstanceRequest::getSubscriptionType()const
{
return subscriptionType_;
}
void CreateInstanceRequest::setSubscriptionType(const std::string& subscriptionType)
{
subscriptionType_ = subscriptionType;
setParameter("SubscriptionType", subscriptionType);
}
int CreateInstanceRequest::getRenewPeriod()const
{
return renewPeriod_;
}
void CreateInstanceRequest::setRenewPeriod(int renewPeriod)
{
renewPeriod_ = renewPeriod;
setParameter("RenewPeriod", std::to_string(renewPeriod));
}
std::vector<CreateInstanceRequest::Parameter> CreateInstanceRequest::getParameter()const
{
return parameter_;
}
void CreateInstanceRequest::setParameter(const std::vector<Parameter>& parameter)
{
parameter_ = parameter;
int i = 0;
for(int i = 0; i!= parameter.size(); i++) {
auto obj = parameter.at(i);
std::string str ="Parameter."+ std::to_string(i);
setParameter(str + ".Code", obj.code);
setParameter(str + ".Value", obj.value);
}
}
std::string CreateInstanceRequest::getRenewalStatus()const
{
return renewalStatus_;
}
void CreateInstanceRequest::setRenewalStatus(const std::string& renewalStatus)
{
renewalStatus_ = renewalStatus;
setParameter("RenewalStatus", renewalStatus);
}
long CreateInstanceRequest::getOwnerId()const
{
return ownerId_;
}
void CreateInstanceRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string CreateInstanceRequest::getProductType()const
{
return productType_;
}
void CreateInstanceRequest::setProductType(const std::string& productType)
{
productType_ = productType;
setParameter("ProductType", productType);
}

View File

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

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/CreateResourcePackageRequest.h>
using AlibabaCloud::BssOpenApi::Model::CreateResourcePackageRequest;
CreateResourcePackageRequest::CreateResourcePackageRequest() :
RpcServiceRequest("bssopenapi", "2017-12-14", "CreateResourcePackage")
{}
CreateResourcePackageRequest::~CreateResourcePackageRequest()
{}
int CreateResourcePackageRequest::getDuration()const
{
return duration_;
}
void CreateResourcePackageRequest::setDuration(int duration)
{
duration_ = duration;
setParameter("Duration", std::to_string(duration));
}
std::string CreateResourcePackageRequest::getProductCode()const
{
return productCode_;
}
void CreateResourcePackageRequest::setProductCode(const std::string& productCode)
{
productCode_ = productCode;
setParameter("ProductCode", productCode);
}
std::string CreateResourcePackageRequest::getSpecification()const
{
return specification_;
}
void CreateResourcePackageRequest::setSpecification(const std::string& specification)
{
specification_ = specification;
setParameter("Specification", specification);
}
long CreateResourcePackageRequest::getOwnerId()const
{
return ownerId_;
}
void CreateResourcePackageRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string CreateResourcePackageRequest::getPackageType()const
{
return packageType_;
}
void CreateResourcePackageRequest::setPackageType(const std::string& packageType)
{
packageType_ = packageType;
setParameter("PackageType", packageType);
}
std::string CreateResourcePackageRequest::getEffectiveDate()const
{
return effectiveDate_;
}
void CreateResourcePackageRequest::setEffectiveDate(const std::string& effectiveDate)
{
effectiveDate_ = effectiveDate;
setParameter("EffectiveDate", effectiveDate);
}
std::string CreateResourcePackageRequest::getPricingCycle()const
{
return pricingCycle_;
}
void CreateResourcePackageRequest::setPricingCycle(const std::string& pricingCycle)
{
pricingCycle_ = pricingCycle;
setParameter("PricingCycle", pricingCycle);
}

View File

@@ -0,0 +1,83 @@
/*
* 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/CreateResourcePackageResult.h>
#include <json/json.h>
using namespace AlibabaCloud::BssOpenApi;
using namespace AlibabaCloud::BssOpenApi::Model;
CreateResourcePackageResult::CreateResourcePackageResult() :
ServiceResult()
{}
CreateResourcePackageResult::CreateResourcePackageResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateResourcePackageResult::~CreateResourcePackageResult()
{}
void CreateResourcePackageResult::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["OrderId"].isNull())
data_.orderId = std::stol(dataNode["OrderId"].asString());
if(!dataNode["InstanceId"].isNull())
data_.instanceId = dataNode["InstanceId"].asString();
if(!value["OrderId"].isNull())
orderId_ = std::stol(value["OrderId"].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 CreateResourcePackageResult::getMessage()const
{
return message_;
}
CreateResourcePackageResult::Data CreateResourcePackageResult::getData()const
{
return data_;
}
long CreateResourcePackageResult::getOrderId()const
{
return orderId_;
}
std::string CreateResourcePackageResult::getCode()const
{
return code_;
}
bool CreateResourcePackageResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,82 @@
/*
* 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/CreateUserQuotaRequest.h>
using AlibabaCloud::BssOpenApi::Model::CreateUserQuotaRequest;
CreateUserQuotaRequest::CreateUserQuotaRequest() :
RpcServiceRequest("bssopenapi", "2017-12-14", "CreateUserQuota")
{}
CreateUserQuotaRequest::~CreateUserQuotaRequest()
{}
long CreateUserQuotaRequest::getUid()const
{
return uid_;
}
void CreateUserQuotaRequest::setUid(long uid)
{
uid_ = uid;
setParameter("Uid", std::to_string(uid));
}
std::string CreateUserQuotaRequest::getAmount()const
{
return amount_;
}
void CreateUserQuotaRequest::setAmount(const std::string& amount)
{
amount_ = amount;
setParameter("Amount", amount);
}
std::string CreateUserQuotaRequest::getOutBizId()const
{
return outBizId_;
}
void CreateUserQuotaRequest::setOutBizId(const std::string& outBizId)
{
outBizId_ = outBizId;
setParameter("OutBizId", outBizId);
}
std::string CreateUserQuotaRequest::getCurrency()const
{
return currency_;
}
void CreateUserQuotaRequest::setCurrency(const std::string& currency)
{
currency_ = currency;
setParameter("Currency", currency);
}
std::string CreateUserQuotaRequest::getBid()const
{
return bid_;
}
void CreateUserQuotaRequest::setBid(const std::string& bid)
{
bid_ = bid;
setParameter("Bid", bid);
}

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/CreateUserQuotaResult.h>
#include <json/json.h>
using namespace AlibabaCloud::BssOpenApi;
using namespace AlibabaCloud::BssOpenApi::Model;
CreateUserQuotaResult::CreateUserQuotaResult() :
ServiceResult()
{}
CreateUserQuotaResult::CreateUserQuotaResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateUserQuotaResult::~CreateUserQuotaResult()
{}
void CreateUserQuotaResult::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 CreateUserQuotaResult::getMessage()const
{
return message_;
}
bool CreateUserQuotaResult::getData()const
{
return data_;
}
std::string CreateUserQuotaResult::getCode()const
{
return code_;
}
bool CreateUserQuotaResult::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/DescribePricingModuleRequest.h>
using AlibabaCloud::BssOpenApi::Model::DescribePricingModuleRequest;
DescribePricingModuleRequest::DescribePricingModuleRequest() :
RpcServiceRequest("bssopenapi", "2017-12-14", "DescribePricingModule")
{}
DescribePricingModuleRequest::~DescribePricingModuleRequest()
{}
std::string DescribePricingModuleRequest::getProductCode()const
{
return productCode_;
}
void DescribePricingModuleRequest::setProductCode(const std::string& productCode)
{
productCode_ = productCode;
setParameter("ProductCode", productCode);
}
std::string DescribePricingModuleRequest::getSubscriptionType()const
{
return subscriptionType_;
}
void DescribePricingModuleRequest::setSubscriptionType(const std::string& subscriptionType)
{
subscriptionType_ = subscriptionType;
setParameter("SubscriptionType", subscriptionType);
}
long DescribePricingModuleRequest::getOwnerId()const
{
return ownerId_;
}
void DescribePricingModuleRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string DescribePricingModuleRequest::getProductType()const
{
return productType_;
}
void DescribePricingModuleRequest::setProductType(const std::string& productType)
{
productType_ = productType;
setParameter("ProductType", productType);
}

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/DescribePricingModuleResult.h>
#include <json/json.h>
using namespace AlibabaCloud::BssOpenApi;
using namespace AlibabaCloud::BssOpenApi::Model;
DescribePricingModuleResult::DescribePricingModuleResult() :
ServiceResult()
{}
DescribePricingModuleResult::DescribePricingModuleResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribePricingModuleResult::~DescribePricingModuleResult()
{}
void DescribePricingModuleResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto dataNode = value["Data"];
auto allModuleList = value["ModuleList"]["Module"];
for (auto value : allModuleList)
{
Data::Module moduleObject;
if(!value["ModuleCode"].isNull())
moduleObject.moduleCode = value["ModuleCode"].asString();
if(!value["ModuleName"].isNull())
moduleObject.moduleName = value["ModuleName"].asString();
if(!value["PriceType"].isNull())
moduleObject.priceType = value["PriceType"].asString();
if(!value["Currency"].isNull())
moduleObject.currency = value["Currency"].asString();
auto allConfigList = value["ConfigList"]["ConfigList"];
for (auto value : allConfigList)
moduleObject.configList.push_back(value.asString());
data_.moduleList.push_back(moduleObject);
}
auto allAttributeList = value["AttributeList"]["Attribute"];
for (auto value : allAttributeList)
{
Data::Attribute attributeObject;
if(!value["Code"].isNull())
attributeObject.code = value["Code"].asString();
if(!value["Name"].isNull())
attributeObject.name = value["Name"].asString();
if(!value["Unit"].isNull())
attributeObject.unit = value["Unit"].asString();
auto allValues = value["Values"]["AttributeValue"];
for (auto value : allValues)
{
Data::Attribute::AttributeValue valuesObject;
if(!value["Type"].isNull())
valuesObject.type = value["Type"].asString();
if(!value["Name"].isNull())
valuesObject.name = value["Name"].asString();
if(!value["Value"].isNull())
valuesObject.value = value["Value"].asString();
if(!value["Remark"].isNull())
valuesObject.remark = value["Remark"].asString();
attributeObject.values.push_back(valuesObject);
}
data_.attributeList.push_back(attributeObject);
}
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 DescribePricingModuleResult::getMessage()const
{
return message_;
}
DescribePricingModuleResult::Data DescribePricingModuleResult::getData()const
{
return data_;
}
std::string DescribePricingModuleResult::getCode()const
{
return code_;
}
bool DescribePricingModuleResult::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/DescribeResourcePackageProductRequest.h>
using AlibabaCloud::BssOpenApi::Model::DescribeResourcePackageProductRequest;
DescribeResourcePackageProductRequest::DescribeResourcePackageProductRequest() :
RpcServiceRequest("bssopenapi", "2017-12-14", "DescribeResourcePackageProduct")
{}
DescribeResourcePackageProductRequest::~DescribeResourcePackageProductRequest()
{}
std::string DescribeResourcePackageProductRequest::getProductCode()const
{
return productCode_;
}
void DescribeResourcePackageProductRequest::setProductCode(const std::string& productCode)
{
productCode_ = productCode;
setParameter("ProductCode", productCode);
}

View File

@@ -0,0 +1,133 @@
/*
* 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/DescribeResourcePackageProductResult.h>
#include <json/json.h>
using namespace AlibabaCloud::BssOpenApi;
using namespace AlibabaCloud::BssOpenApi::Model;
DescribeResourcePackageProductResult::DescribeResourcePackageProductResult() :
ServiceResult()
{}
DescribeResourcePackageProductResult::DescribeResourcePackageProductResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeResourcePackageProductResult::~DescribeResourcePackageProductResult()
{}
void DescribeResourcePackageProductResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto dataNode = value["Data"];
auto allResourcePackages = value["ResourcePackages"]["ResourcePackage"];
for (auto value : allResourcePackages)
{
Data::ResourcePackage resourcePackageObject;
if(!value["ProductCode"].isNull())
resourcePackageObject.productCode = value["ProductCode"].asString();
if(!value["ProductType"].isNull())
resourcePackageObject.productType = value["ProductType"].asString();
if(!value["Name"].isNull())
resourcePackageObject.name = value["Name"].asString();
auto allPackageTypes = value["PackageTypes"]["PackageType"];
for (auto value : allPackageTypes)
{
Data::ResourcePackage::PackageType packageTypesObject;
if(!value["Name"].isNull())
packageTypesObject.name = value["Name"].asString();
if(!value["Code"].isNull())
packageTypesObject.code = value["Code"].asString();
auto allProperties = value["Properties"]["Property"];
for (auto value : allProperties)
{
Data::ResourcePackage::PackageType::Property propertiesObject;
if(!value["Name"].isNull())
propertiesObject.name = value["Name"].asString();
if(!value["Value"].isNull())
propertiesObject.value = value["Value"].asString();
packageTypesObject.properties.push_back(propertiesObject);
}
auto allSpecifications = value["Specifications"]["Specification"];
for (auto value : allSpecifications)
{
Data::ResourcePackage::PackageType::Specification specificationsObject;
if(!value["Name"].isNull())
specificationsObject.name = value["Name"].asString();
if(!value["Value"].isNull())
specificationsObject.value = value["Value"].asString();
auto allAvailableDurations = value["AvailableDurations"]["AvailableDuration"];
for (auto value : allAvailableDurations)
{
Data::ResourcePackage::PackageType::Specification::AvailableDuration availableDurationsObject;
if(!value["Name"].isNull())
availableDurationsObject.name = value["Name"].asString();
if(!value["Value"].isNull())
availableDurationsObject.value = std::stoi(value["Value"].asString());
if(!value["Unit"].isNull())
availableDurationsObject.unit = value["Unit"].asString();
specificationsObject.availableDurations.push_back(availableDurationsObject);
}
packageTypesObject.specifications.push_back(specificationsObject);
}
resourcePackageObject.packageTypes.push_back(packageTypesObject);
}
data_.resourcePackages.push_back(resourcePackageObject);
}
if(!value["OrderId"].isNull())
orderId_ = std::stol(value["OrderId"].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 DescribeResourcePackageProductResult::getMessage()const
{
return message_;
}
DescribeResourcePackageProductResult::Data DescribeResourcePackageProductResult::getData()const
{
return data_;
}
long DescribeResourcePackageProductResult::getOrderId()const
{
return orderId_;
}
std::string DescribeResourcePackageProductResult::getCode()const
{
return code_;
}
bool DescribeResourcePackageProductResult::getSuccess()const
{
return success_;
}

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/EnableBillGenerationRequest.h>
using AlibabaCloud::BssOpenApi::Model::EnableBillGenerationRequest;
EnableBillGenerationRequest::EnableBillGenerationRequest() :
RpcServiceRequest("bssopenapi", "2017-12-14", "EnableBillGeneration")
{}
EnableBillGenerationRequest::~EnableBillGenerationRequest()
{}
std::string EnableBillGenerationRequest::getProductCode()const
{
return productCode_;
}
void EnableBillGenerationRequest::setProductCode(const std::string& productCode)
{
productCode_ = productCode;
setParameter("ProductCode", productCode);
}
long EnableBillGenerationRequest::getOwnerId()const
{
return ownerId_;
}
void EnableBillGenerationRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}

View File

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

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/GetOrderDetailRequest.h>
using AlibabaCloud::BssOpenApi::Model::GetOrderDetailRequest;
GetOrderDetailRequest::GetOrderDetailRequest() :
RpcServiceRequest("bssopenapi", "2017-12-14", "GetOrderDetail")
{}
GetOrderDetailRequest::~GetOrderDetailRequest()
{}
std::string GetOrderDetailRequest::getOrderId()const
{
return orderId_;
}
void GetOrderDetailRequest::setOrderId(const std::string& orderId)
{
orderId_ = orderId;
setParameter("OrderId", orderId);
}
long GetOrderDetailRequest::getOwnerId()const
{
return ownerId_;
}
void GetOrderDetailRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}

View File

@@ -0,0 +1,132 @@
/*
* 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/GetOrderDetailResult.h>
#include <json/json.h>
using namespace AlibabaCloud::BssOpenApi;
using namespace AlibabaCloud::BssOpenApi::Model;
GetOrderDetailResult::GetOrderDetailResult() :
ServiceResult()
{}
GetOrderDetailResult::GetOrderDetailResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetOrderDetailResult::~GetOrderDetailResult()
{}
void GetOrderDetailResult::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["HostName"].isNull())
data_.hostName = dataNode["HostName"].asString();
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 allOrderList = value["OrderList"]["Order"];
for (auto value : allOrderList)
{
Data::Order orderObject;
if(!value["OrderId"].isNull())
orderObject.orderId = value["OrderId"].asString();
if(!value["SubOrderId"].isNull())
orderObject.subOrderId = value["SubOrderId"].asString();
if(!value["ProductCode"].isNull())
orderObject.productCode = value["ProductCode"].asString();
if(!value["ProductType"].isNull())
orderObject.productType = value["ProductType"].asString();
if(!value["SubscriptionType"].isNull())
orderObject.subscriptionType = value["SubscriptionType"].asString();
if(!value["OrderType"].isNull())
orderObject.orderType = value["OrderType"].asString();
if(!value["CreateTime"].isNull())
orderObject.createTime = value["CreateTime"].asString();
if(!value["PaymentTime"].isNull())
orderObject.paymentTime = value["PaymentTime"].asString();
if(!value["PaymentStatus"].isNull())
orderObject.paymentStatus = value["PaymentStatus"].asString();
if(!value["Region"].isNull())
orderObject.region = value["Region"].asString();
if(!value["Config"].isNull())
orderObject.config = value["Config"].asString();
if(!value["Quantity"].isNull())
orderObject.quantity = value["Quantity"].asString();
if(!value["UsageStartTime"].isNull())
orderObject.usageStartTime = value["UsageStartTime"].asString();
if(!value["UsageEndTime"].isNull())
orderObject.usageEndTime = value["UsageEndTime"].asString();
if(!value["InstanceIDs"].isNull())
orderObject.instanceIDs = value["InstanceIDs"].asString();
if(!value["PretaxGrossAmount"].isNull())
orderObject.pretaxGrossAmount = value["PretaxGrossAmount"].asString();
if(!value["PretaxAmount"].isNull())
orderObject.pretaxAmount = value["PretaxAmount"].asString();
if(!value["Currency"].isNull())
orderObject.currency = value["Currency"].asString();
if(!value["PretaxAmountLocal"].isNull())
orderObject.pretaxAmountLocal = value["PretaxAmountLocal"].asString();
if(!value["Tax"].isNull())
orderObject.tax = value["Tax"].asString();
if(!value["AfterTaxAmount"].isNull())
orderObject.afterTaxAmount = value["AfterTaxAmount"].asString();
if(!value["PaymentCurrency"].isNull())
orderObject.paymentCurrency = value["PaymentCurrency"].asString();
if(!value["Operator"].isNull())
orderObject._operator = value["Operator"].asString();
data_.orderList.push_back(orderObject);
}
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 GetOrderDetailResult::getMessage()const
{
return message_;
}
GetOrderDetailResult::Data GetOrderDetailResult::getData()const
{
return data_;
}
std::string GetOrderDetailResult::getCode()const
{
return code_;
}
bool GetOrderDetailResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,100 @@
/*
* 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/GetPayAsYouGoPriceRequest.h>
using AlibabaCloud::BssOpenApi::Model::GetPayAsYouGoPriceRequest;
GetPayAsYouGoPriceRequest::GetPayAsYouGoPriceRequest() :
RpcServiceRequest("bssopenapi", "2017-12-14", "GetPayAsYouGoPrice")
{}
GetPayAsYouGoPriceRequest::~GetPayAsYouGoPriceRequest()
{}
std::string GetPayAsYouGoPriceRequest::getProductCode()const
{
return productCode_;
}
void GetPayAsYouGoPriceRequest::setProductCode(const std::string& productCode)
{
productCode_ = productCode;
setParameter("ProductCode", productCode);
}
std::string GetPayAsYouGoPriceRequest::getSubscriptionType()const
{
return subscriptionType_;
}
void GetPayAsYouGoPriceRequest::setSubscriptionType(const std::string& subscriptionType)
{
subscriptionType_ = subscriptionType;
setParameter("SubscriptionType", subscriptionType);
}
std::vector<GetPayAsYouGoPriceRequest::ModuleList> GetPayAsYouGoPriceRequest::getModuleList()const
{
return moduleList_;
}
void GetPayAsYouGoPriceRequest::setModuleList(const std::vector<ModuleList>& moduleList)
{
moduleList_ = moduleList;
int i = 0;
for(int i = 0; i!= moduleList.size(); i++) {
auto obj = moduleList.at(i);
std::string str ="ModuleList."+ std::to_string(i);
setParameter(str + ".ModuleCode", obj.moduleCode);
setParameter(str + ".PriceType", obj.priceType);
setParameter(str + ".Config", obj.config);
}
}
long GetPayAsYouGoPriceRequest::getOwnerId()const
{
return ownerId_;
}
void GetPayAsYouGoPriceRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string GetPayAsYouGoPriceRequest::getRegion()const
{
return region_;
}
void GetPayAsYouGoPriceRequest::setRegion(const std::string& region)
{
region_ = region;
setParameter("Region", region);
}
std::string GetPayAsYouGoPriceRequest::getProductType()const
{
return productType_;
}
void GetPayAsYouGoPriceRequest::setProductType(const std::string& productType)
{
productType_ = productType;
setParameter("ProductType", productType);
}

View File

@@ -0,0 +1,102 @@
/*
* 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/GetPayAsYouGoPriceResult.h>
#include <json/json.h>
using namespace AlibabaCloud::BssOpenApi;
using namespace AlibabaCloud::BssOpenApi::Model;
GetPayAsYouGoPriceResult::GetPayAsYouGoPriceResult() :
ServiceResult()
{}
GetPayAsYouGoPriceResult::GetPayAsYouGoPriceResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetPayAsYouGoPriceResult::~GetPayAsYouGoPriceResult()
{}
void GetPayAsYouGoPriceResult::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["Currency"].isNull())
data_.currency = dataNode["Currency"].asString();
auto allModuleDetails = value["ModuleDetails"]["ModuleDetail"];
for (auto value : allModuleDetails)
{
Data::ModuleDetail moduleDetailObject;
if(!value["ModuleCode"].isNull())
moduleDetailObject.moduleCode = value["ModuleCode"].asString();
if(!value["OriginalCost"].isNull())
moduleDetailObject.originalCost = std::stof(value["OriginalCost"].asString());
if(!value["InvoiceDiscount"].isNull())
moduleDetailObject.invoiceDiscount = std::stof(value["InvoiceDiscount"].asString());
if(!value["CostAfterDiscount"].isNull())
moduleDetailObject.costAfterDiscount = std::stof(value["CostAfterDiscount"].asString());
if(!value["UnitPrice"].isNull())
moduleDetailObject.unitPrice = std::stof(value["UnitPrice"].asString());
data_.moduleDetails.push_back(moduleDetailObject);
}
auto allPromotionDetails = value["PromotionDetails"]["PromotionDetail"];
for (auto value : allPromotionDetails)
{
Data::PromotionDetail promotionDetailObject;
if(!value["PromotionName"].isNull())
promotionDetailObject.promotionName = value["PromotionName"].asString();
if(!value["PromotionDesc"].isNull())
promotionDetailObject.promotionDesc = value["PromotionDesc"].asString();
if(!value["PromotionId"].isNull())
promotionDetailObject.promotionId = std::stol(value["PromotionId"].asString());
data_.promotionDetails.push_back(promotionDetailObject);
}
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 GetPayAsYouGoPriceResult::getMessage()const
{
return message_;
}
GetPayAsYouGoPriceResult::Data GetPayAsYouGoPriceResult::getData()const
{
return data_;
}
std::string GetPayAsYouGoPriceResult::getCode()const
{
return code_;
}
bool GetPayAsYouGoPriceResult::getSuccess()const
{
return success_;
}

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/GetResourcePackagePriceRequest.h>
using AlibabaCloud::BssOpenApi::Model::GetResourcePackagePriceRequest;
GetResourcePackagePriceRequest::GetResourcePackagePriceRequest() :
RpcServiceRequest("bssopenapi", "2017-12-14", "GetResourcePackagePrice")
{}
GetResourcePackagePriceRequest::~GetResourcePackagePriceRequest()
{}
int GetResourcePackagePriceRequest::getDuration()const
{
return duration_;
}
void GetResourcePackagePriceRequest::setDuration(int duration)
{
duration_ = duration;
setParameter("Duration", std::to_string(duration));
}
std::string GetResourcePackagePriceRequest::getProductCode()const
{
return productCode_;
}
void GetResourcePackagePriceRequest::setProductCode(const std::string& productCode)
{
productCode_ = productCode;
setParameter("ProductCode", productCode);
}
std::string GetResourcePackagePriceRequest::getSpecification()const
{
return specification_;
}
void GetResourcePackagePriceRequest::setSpecification(const std::string& specification)
{
specification_ = specification;
setParameter("Specification", specification);
}
long GetResourcePackagePriceRequest::getOwnerId()const
{
return ownerId_;
}
void GetResourcePackagePriceRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string GetResourcePackagePriceRequest::getPackageType()const
{
return packageType_;
}
void GetResourcePackagePriceRequest::setPackageType(const std::string& packageType)
{
packageType_ = packageType;
setParameter("PackageType", packageType);
}
std::string GetResourcePackagePriceRequest::getEffectiveDate()const
{
return effectiveDate_;
}
void GetResourcePackagePriceRequest::setEffectiveDate(const std::string& effectiveDate)
{
effectiveDate_ = effectiveDate;
setParameter("EffectiveDate", effectiveDate);
}
std::string GetResourcePackagePriceRequest::getPricingCycle()const
{
return pricingCycle_;
}
void GetResourcePackagePriceRequest::setPricingCycle(const std::string& pricingCycle)
{
pricingCycle_ = pricingCycle;
setParameter("PricingCycle", pricingCycle);
}

View File

@@ -0,0 +1,90 @@
/*
* 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/GetResourcePackagePriceResult.h>
#include <json/json.h>
using namespace AlibabaCloud::BssOpenApi;
using namespace AlibabaCloud::BssOpenApi::Model;
GetResourcePackagePriceResult::GetResourcePackagePriceResult() :
ServiceResult()
{}
GetResourcePackagePriceResult::GetResourcePackagePriceResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetResourcePackagePriceResult::~GetResourcePackagePriceResult()
{}
void GetResourcePackagePriceResult::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["Currency"].isNull())
data_.currency = dataNode["Currency"].asString();
if(!dataNode["OriginalPrice"].isNull())
data_.originalPrice = std::stof(dataNode["OriginalPrice"].asString());
if(!dataNode["TradePrice"].isNull())
data_.tradePrice = std::stof(dataNode["TradePrice"].asString());
if(!dataNode["DiscountPrice"].isNull())
data_.discountPrice = std::stof(dataNode["DiscountPrice"].asString());
auto allPromotions = value["Promotions"]["Promotion"];
for (auto value : allPromotions)
{
Data::Promotion promotionObject;
if(!value["Id"].isNull())
promotionObject.id = std::stol(value["Id"].asString());
if(!value["Name"].isNull())
promotionObject.name = value["Name"].asString();
data_.promotions.push_back(promotionObject);
}
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 GetResourcePackagePriceResult::getMessage()const
{
return message_;
}
GetResourcePackagePriceResult::Data GetResourcePackagePriceResult::getData()const
{
return data_;
}
std::string GetResourcePackagePriceResult::getCode()const
{
return code_;
}
bool GetResourcePackagePriceResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,156 @@
/*
* 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/GetSubscriptionPriceRequest.h>
using AlibabaCloud::BssOpenApi::Model::GetSubscriptionPriceRequest;
GetSubscriptionPriceRequest::GetSubscriptionPriceRequest() :
RpcServiceRequest("bssopenapi", "2017-12-14", "GetSubscriptionPrice")
{}
GetSubscriptionPriceRequest::~GetSubscriptionPriceRequest()
{}
int GetSubscriptionPriceRequest::getServicePeriodQuantity()const
{
return servicePeriodQuantity_;
}
void GetSubscriptionPriceRequest::setServicePeriodQuantity(int servicePeriodQuantity)
{
servicePeriodQuantity_ = servicePeriodQuantity;
setParameter("ServicePeriodQuantity", std::to_string(servicePeriodQuantity));
}
std::string GetSubscriptionPriceRequest::getProductCode()const
{
return productCode_;
}
void GetSubscriptionPriceRequest::setProductCode(const std::string& productCode)
{
productCode_ = productCode;
setParameter("ProductCode", productCode);
}
std::string GetSubscriptionPriceRequest::getInstanceId()const
{
return instanceId_;
}
void GetSubscriptionPriceRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}
int GetSubscriptionPriceRequest::getQuantity()const
{
return quantity_;
}
void GetSubscriptionPriceRequest::setQuantity(int quantity)
{
quantity_ = quantity;
setParameter("Quantity", std::to_string(quantity));
}
std::string GetSubscriptionPriceRequest::getServicePeriodUnit()const
{
return servicePeriodUnit_;
}
void GetSubscriptionPriceRequest::setServicePeriodUnit(const std::string& servicePeriodUnit)
{
servicePeriodUnit_ = servicePeriodUnit;
setParameter("ServicePeriodUnit", servicePeriodUnit);
}
std::string GetSubscriptionPriceRequest::getSubscriptionType()const
{
return subscriptionType_;
}
void GetSubscriptionPriceRequest::setSubscriptionType(const std::string& subscriptionType)
{
subscriptionType_ = subscriptionType;
setParameter("SubscriptionType", subscriptionType);
}
std::vector<GetSubscriptionPriceRequest::ModuleList> GetSubscriptionPriceRequest::getModuleList()const
{
return moduleList_;
}
void GetSubscriptionPriceRequest::setModuleList(const std::vector<ModuleList>& moduleList)
{
moduleList_ = moduleList;
int i = 0;
for(int i = 0; i!= moduleList.size(); i++) {
auto obj = moduleList.at(i);
std::string str ="ModuleList."+ std::to_string(i);
setParameter(str + ".ModuleCode", obj.moduleCode);
setParameter(str + ".ModuleStatus", std::to_string(obj.moduleStatus));
setParameter(str + ".Tag", obj.tag);
setParameter(str + ".Config", obj.config);
}
}
long GetSubscriptionPriceRequest::getOwnerId()const
{
return ownerId_;
}
void GetSubscriptionPriceRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string GetSubscriptionPriceRequest::getRegion()const
{
return region_;
}
void GetSubscriptionPriceRequest::setRegion(const std::string& region)
{
region_ = region;
setParameter("Region", region);
}
std::string GetSubscriptionPriceRequest::getOrderType()const
{
return orderType_;
}
void GetSubscriptionPriceRequest::setOrderType(const std::string& orderType)
{
orderType_ = orderType;
setParameter("OrderType", orderType);
}
std::string GetSubscriptionPriceRequest::getProductType()const
{
return productType_;
}
void GetSubscriptionPriceRequest::setProductType(const std::string& productType)
{
productType_ = productType;
setParameter("ProductType", productType);
}

View File

@@ -0,0 +1,110 @@
/*
* 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/GetSubscriptionPriceResult.h>
#include <json/json.h>
using namespace AlibabaCloud::BssOpenApi;
using namespace AlibabaCloud::BssOpenApi::Model;
GetSubscriptionPriceResult::GetSubscriptionPriceResult() :
ServiceResult()
{}
GetSubscriptionPriceResult::GetSubscriptionPriceResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetSubscriptionPriceResult::~GetSubscriptionPriceResult()
{}
void GetSubscriptionPriceResult::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["OriginalPrice"].isNull())
data_.originalPrice = std::stof(dataNode["OriginalPrice"].asString());
if(!dataNode["DiscountPrice"].isNull())
data_.discountPrice = std::stof(dataNode["DiscountPrice"].asString());
if(!dataNode["TradePrice"].isNull())
data_.tradePrice = std::stof(dataNode["TradePrice"].asString());
if(!dataNode["Currency"].isNull())
data_.currency = dataNode["Currency"].asString();
if(!dataNode["Quantity"].isNull())
data_.quantity = std::stoi(dataNode["Quantity"].asString());
auto allModuleDetails = value["ModuleDetails"]["ModuleDetail"];
for (auto value : allModuleDetails)
{
Data::ModuleDetail moduleDetailObject;
if(!value["ModuleCode"].isNull())
moduleDetailObject.moduleCode = value["ModuleCode"].asString();
if(!value["OriginalCost"].isNull())
moduleDetailObject.originalCost = std::stof(value["OriginalCost"].asString());
if(!value["InvoiceDiscount"].isNull())
moduleDetailObject.invoiceDiscount = std::stof(value["InvoiceDiscount"].asString());
if(!value["CostAfterDiscount"].isNull())
moduleDetailObject.costAfterDiscount = std::stof(value["CostAfterDiscount"].asString());
if(!value["UnitPrice"].isNull())
moduleDetailObject.unitPrice = std::stof(value["UnitPrice"].asString());
data_.moduleDetails.push_back(moduleDetailObject);
}
auto allPromotionDetails = value["PromotionDetails"]["PromotionDetail"];
for (auto value : allPromotionDetails)
{
Data::PromotionDetail promotionDetailObject;
if(!value["PromotionName"].isNull())
promotionDetailObject.promotionName = value["PromotionName"].asString();
if(!value["PromotionDesc"].isNull())
promotionDetailObject.promotionDesc = value["PromotionDesc"].asString();
if(!value["PromotionId"].isNull())
promotionDetailObject.promotionId = std::stol(value["PromotionId"].asString());
data_.promotionDetails.push_back(promotionDetailObject);
}
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 GetSubscriptionPriceResult::getMessage()const
{
return message_;
}
GetSubscriptionPriceResult::Data GetSubscriptionPriceResult::getData()const
{
return data_;
}
std::string GetSubscriptionPriceResult::getCode()const
{
return code_;
}
bool GetSubscriptionPriceResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,110 @@
/*
* 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/ModifyInstanceRequest.h>
using AlibabaCloud::BssOpenApi::Model::ModifyInstanceRequest;
ModifyInstanceRequest::ModifyInstanceRequest() :
RpcServiceRequest("bssopenapi", "2017-12-14", "ModifyInstance")
{}
ModifyInstanceRequest::~ModifyInstanceRequest()
{}
std::string ModifyInstanceRequest::getProductCode()const
{
return productCode_;
}
void ModifyInstanceRequest::setProductCode(const std::string& productCode)
{
productCode_ = productCode;
setParameter("ProductCode", productCode);
}
std::string ModifyInstanceRequest::getInstanceId()const
{
return instanceId_;
}
void ModifyInstanceRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}
std::string ModifyInstanceRequest::getSubscriptionType()const
{
return subscriptionType_;
}
void ModifyInstanceRequest::setSubscriptionType(const std::string& subscriptionType)
{
subscriptionType_ = subscriptionType;
setParameter("SubscriptionType", subscriptionType);
}
std::string ModifyInstanceRequest::getModifyType()const
{
return modifyType_;
}
void ModifyInstanceRequest::setModifyType(const std::string& modifyType)
{
modifyType_ = modifyType;
setParameter("ModifyType", modifyType);
}
std::vector<ModifyInstanceRequest::Parameter> ModifyInstanceRequest::getParameter()const
{
return parameter_;
}
void ModifyInstanceRequest::setParameter(const std::vector<Parameter>& parameter)
{
parameter_ = parameter;
int i = 0;
for(int i = 0; i!= parameter.size(); i++) {
auto obj = parameter.at(i);
std::string str ="Parameter."+ std::to_string(i);
setParameter(str + ".Code", obj.code);
setParameter(str + ".Value", obj.value);
}
}
long ModifyInstanceRequest::getOwnerId()const
{
return ownerId_;
}
void ModifyInstanceRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string ModifyInstanceRequest::getProductType()const
{
return productType_;
}
void ModifyInstanceRequest::setProductType(const std::string& productType)
{
productType_ = productType;
setParameter("ProductType", productType);
}

View File

@@ -0,0 +1,76 @@
/*
* 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/ModifyInstanceResult.h>
#include <json/json.h>
using namespace AlibabaCloud::BssOpenApi;
using namespace AlibabaCloud::BssOpenApi::Model;
ModifyInstanceResult::ModifyInstanceResult() :
ServiceResult()
{}
ModifyInstanceResult::ModifyInstanceResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ModifyInstanceResult::~ModifyInstanceResult()
{}
void ModifyInstanceResult::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["HostId"].isNull())
data_.hostId = dataNode["HostId"].asString();
if(!dataNode["OrderId"].isNull())
data_.orderId = dataNode["OrderId"].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 ModifyInstanceResult::getMessage()const
{
return message_;
}
ModifyInstanceResult::Data ModifyInstanceResult::getData()const
{
return data_;
}
std::string ModifyInstanceResult::getCode()const
{
return code_;
}
bool ModifyInstanceResult::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/QueryAccountBalanceRequest.h>
using AlibabaCloud::BssOpenApi::Model::QueryAccountBalanceRequest;
QueryAccountBalanceRequest::QueryAccountBalanceRequest() :
RpcServiceRequest("bssopenapi", "2017-12-14", "QueryAccountBalance")
{}
QueryAccountBalanceRequest::~QueryAccountBalanceRequest()
{}

View File

@@ -0,0 +1,82 @@
/*
* 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/QueryAccountBalanceResult.h>
#include <json/json.h>
using namespace AlibabaCloud::BssOpenApi;
using namespace AlibabaCloud::BssOpenApi::Model;
QueryAccountBalanceResult::QueryAccountBalanceResult() :
ServiceResult()
{}
QueryAccountBalanceResult::QueryAccountBalanceResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
QueryAccountBalanceResult::~QueryAccountBalanceResult()
{}
void QueryAccountBalanceResult::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["AvailableAmount"].isNull())
data_.availableAmount = dataNode["AvailableAmount"].asString();
if(!dataNode["AvailableCashAmount"].isNull())
data_.availableCashAmount = dataNode["AvailableCashAmount"].asString();
if(!dataNode["CreditAmount"].isNull())
data_.creditAmount = dataNode["CreditAmount"].asString();
if(!dataNode["MybankCreditAmount"].isNull())
data_.mybankCreditAmount = dataNode["MybankCreditAmount"].asString();
if(!dataNode["Currency"].isNull())
data_.currency = dataNode["Currency"].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 QueryAccountBalanceResult::getMessage()const
{
return message_;
}
QueryAccountBalanceResult::Data QueryAccountBalanceResult::getData()const
{
return data_;
}
std::string QueryAccountBalanceResult::getCode()const
{
return code_;
}
bool QueryAccountBalanceResult::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/QueryAccountBookListRequest.h>
using AlibabaCloud::BssOpenApi::Model::QueryAccountBookListRequest;
QueryAccountBookListRequest::QueryAccountBookListRequest() :
RpcServiceRequest("bssopenapi", "2017-12-14", "QueryAccountBookList")
{}
QueryAccountBookListRequest::~QueryAccountBookListRequest()
{}
long QueryAccountBookListRequest::getUid()const
{
return uid_;
}
void QueryAccountBookListRequest::setUid(long uid)
{
uid_ = uid;
setParameter("Uid", std::to_string(uid));
}
std::string QueryAccountBookListRequest::getItemCodes()const
{
return itemCodes_;
}
void QueryAccountBookListRequest::setItemCodes(const std::string& itemCodes)
{
itemCodes_ = itemCodes;
setParameter("ItemCodes", itemCodes);
}
std::string QueryAccountBookListRequest::getBid()const
{
return bid_;
}
void QueryAccountBookListRequest::setBid(const std::string& bid)
{
bid_ = bid;
setParameter("Bid", bid);
}

View File

@@ -0,0 +1,98 @@
/*
* 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/QueryAccountBookListResult.h>
#include <json/json.h>
using namespace AlibabaCloud::BssOpenApi;
using namespace AlibabaCloud::BssOpenApi::Model;
QueryAccountBookListResult::QueryAccountBookListResult() :
ServiceResult()
{}
QueryAccountBookListResult::QueryAccountBookListResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
QueryAccountBookListResult::~QueryAccountBookListResult()
{}
void QueryAccountBookListResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allDatas = value["Datas"]["Data"];
for (auto value : allDatas)
{
Data datasObject;
if(!value["UserId"].isNull())
datasObject.userId = std::stol(value["UserId"].asString());
if(!value["Bid"].isNull())
datasObject.bid = value["Bid"].asString();
if(!value["ItemCode"].isNull())
datasObject.itemCode = value["ItemCode"].asString();
if(!value["Amount"].isNull())
datasObject.amount = value["Amount"].asString();
if(!value["EffectTimeStamp"].isNull())
datasObject.effectTimeStamp = std::stol(value["EffectTimeStamp"].asString());
if(!value["InvalidTimeStamp"].isNull())
datasObject.invalidTimeStamp = std::stol(value["InvalidTimeStamp"].asString());
if(!value["Currency"].isNull())
datasObject.currency = value["Currency"].asString();
datas_.push_back(datasObject);
}
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["Count"].isNull())
count_ = std::stoi(value["Count"].asString());
}
std::string QueryAccountBookListResult::getMessage()const
{
return message_;
}
std::vector<QueryAccountBookListResult::Data> QueryAccountBookListResult::getDatas()const
{
return datas_;
}
int QueryAccountBookListResult::getCount()const
{
return count_;
}
std::string QueryAccountBookListResult::getCode()const
{
return code_;
}
bool QueryAccountBookListResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,170 @@
/*
* 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/QueryAvailableInstancesRequest.h>
using AlibabaCloud::BssOpenApi::Model::QueryAvailableInstancesRequest;
QueryAvailableInstancesRequest::QueryAvailableInstancesRequest() :
RpcServiceRequest("bssopenapi", "2017-12-14", "QueryAvailableInstances")
{}
QueryAvailableInstancesRequest::~QueryAvailableInstancesRequest()
{}
std::string QueryAvailableInstancesRequest::getProductCode()const
{
return productCode_;
}
void QueryAvailableInstancesRequest::setProductCode(const std::string& productCode)
{
productCode_ = productCode;
setParameter("ProductCode", productCode);
}
std::string QueryAvailableInstancesRequest::getSubscriptionType()const
{
return subscriptionType_;
}
void QueryAvailableInstancesRequest::setSubscriptionType(const std::string& subscriptionType)
{
subscriptionType_ = subscriptionType;
setParameter("SubscriptionType", subscriptionType);
}
long QueryAvailableInstancesRequest::getOwnerId()const
{
return ownerId_;
}
void QueryAvailableInstancesRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
int QueryAvailableInstancesRequest::getPageNum()const
{
return pageNum_;
}
void QueryAvailableInstancesRequest::setPageNum(int pageNum)
{
pageNum_ = pageNum;
setParameter("PageNum", std::to_string(pageNum));
}
std::string QueryAvailableInstancesRequest::getEndTimeStart()const
{
return endTimeStart_;
}
void QueryAvailableInstancesRequest::setEndTimeStart(const std::string& endTimeStart)
{
endTimeStart_ = endTimeStart;
setParameter("EndTimeStart", endTimeStart);
}
std::string QueryAvailableInstancesRequest::getProductType()const
{
return productType_;
}
void QueryAvailableInstancesRequest::setProductType(const std::string& productType)
{
productType_ = productType;
setParameter("ProductType", productType);
}
std::string QueryAvailableInstancesRequest::getCreateTimeEnd()const
{
return createTimeEnd_;
}
void QueryAvailableInstancesRequest::setCreateTimeEnd(const std::string& createTimeEnd)
{
createTimeEnd_ = createTimeEnd;
setParameter("CreateTimeEnd", createTimeEnd);
}
std::string QueryAvailableInstancesRequest::getInstanceIDs()const
{
return instanceIDs_;
}
void QueryAvailableInstancesRequest::setInstanceIDs(const std::string& instanceIDs)
{
instanceIDs_ = instanceIDs;
setParameter("InstanceIDs", instanceIDs);
}
std::string QueryAvailableInstancesRequest::getEndTimeEnd()const
{
return endTimeEnd_;
}
void QueryAvailableInstancesRequest::setEndTimeEnd(const std::string& endTimeEnd)
{
endTimeEnd_ = endTimeEnd;
setParameter("EndTimeEnd", endTimeEnd);
}
int QueryAvailableInstancesRequest::getPageSize()const
{
return pageSize_;
}
void QueryAvailableInstancesRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setParameter("PageSize", std::to_string(pageSize));
}
std::string QueryAvailableInstancesRequest::getCreateTimeStart()const
{
return createTimeStart_;
}
void QueryAvailableInstancesRequest::setCreateTimeStart(const std::string& createTimeStart)
{
createTimeStart_ = createTimeStart;
setParameter("CreateTimeStart", createTimeStart);
}
std::string QueryAvailableInstancesRequest::getRegion()const
{
return region_;
}
void QueryAvailableInstancesRequest::setRegion(const std::string& region)
{
region_ = region;
setParameter("Region", region);
}
std::string QueryAvailableInstancesRequest::getRenewStatus()const
{
return renewStatus_;
}
void QueryAvailableInstancesRequest::setRenewStatus(const std::string& renewStatus)
{
renewStatus_ = renewStatus;
setParameter("RenewStatus", renewStatus);
}

View File

@@ -0,0 +1,120 @@
/*
* 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/QueryAvailableInstancesResult.h>
#include <json/json.h>
using namespace AlibabaCloud::BssOpenApi;
using namespace AlibabaCloud::BssOpenApi::Model;
QueryAvailableInstancesResult::QueryAvailableInstancesResult() :
ServiceResult()
{}
QueryAvailableInstancesResult::QueryAvailableInstancesResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
QueryAvailableInstancesResult::~QueryAvailableInstancesResult()
{}
void QueryAvailableInstancesResult::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 allInstanceList = value["InstanceList"]["Instance"];
for (auto value : allInstanceList)
{
Data::Instance instanceObject;
if(!value["OwnerId"].isNull())
instanceObject.ownerId = std::stol(value["OwnerId"].asString());
if(!value["SellerId"].isNull())
instanceObject.sellerId = std::stol(value["SellerId"].asString());
if(!value["ProductCode"].isNull())
instanceObject.productCode = value["ProductCode"].asString();
if(!value["ProductType"].isNull())
instanceObject.productType = value["ProductType"].asString();
if(!value["SubscriptionType"].isNull())
instanceObject.subscriptionType = value["SubscriptionType"].asString();
if(!value["InstanceID"].isNull())
instanceObject.instanceID = value["InstanceID"].asString();
if(!value["Region"].isNull())
instanceObject.region = value["Region"].asString();
if(!value["CreateTime"].isNull())
instanceObject.createTime = value["CreateTime"].asString();
if(!value["EndTime"].isNull())
instanceObject.endTime = value["EndTime"].asString();
if(!value["StopTime"].isNull())
instanceObject.stopTime = value["StopTime"].asString();
if(!value["ReleaseTime"].isNull())
instanceObject.releaseTime = value["ReleaseTime"].asString();
if(!value["ExpectedReleaseTime"].isNull())
instanceObject.expectedReleaseTime = value["ExpectedReleaseTime"].asString();
if(!value["Status"].isNull())
instanceObject.status = value["Status"].asString();
if(!value["SubStatus"].isNull())
instanceObject.subStatus = value["SubStatus"].asString();
if(!value["RenewStatus"].isNull())
instanceObject.renewStatus = value["RenewStatus"].asString();
if(!value["RenewalDuration"].isNull())
instanceObject.renewalDuration = std::stoi(value["RenewalDuration"].asString());
if(!value["RenewalDurationUnit"].isNull())
instanceObject.renewalDurationUnit = value["RenewalDurationUnit"].asString();
if(!value["Seller"].isNull())
instanceObject.seller = value["Seller"].asString();
data_.instanceList.push_back(instanceObject);
}
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 QueryAvailableInstancesResult::getMessage()const
{
return message_;
}
QueryAvailableInstancesResult::Data QueryAvailableInstancesResult::getData()const
{
return data_;
}
std::string QueryAvailableInstancesResult::getCode()const
{
return code_;
}
bool QueryAvailableInstancesResult::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/QueryAvaliableQuotaRequest.h>
using AlibabaCloud::BssOpenApi::Model::QueryAvaliableQuotaRequest;
QueryAvaliableQuotaRequest::QueryAvaliableQuotaRequest() :
RpcServiceRequest("bssopenapi", "2017-12-14", "QueryAvaliableQuota")
{}
QueryAvaliableQuotaRequest::~QueryAvaliableQuotaRequest()
{}
long QueryAvaliableQuotaRequest::getUid()const
{
return uid_;
}
void QueryAvaliableQuotaRequest::setUid(long uid)
{
uid_ = uid;
setParameter("Uid", std::to_string(uid));
}
std::string QueryAvaliableQuotaRequest::getItemCodes()const
{
return itemCodes_;
}
void QueryAvaliableQuotaRequest::setItemCodes(const std::string& itemCodes)
{
itemCodes_ = itemCodes;
setParameter("ItemCodes", itemCodes);
}
std::string QueryAvaliableQuotaRequest::getBid()const
{
return bid_;
}
void QueryAvaliableQuotaRequest::setBid(const std::string& bid)
{
bid_ = bid;
setParameter("Bid", bid);
}

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/QueryAvaliableQuotaResult.h>
#include <json/json.h>
using namespace AlibabaCloud::BssOpenApi;
using namespace AlibabaCloud::BssOpenApi::Model;
QueryAvaliableQuotaResult::QueryAvaliableQuotaResult() :
ServiceResult()
{}
QueryAvaliableQuotaResult::QueryAvaliableQuotaResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
QueryAvaliableQuotaResult::~QueryAvaliableQuotaResult()
{}
void QueryAvaliableQuotaResult::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 QueryAvaliableQuotaResult::getMessage()const
{
return message_;
}
std::string QueryAvaliableQuotaResult::getData()const
{
return data_;
}
std::string QueryAvaliableQuotaResult::getCode()const
{
return code_;
}
bool QueryAvaliableQuotaResult::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/QueryBillOverviewRequest.h>
using AlibabaCloud::BssOpenApi::Model::QueryBillOverviewRequest;
QueryBillOverviewRequest::QueryBillOverviewRequest() :
RpcServiceRequest("bssopenapi", "2017-12-14", "QueryBillOverview")
{}
QueryBillOverviewRequest::~QueryBillOverviewRequest()
{}
std::string QueryBillOverviewRequest::getProductCode()const
{
return productCode_;
}
void QueryBillOverviewRequest::setProductCode(const std::string& productCode)
{
productCode_ = productCode;
setParameter("ProductCode", productCode);
}
std::string QueryBillOverviewRequest::getSubscriptionType()const
{
return subscriptionType_;
}
void QueryBillOverviewRequest::setSubscriptionType(const std::string& subscriptionType)
{
subscriptionType_ = subscriptionType;
setParameter("SubscriptionType", subscriptionType);
}
std::string QueryBillOverviewRequest::getBillingCycle()const
{
return billingCycle_;
}
void QueryBillOverviewRequest::setBillingCycle(const std::string& billingCycle)
{
billingCycle_ = billingCycle;
setParameter("BillingCycle", billingCycle);
}
std::string QueryBillOverviewRequest::getProductType()const
{
return productType_;
}
void QueryBillOverviewRequest::setProductType(const std::string& productType)
{
productType_ = productType;
setParameter("ProductType", productType);
}

View File

@@ -0,0 +1,122 @@
/*
* 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/QueryBillOverviewResult.h>
#include <json/json.h>
using namespace AlibabaCloud::BssOpenApi;
using namespace AlibabaCloud::BssOpenApi::Model;
QueryBillOverviewResult::QueryBillOverviewResult() :
ServiceResult()
{}
QueryBillOverviewResult::QueryBillOverviewResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
QueryBillOverviewResult::~QueryBillOverviewResult()
{}
void QueryBillOverviewResult::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["BillingCycle"].isNull())
data_.billingCycle = dataNode["BillingCycle"].asString();
if(!dataNode["AccountID"].isNull())
data_.accountID = dataNode["AccountID"].asString();
if(!dataNode["AccountName"].isNull())
data_.accountName = dataNode["AccountName"].asString();
auto allItems = value["Items"]["Item"];
for (auto value : allItems)
{
Data::Item itemObject;
if(!value["Item"].isNull())
itemObject.item = value["Item"].asString();
if(!value["ProductCode"].isNull())
itemObject.productCode = value["ProductCode"].asString();
if(!value["ProductType"].isNull())
itemObject.productType = value["ProductType"].asString();
if(!value["SubscriptionType"].isNull())
itemObject.subscriptionType = value["SubscriptionType"].asString();
if(!value["ProductName"].isNull())
itemObject.productName = value["ProductName"].asString();
if(!value["ProductDetail"].isNull())
itemObject.productDetail = value["ProductDetail"].asString();
if(!value["PretaxGrossAmount"].isNull())
itemObject.pretaxGrossAmount = std::stof(value["PretaxGrossAmount"].asString());
if(!value["InvoiceDiscount"].isNull())
itemObject.invoiceDiscount = std::stof(value["InvoiceDiscount"].asString());
if(!value["DeductedByCoupons"].isNull())
itemObject.deductedByCoupons = std::stof(value["DeductedByCoupons"].asString());
if(!value["PretaxAmount"].isNull())
itemObject.pretaxAmount = std::stof(value["PretaxAmount"].asString());
if(!value["Currency"].isNull())
itemObject.currency = value["Currency"].asString();
if(!value["PaymentAmount"].isNull())
itemObject.paymentAmount = std::stof(value["PaymentAmount"].asString());
if(!value["OutstandingAmount"].isNull())
itemObject.outstandingAmount = std::stof(value["OutstandingAmount"].asString());
if(!value["DeductedByCashCoupons"].isNull())
itemObject.deductedByCashCoupons = std::stof(value["DeductedByCashCoupons"].asString());
if(!value["DeductedByPrepaidCard"].isNull())
itemObject.deductedByPrepaidCard = std::stof(value["DeductedByPrepaidCard"].asString());
if(!value["PretaxAmountLocal"].isNull())
itemObject.pretaxAmountLocal = std::stof(value["PretaxAmountLocal"].asString());
if(!value["Tax"].isNull())
itemObject.tax = std::stof(value["Tax"].asString());
if(!value["AfterTaxAmount"].isNull())
itemObject.afterTaxAmount = std::stof(value["AfterTaxAmount"].asString());
if(!value["PaymentCurrency"].isNull())
itemObject.paymentCurrency = value["PaymentCurrency"].asString();
data_.items.push_back(itemObject);
}
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 QueryBillOverviewResult::getMessage()const
{
return message_;
}
QueryBillOverviewResult::Data QueryBillOverviewResult::getData()const
{
return data_;
}
std::string QueryBillOverviewResult::getCode()const
{
return code_;
}
bool QueryBillOverviewResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,137 @@
/*
* 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/QueryBillRequest.h>
using AlibabaCloud::BssOpenApi::Model::QueryBillRequest;
QueryBillRequest::QueryBillRequest() :
RpcServiceRequest("bssopenapi", "2017-12-14", "QueryBill")
{}
QueryBillRequest::~QueryBillRequest()
{}
std::string QueryBillRequest::getProductCode()const
{
return productCode_;
}
void QueryBillRequest::setProductCode(const std::string& productCode)
{
productCode_ = productCode;
setParameter("ProductCode", productCode);
}
bool QueryBillRequest::getIsHideZeroCharge()const
{
return isHideZeroCharge_;
}
void QueryBillRequest::setIsHideZeroCharge(bool isHideZeroCharge)
{
isHideZeroCharge_ = isHideZeroCharge;
setParameter("IsHideZeroCharge", isHideZeroCharge ? "true" : "false");
}
bool QueryBillRequest::getIsDisplayLocalCurrency()const
{
return isDisplayLocalCurrency_;
}
void QueryBillRequest::setIsDisplayLocalCurrency(bool isDisplayLocalCurrency)
{
isDisplayLocalCurrency_ = isDisplayLocalCurrency;
setParameter("IsDisplayLocalCurrency", isDisplayLocalCurrency ? "true" : "false");
}
std::string QueryBillRequest::getSubscriptionType()const
{
return subscriptionType_;
}
void QueryBillRequest::setSubscriptionType(const std::string& subscriptionType)
{
subscriptionType_ = subscriptionType;
setParameter("SubscriptionType", subscriptionType);
}
int QueryBillRequest::getPageSize()const
{
return pageSize_;
}
void QueryBillRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setParameter("PageSize", std::to_string(pageSize));
}
std::string QueryBillRequest::getBillingCycle()const
{
return billingCycle_;
}
void QueryBillRequest::setBillingCycle(const std::string& billingCycle)
{
billingCycle_ = billingCycle;
setParameter("BillingCycle", billingCycle);
}
std::string QueryBillRequest::getType()const
{
return type_;
}
void QueryBillRequest::setType(const std::string& type)
{
type_ = type;
setParameter("Type", type);
}
long QueryBillRequest::getOwnerId()const
{
return ownerId_;
}
void QueryBillRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
int QueryBillRequest::getPageNum()const
{
return pageNum_;
}
void QueryBillRequest::setPageNum(int pageNum)
{
pageNum_ = pageNum;
setParameter("PageNum", std::to_string(pageNum));
}
std::string QueryBillRequest::getProductType()const
{
return productType_;
}
void QueryBillRequest::setProductType(const std::string& productType)
{
productType_ = productType;
setParameter("ProductType", productType);
}

View File

@@ -0,0 +1,142 @@
/*
* 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/QueryBillResult.h>
#include <json/json.h>
using namespace AlibabaCloud::BssOpenApi;
using namespace AlibabaCloud::BssOpenApi::Model;
QueryBillResult::QueryBillResult() :
ServiceResult()
{}
QueryBillResult::QueryBillResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
QueryBillResult::~QueryBillResult()
{}
void QueryBillResult::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["BillingCycle"].isNull())
data_.billingCycle = dataNode["BillingCycle"].asString();
if(!dataNode["AccountID"].isNull())
data_.accountID = dataNode["AccountID"].asString();
if(!dataNode["AccountName"].isNull())
data_.accountName = dataNode["AccountName"].asString();
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 allItems = value["Items"]["Item"];
for (auto value : allItems)
{
Data::Item itemObject;
if(!value["RecordID"].isNull())
itemObject.recordID = value["RecordID"].asString();
if(!value["Item"].isNull())
itemObject.item = value["Item"].asString();
if(!value["OwnerID"].isNull())
itemObject.ownerID = value["OwnerID"].asString();
if(!value["UsageStartTime"].isNull())
itemObject.usageStartTime = value["UsageStartTime"].asString();
if(!value["UsageEndTime"].isNull())
itemObject.usageEndTime = value["UsageEndTime"].asString();
if(!value["PaymentTime"].isNull())
itemObject.paymentTime = value["PaymentTime"].asString();
if(!value["ProductCode"].isNull())
itemObject.productCode = value["ProductCode"].asString();
if(!value["ProductType"].isNull())
itemObject.productType = value["ProductType"].asString();
if(!value["SubscriptionType"].isNull())
itemObject.subscriptionType = value["SubscriptionType"].asString();
if(!value["ProductName"].isNull())
itemObject.productName = value["ProductName"].asString();
if(!value["ProductDetail"].isNull())
itemObject.productDetail = value["ProductDetail"].asString();
if(!value["PretaxGrossAmount"].isNull())
itemObject.pretaxGrossAmount = std::stof(value["PretaxGrossAmount"].asString());
if(!value["DeductedByCoupons"].isNull())
itemObject.deductedByCoupons = std::stof(value["DeductedByCoupons"].asString());
if(!value["InvoiceDiscount"].isNull())
itemObject.invoiceDiscount = std::stof(value["InvoiceDiscount"].asString());
if(!value["PretaxAmount"].isNull())
itemObject.pretaxAmount = std::stof(value["PretaxAmount"].asString());
if(!value["Currency"].isNull())
itemObject.currency = value["Currency"].asString();
if(!value["PretaxAmountLocal"].isNull())
itemObject.pretaxAmountLocal = std::stof(value["PretaxAmountLocal"].asString());
if(!value["Tax"].isNull())
itemObject.tax = std::stof(value["Tax"].asString());
if(!value["PaymentAmount"].isNull())
itemObject.paymentAmount = std::stof(value["PaymentAmount"].asString());
if(!value["DeductedByCashCoupons"].isNull())
itemObject.deductedByCashCoupons = std::stof(value["DeductedByCashCoupons"].asString());
if(!value["DeductedByPrepaidCard"].isNull())
itemObject.deductedByPrepaidCard = std::stof(value["DeductedByPrepaidCard"].asString());
if(!value["OutstandingAmount"].isNull())
itemObject.outstandingAmount = std::stof(value["OutstandingAmount"].asString());
if(!value["AfterTaxAmount"].isNull())
itemObject.afterTaxAmount = std::stof(value["AfterTaxAmount"].asString());
if(!value["Status"].isNull())
itemObject.status = value["Status"].asString();
if(!value["PaymentCurrency"].isNull())
itemObject.paymentCurrency = value["PaymentCurrency"].asString();
if(!value["PaymentTransactionID"].isNull())
itemObject.paymentTransactionID = value["PaymentTransactionID"].asString();
data_.items.push_back(itemObject);
}
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 QueryBillResult::getMessage()const
{
return message_;
}
QueryBillResult::Data QueryBillResult::getData()const
{
return data_;
}
std::string QueryBillResult::getCode()const
{
return code_;
}
bool QueryBillResult::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/QueryCashCouponsRequest.h>
using AlibabaCloud::BssOpenApi::Model::QueryCashCouponsRequest;
QueryCashCouponsRequest::QueryCashCouponsRequest() :
RpcServiceRequest("bssopenapi", "2017-12-14", "QueryCashCoupons")
{}
QueryCashCouponsRequest::~QueryCashCouponsRequest()
{}
std::string QueryCashCouponsRequest::getExpiryTimeEnd()const
{
return expiryTimeEnd_;
}
void QueryCashCouponsRequest::setExpiryTimeEnd(const std::string& expiryTimeEnd)
{
expiryTimeEnd_ = expiryTimeEnd;
setParameter("ExpiryTimeEnd", expiryTimeEnd);
}
std::string QueryCashCouponsRequest::getExpiryTimeStart()const
{
return expiryTimeStart_;
}
void QueryCashCouponsRequest::setExpiryTimeStart(const std::string& expiryTimeStart)
{
expiryTimeStart_ = expiryTimeStart;
setParameter("ExpiryTimeStart", expiryTimeStart);
}
bool QueryCashCouponsRequest::getEffectiveOrNot()const
{
return effectiveOrNot_;
}
void QueryCashCouponsRequest::setEffectiveOrNot(bool effectiveOrNot)
{
effectiveOrNot_ = effectiveOrNot;
setParameter("EffectiveOrNot", effectiveOrNot ? "true" : "false");
}

View File

@@ -0,0 +1,97 @@
/*
* 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/QueryCashCouponsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::BssOpenApi;
using namespace AlibabaCloud::BssOpenApi::Model;
QueryCashCouponsResult::QueryCashCouponsResult() :
ServiceResult()
{}
QueryCashCouponsResult::QueryCashCouponsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
QueryCashCouponsResult::~QueryCashCouponsResult()
{}
void QueryCashCouponsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allData = value["Data"]["CashCoupon"];
for (auto value : allData)
{
CashCoupon dataObject;
if(!value["CashCouponId"].isNull())
dataObject.cashCouponId = std::stol(value["CashCouponId"].asString());
if(!value["CashCouponNo"].isNull())
dataObject.cashCouponNo = value["CashCouponNo"].asString();
if(!value["GrantedTime"].isNull())
dataObject.grantedTime = value["GrantedTime"].asString();
if(!value["EffectiveTime"].isNull())
dataObject.effectiveTime = value["EffectiveTime"].asString();
if(!value["ExpiryTime"].isNull())
dataObject.expiryTime = value["ExpiryTime"].asString();
if(!value["ApplicableProducts"].isNull())
dataObject.applicableProducts = value["ApplicableProducts"].asString();
if(!value["ApplicableScenarios"].isNull())
dataObject.applicableScenarios = value["ApplicableScenarios"].asString();
if(!value["NominalValue"].isNull())
dataObject.nominalValue = value["NominalValue"].asString();
if(!value["Balance"].isNull())
dataObject.balance = value["Balance"].asString();
if(!value["Status"].isNull())
dataObject.status = value["Status"].asString();
data_.push_back(dataObject);
}
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 QueryCashCouponsResult::getMessage()const
{
return message_;
}
std::vector<QueryCashCouponsResult::CashCoupon> QueryCashCouponsResult::getData()const
{
return data_;
}
std::string QueryCashCouponsResult::getCode()const
{
return code_;
}
bool QueryCashCouponsResult::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/QueryCustomerAddressListRequest.h>
using AlibabaCloud::BssOpenApi::Model::QueryCustomerAddressListRequest;
QueryCustomerAddressListRequest::QueryCustomerAddressListRequest() :
RpcServiceRequest("bssopenapi", "2017-12-14", "QueryCustomerAddressList")
{}
QueryCustomerAddressListRequest::~QueryCustomerAddressListRequest()
{}
long QueryCustomerAddressListRequest::getCallerBid()const
{
return callerBid_;
}
void QueryCustomerAddressListRequest::setCallerBid(long callerBid)
{
callerBid_ = callerBid;
setParameter("CallerBid", std::to_string(callerBid));
}
long QueryCustomerAddressListRequest::getOwnerId()const
{
return ownerId_;
}
void QueryCustomerAddressListRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
long QueryCustomerAddressListRequest::getCallerUid()const
{
return callerUid_;
}
void QueryCustomerAddressListRequest::setCallerUid(long callerUid)
{
callerUid_ = callerUid;
setParameter("CallerUid", std::to_string(callerUid));
}

View File

@@ -0,0 +1,102 @@
/*
* 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/QueryCustomerAddressListResult.h>
#include <json/json.h>
using namespace AlibabaCloud::BssOpenApi;
using namespace AlibabaCloud::BssOpenApi::Model;
QueryCustomerAddressListResult::QueryCustomerAddressListResult() :
ServiceResult()
{}
QueryCustomerAddressListResult::QueryCustomerAddressListResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
QueryCustomerAddressListResult::~QueryCustomerAddressListResult()
{}
void QueryCustomerAddressListResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto dataNode = value["Data"];
auto allCustomerInvoiceAddressList = value["CustomerInvoiceAddressList"]["CustomerInvoiceAddress"];
for (auto value : allCustomerInvoiceAddressList)
{
Data::CustomerInvoiceAddress customerInvoiceAddressObject;
if(!value["Id"].isNull())
customerInvoiceAddressObject.id = std::stol(value["Id"].asString());
if(!value["UserId"].isNull())
customerInvoiceAddressObject.userId = std::stol(value["UserId"].asString());
if(!value["UserNick"].isNull())
customerInvoiceAddressObject.userNick = value["UserNick"].asString();
if(!value["Addressee"].isNull())
customerInvoiceAddressObject.addressee = value["Addressee"].asString();
if(!value["Province"].isNull())
customerInvoiceAddressObject.province = value["Province"].asString();
if(!value["City"].isNull())
customerInvoiceAddressObject.city = value["City"].asString();
if(!value["County"].isNull())
customerInvoiceAddressObject.county = value["County"].asString();
if(!value["Street"].isNull())
customerInvoiceAddressObject.street = value["Street"].asString();
if(!value["PostalCode"].isNull())
customerInvoiceAddressObject.postalCode = value["PostalCode"].asString();
if(!value["Phone"].isNull())
customerInvoiceAddressObject.phone = value["Phone"].asString();
if(!value["BizType"].isNull())
customerInvoiceAddressObject.bizType = value["BizType"].asString();
if(!value["DeliveryAddress"].isNull())
customerInvoiceAddressObject.deliveryAddress = value["DeliveryAddress"].asString();
data_.customerInvoiceAddressList.push_back(customerInvoiceAddressObject);
}
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 QueryCustomerAddressListResult::getMessage()const
{
return message_;
}
QueryCustomerAddressListResult::Data QueryCustomerAddressListResult::getData()const
{
return data_;
}
std::string QueryCustomerAddressListResult::getCode()const
{
return code_;
}
bool QueryCustomerAddressListResult::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/QueryEnduserStatusRequest.h>
using AlibabaCloud::BssOpenApi::Model::QueryEnduserStatusRequest;
QueryEnduserStatusRequest::QueryEnduserStatusRequest() :
RpcServiceRequest("bssopenapi", "2017-12-14", "QueryEnduserStatus")
{}
QueryEnduserStatusRequest::~QueryEnduserStatusRequest()
{}
long QueryEnduserStatusRequest::getUid()const
{
return uid_;
}
void QueryEnduserStatusRequest::setUid(long uid)
{
uid_ = uid;
setParameter("Uid", std::to_string(uid));
}
std::string QueryEnduserStatusRequest::getPrimaryAccount()const
{
return primaryAccount_;
}
void QueryEnduserStatusRequest::setPrimaryAccount(const std::string& primaryAccount)
{
primaryAccount_ = primaryAccount;
setParameter("PrimaryAccount", primaryAccount);
}
std::string QueryEnduserStatusRequest::getStatus()const
{
return status_;
}
void QueryEnduserStatusRequest::setStatus(const std::string& status)
{
status_ = status;
setParameter("Status", status);
}
std::string QueryEnduserStatusRequest::getBusinessType()const
{
return businessType_;
}
void QueryEnduserStatusRequest::setBusinessType(const std::string& businessType)
{
businessType_ = businessType;
setParameter("BusinessType", businessType);
}

View File

@@ -0,0 +1,92 @@
/*
* 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/QueryEnduserStatusResult.h>
#include <json/json.h>
using namespace AlibabaCloud::BssOpenApi;
using namespace AlibabaCloud::BssOpenApi::Model;
QueryEnduserStatusResult::QueryEnduserStatusResult() :
ServiceResult()
{}
QueryEnduserStatusResult::QueryEnduserStatusResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
QueryEnduserStatusResult::~QueryEnduserStatusResult()
{}
void QueryEnduserStatusResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allDatas = value["Datas"]["Data"];
for (auto value : allDatas)
{
Data datasObject;
if(!value["Uid"].isNull())
datasObject.uid = std::stol(value["Uid"].asString());
if(!value["PrimaryAccount"].isNull())
datasObject.primaryAccount = value["PrimaryAccount"].asString();
if(!value["BusinessType"].isNull())
datasObject.businessType = value["BusinessType"].asString();
if(!value["Status"].isNull())
datasObject.status = value["Status"].asString();
datas_.push_back(datasObject);
}
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["Count"].isNull())
count_ = std::stoi(value["Count"].asString());
}
std::string QueryEnduserStatusResult::getMessage()const
{
return message_;
}
std::vector<QueryEnduserStatusResult::Data> QueryEnduserStatusResult::getDatas()const
{
return datas_;
}
int QueryEnduserStatusResult::getCount()const
{
return count_;
}
std::string QueryEnduserStatusResult::getCode()const
{
return code_;
}
bool QueryEnduserStatusResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,204 @@
/*
* 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/QueryEvaluateListRequest.h>
using AlibabaCloud::BssOpenApi::Model::QueryEvaluateListRequest;
QueryEvaluateListRequest::QueryEvaluateListRequest() :
RpcServiceRequest("bssopenapi", "2017-12-14", "QueryEvaluateList")
{}
QueryEvaluateListRequest::~QueryEvaluateListRequest()
{}
std::string QueryEvaluateListRequest::getEndSearchTime()const
{
return endSearchTime_;
}
void QueryEvaluateListRequest::setEndSearchTime(const std::string& endSearchTime)
{
endSearchTime_ = endSearchTime;
setParameter("EndSearchTime", endSearchTime);
}
std::string QueryEvaluateListRequest::getOutBizId()const
{
return outBizId_;
}
void QueryEvaluateListRequest::setOutBizId(const std::string& outBizId)
{
outBizId_ = outBizId;
setParameter("OutBizId", outBizId);
}
int QueryEvaluateListRequest::getSortType()const
{
return sortType_;
}
void QueryEvaluateListRequest::setSortType(int sortType)
{
sortType_ = sortType;
setParameter("SortType", std::to_string(sortType));
}
std::vector<std::string> QueryEvaluateListRequest::getBizTypeList()const
{
return bizTypeList_;
}
void QueryEvaluateListRequest::setBizTypeList(const std::vector<std::string>& bizTypeList)
{
bizTypeList_ = bizTypeList;
for(int i = 0; i!= bizTypeList.size(); i++)
setParameter("BizTypeList."+ std::to_string(i), bizTypeList.at(i));
}
long QueryEvaluateListRequest::getCallerBid()const
{
return callerBid_;
}
void QueryEvaluateListRequest::setCallerBid(long callerBid)
{
callerBid_ = callerBid;
setParameter("CallerBid", std::to_string(callerBid));
}
int QueryEvaluateListRequest::getType()const
{
return type_;
}
void QueryEvaluateListRequest::setType(int type)
{
type_ = type;
setParameter("Type", std::to_string(type));
}
long QueryEvaluateListRequest::getOwnerId()const
{
return ownerId_;
}
void QueryEvaluateListRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
int QueryEvaluateListRequest::getPageNum()const
{
return pageNum_;
}
void QueryEvaluateListRequest::setPageNum(int pageNum)
{
pageNum_ = pageNum;
setParameter("PageNum", std::to_string(pageNum));
}
std::string QueryEvaluateListRequest::getStartSearchTime()const
{
return startSearchTime_;
}
void QueryEvaluateListRequest::setStartSearchTime(const std::string& startSearchTime)
{
startSearchTime_ = startSearchTime;
setParameter("StartSearchTime", startSearchTime);
}
std::string QueryEvaluateListRequest::getEndBizTime()const
{
return endBizTime_;
}
void QueryEvaluateListRequest::setEndBizTime(const std::string& endBizTime)
{
endBizTime_ = endBizTime;
setParameter("EndBizTime", endBizTime);
}
int QueryEvaluateListRequest::getPageSize()const
{
return pageSize_;
}
void QueryEvaluateListRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setParameter("PageSize", std::to_string(pageSize));
}
long QueryEvaluateListRequest::getEndAmount()const
{
return endAmount_;
}
void QueryEvaluateListRequest::setEndAmount(long endAmount)
{
endAmount_ = endAmount;
setParameter("EndAmount", std::to_string(endAmount));
}
std::string QueryEvaluateListRequest::getBillCycle()const
{
return billCycle_;
}
void QueryEvaluateListRequest::setBillCycle(const std::string& billCycle)
{
billCycle_ = billCycle;
setParameter("BillCycle", billCycle);
}
long QueryEvaluateListRequest::getStartAmount()const
{
return startAmount_;
}
void QueryEvaluateListRequest::setStartAmount(long startAmount)
{
startAmount_ = startAmount;
setParameter("StartAmount", std::to_string(startAmount));
}
std::string QueryEvaluateListRequest::getStartBizTime()const
{
return startBizTime_;
}
void QueryEvaluateListRequest::setStartBizTime(const std::string& startBizTime)
{
startBizTime_ = startBizTime;
setParameter("StartBizTime", startBizTime);
}
long QueryEvaluateListRequest::getCallerUid()const
{
return callerUid_;
}
void QueryEvaluateListRequest::setCallerUid(long callerUid)
{
callerUid_ = callerUid;
setParameter("CallerUid", std::to_string(callerUid));
}

View File

@@ -0,0 +1,128 @@
/*
* 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/QueryEvaluateListResult.h>
#include <json/json.h>
using namespace AlibabaCloud::BssOpenApi;
using namespace AlibabaCloud::BssOpenApi::Model;
QueryEvaluateListResult::QueryEvaluateListResult() :
ServiceResult()
{}
QueryEvaluateListResult::QueryEvaluateListResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
QueryEvaluateListResult::~QueryEvaluateListResult()
{}
void QueryEvaluateListResult::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["HostId"].isNull())
data_.hostId = dataNode["HostId"].asString();
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 allEvaluateList = value["EvaluateList"]["Evaluate"];
for (auto value : allEvaluateList)
{
Data::Evaluate evaluateObject;
if(!value["Id"].isNull())
evaluateObject.id = std::stol(value["Id"].asString());
if(!value["GmtCreate"].isNull())
evaluateObject.gmtCreate = value["GmtCreate"].asString();
if(!value["GmtModified"].isNull())
evaluateObject.gmtModified = value["GmtModified"].asString();
if(!value["UserId"].isNull())
evaluateObject.userId = std::stol(value["UserId"].asString());
if(!value["UserNick"].isNull())
evaluateObject.userNick = value["UserNick"].asString();
if(!value["OutBizId"].isNull())
evaluateObject.outBizId = value["OutBizId"].asString();
if(!value["BillId"].isNull())
evaluateObject.billId = std::stol(value["BillId"].asString());
if(!value["ItemId"].isNull())
evaluateObject.itemId = std::stol(value["ItemId"].asString());
if(!value["BillCycle"].isNull())
evaluateObject.billCycle = value["BillCycle"].asString();
if(!value["BizType"].isNull())
evaluateObject.bizType = value["BizType"].asString();
if(!value["OriginalAmount"].isNull())
evaluateObject.originalAmount = std::stol(value["OriginalAmount"].asString());
if(!value["PresentAmount"].isNull())
evaluateObject.presentAmount = std::stol(value["PresentAmount"].asString());
if(!value["CanInvoiceAmount"].isNull())
evaluateObject.canInvoiceAmount = std::stol(value["CanInvoiceAmount"].asString());
if(!value["InvoicedAmount"].isNull())
evaluateObject.invoicedAmount = std::stol(value["InvoicedAmount"].asString());
if(!value["OffsetCostAmount"].isNull())
evaluateObject.offsetCostAmount = std::stol(value["OffsetCostAmount"].asString());
if(!value["OffsetAcceptAmount"].isNull())
evaluateObject.offsetAcceptAmount = std::stol(value["OffsetAcceptAmount"].asString());
if(!value["Status"].isNull())
evaluateObject.status = std::stoi(value["Status"].asString());
if(!value["OpId"].isNull())
evaluateObject.opId = value["OpId"].asString();
if(!value["Name"].isNull())
evaluateObject.name = value["Name"].asString();
if(!value["BizTime"].isNull())
evaluateObject.bizTime = value["BizTime"].asString();
if(!value["Type"].isNull())
evaluateObject.type = std::stoi(value["Type"].asString());
data_.evaluateList.push_back(evaluateObject);
}
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 QueryEvaluateListResult::getMessage()const
{
return message_;
}
QueryEvaluateListResult::Data QueryEvaluateListResult::getData()const
{
return data_;
}
std::string QueryEvaluateListResult::getCode()const
{
return code_;
}
bool QueryEvaluateListResult::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/QueryInstanceBillRequest.h>
using AlibabaCloud::BssOpenApi::Model::QueryInstanceBillRequest;
QueryInstanceBillRequest::QueryInstanceBillRequest() :
RpcServiceRequest("bssopenapi", "2017-12-14", "QueryInstanceBill")
{}
QueryInstanceBillRequest::~QueryInstanceBillRequest()
{}
bool QueryInstanceBillRequest::getIsBillingItem()const
{
return isBillingItem_;
}
void QueryInstanceBillRequest::setIsBillingItem(bool isBillingItem)
{
isBillingItem_ = isBillingItem;
setParameter("IsBillingItem", isBillingItem ? "true" : "false");
}
std::string QueryInstanceBillRequest::getProductCode()const
{
return productCode_;
}
void QueryInstanceBillRequest::setProductCode(const std::string& productCode)
{
productCode_ = productCode;
setParameter("ProductCode", productCode);
}
bool QueryInstanceBillRequest::getIsHideZeroCharge()const
{
return isHideZeroCharge_;
}
void QueryInstanceBillRequest::setIsHideZeroCharge(bool isHideZeroCharge)
{
isHideZeroCharge_ = isHideZeroCharge;
setParameter("IsHideZeroCharge", isHideZeroCharge ? "true" : "false");
}
std::string QueryInstanceBillRequest::getSubscriptionType()const
{
return subscriptionType_;
}
void QueryInstanceBillRequest::setSubscriptionType(const std::string& subscriptionType)
{
subscriptionType_ = subscriptionType;
setParameter("SubscriptionType", subscriptionType);
}
int QueryInstanceBillRequest::getPageSize()const
{
return pageSize_;
}
void QueryInstanceBillRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setParameter("PageSize", std::to_string(pageSize));
}
std::string QueryInstanceBillRequest::getBillingCycle()const
{
return billingCycle_;
}
void QueryInstanceBillRequest::setBillingCycle(const std::string& billingCycle)
{
billingCycle_ = billingCycle;
setParameter("BillingCycle", billingCycle);
}
long QueryInstanceBillRequest::getOwnerId()const
{
return ownerId_;
}
void QueryInstanceBillRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
int QueryInstanceBillRequest::getPageNum()const
{
return pageNum_;
}
void QueryInstanceBillRequest::setPageNum(int pageNum)
{
pageNum_ = pageNum;
setParameter("PageNum", std::to_string(pageNum));
}
std::string QueryInstanceBillRequest::getProductType()const
{
return productType_;
}
void QueryInstanceBillRequest::setProductType(const std::string& productType)
{
productType_ = productType;
setParameter("ProductType", productType);
}

View File

@@ -0,0 +1,140 @@
/*
* 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/QueryInstanceBillResult.h>
#include <json/json.h>
using namespace AlibabaCloud::BssOpenApi;
using namespace AlibabaCloud::BssOpenApi::Model;
QueryInstanceBillResult::QueryInstanceBillResult() :
ServiceResult()
{}
QueryInstanceBillResult::QueryInstanceBillResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
QueryInstanceBillResult::~QueryInstanceBillResult()
{}
void QueryInstanceBillResult::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["BillingCycle"].isNull())
data_.billingCycle = dataNode["BillingCycle"].asString();
if(!dataNode["AccountID"].isNull())
data_.accountID = dataNode["AccountID"].asString();
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 allItems = value["Items"]["Item"];
for (auto value : allItems)
{
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())
itemObject.costUnit = value["CostUnit"].asString();
if(!value["ProductCode"].isNull())
itemObject.productCode = value["ProductCode"].asString();
if(!value["ProductType"].isNull())
itemObject.productType = value["ProductType"].asString();
if(!value["SubscriptionType"].isNull())
itemObject.subscriptionType = value["SubscriptionType"].asString();
if(!value["ProductName"].isNull())
itemObject.productName = value["ProductName"].asString();
if(!value["ProductDetail"].isNull())
itemObject.productDetail = value["ProductDetail"].asString();
if(!value["OwnerID"].isNull())
itemObject.ownerID = std::stol(value["OwnerID"].asString());
if(!value["BillingItem"].isNull())
itemObject.billingItem = value["BillingItem"].asString();
if(!value["ListPrice"].isNull())
itemObject.listPrice = std::stof(value["ListPrice"].asString());
if(!value["ListPriceUnit"].isNull())
itemObject.listPriceUnit = value["ListPriceUnit"].asString();
if(!value["Usage"].isNull())
itemObject.usage = std::stof(value["Usage"].asString());
if(!value["UsageUnit"].isNull())
itemObject.usageUnit = value["UsageUnit"].asString();
if(!value["DeductedByResourcePackage"].isNull())
itemObject.deductedByResourcePackage = std::stof(value["DeductedByResourcePackage"].asString());
if(!value["PretaxGrossAmount"].isNull())
itemObject.pretaxGrossAmount = std::stof(value["PretaxGrossAmount"].asString());
if(!value["InvoiceDiscount"].isNull())
itemObject.invoiceDiscount = std::stof(value["InvoiceDiscount"].asString());
if(!value["DeductedByCoupons"].isNull())
itemObject.deductedByCoupons = std::stof(value["DeductedByCoupons"].asString());
if(!value["PretaxAmount"].isNull())
itemObject.pretaxAmount = std::stof(value["PretaxAmount"].asString());
if(!value["DeductedByCashCoupons"].isNull())
itemObject.deductedByCashCoupons = std::stof(value["DeductedByCashCoupons"].asString());
if(!value["DeductedByPrepaidCard"].isNull())
itemObject.deductedByPrepaidCard = std::stof(value["DeductedByPrepaidCard"].asString());
if(!value["PaymentAmount"].isNull())
itemObject.paymentAmount = std::stof(value["PaymentAmount"].asString());
if(!value["OutstandingAmount"].isNull())
itemObject.outstandingAmount = std::stof(value["OutstandingAmount"].asString());
if(!value["Currency"].isNull())
itemObject.currency = value["Currency"].asString();
data_.items.push_back(itemObject);
}
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 QueryInstanceBillResult::getMessage()const
{
return message_;
}
QueryInstanceBillResult::Data QueryInstanceBillResult::getData()const
{
return data_;
}
std::string QueryInstanceBillResult::getCode()const
{
return code_;
}
bool QueryInstanceBillResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,93 @@
/*
* 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/QueryInstanceGaapCostRequest.h>
using AlibabaCloud::BssOpenApi::Model::QueryInstanceGaapCostRequest;
QueryInstanceGaapCostRequest::QueryInstanceGaapCostRequest() :
RpcServiceRequest("bssopenapi", "2017-12-14", "QueryInstanceGaapCost")
{}
QueryInstanceGaapCostRequest::~QueryInstanceGaapCostRequest()
{}
std::string QueryInstanceGaapCostRequest::getProductCode()const
{
return productCode_;
}
void QueryInstanceGaapCostRequest::setProductCode(const std::string& productCode)
{
productCode_ = productCode;
setParameter("ProductCode", productCode);
}
std::string QueryInstanceGaapCostRequest::getSubscriptionType()const
{
return subscriptionType_;
}
void QueryInstanceGaapCostRequest::setSubscriptionType(const std::string& subscriptionType)
{
subscriptionType_ = subscriptionType;
setParameter("SubscriptionType", subscriptionType);
}
int QueryInstanceGaapCostRequest::getPageSize()const
{
return pageSize_;
}
void QueryInstanceGaapCostRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setParameter("PageSize", std::to_string(pageSize));
}
std::string QueryInstanceGaapCostRequest::getBillingCycle()const
{
return billingCycle_;
}
void QueryInstanceGaapCostRequest::setBillingCycle(const std::string& billingCycle)
{
billingCycle_ = billingCycle;
setParameter("BillingCycle", billingCycle);
}
int QueryInstanceGaapCostRequest::getPageNum()const
{
return pageNum_;
}
void QueryInstanceGaapCostRequest::setPageNum(int pageNum)
{
pageNum_ = pageNum;
setParameter("PageNum", std::to_string(pageNum));
}
std::string QueryInstanceGaapCostRequest::getProductType()const
{
return productType_;
}
void QueryInstanceGaapCostRequest::setProductType(const std::string& productType)
{
productType_ = productType;
setParameter("ProductType", productType);
}

View File

@@ -0,0 +1,190 @@
/*
* 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/QueryInstanceGaapCostResult.h>
#include <json/json.h>
using namespace AlibabaCloud::BssOpenApi;
using namespace AlibabaCloud::BssOpenApi::Model;
QueryInstanceGaapCostResult::QueryInstanceGaapCostResult() :
ServiceResult()
{}
QueryInstanceGaapCostResult::QueryInstanceGaapCostResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
QueryInstanceGaapCostResult::~QueryInstanceGaapCostResult()
{}
void QueryInstanceGaapCostResult::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["HostId"].isNull())
data_.hostId = dataNode["HostId"].asString();
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 allModules = value["Modules"]["Module"];
for (auto value : allModules)
{
Data::Module moduleObject;
if(!value["BillingCycle"].isNull())
moduleObject.billingCycle = value["BillingCycle"].asString();
if(!value["InstanceID"].isNull())
moduleObject.instanceID = value["InstanceID"].asString();
if(!value["ProductCode"].isNull())
moduleObject.productCode = value["ProductCode"].asString();
if(!value["ProductType"].isNull())
moduleObject.productType = value["ProductType"].asString();
if(!value["SubscriptionType"].isNull())
moduleObject.subscriptionType = value["SubscriptionType"].asString();
if(!value["Tag"].isNull())
moduleObject.tag = value["Tag"].asString();
if(!value["ResourceGroup"].isNull())
moduleObject.resourceGroup = value["ResourceGroup"].asString();
if(!value["AccountingUnit"].isNull())
moduleObject.accountingUnit = value["AccountingUnit"].asString();
if(!value["PayerAccount"].isNull())
moduleObject.payerAccount = value["PayerAccount"].asString();
if(!value["OwnerID"].isNull())
moduleObject.ownerID = value["OwnerID"].asString();
if(!value["Region"].isNull())
moduleObject.region = value["Region"].asString();
if(!value["Currency"].isNull())
moduleObject.currency = value["Currency"].asString();
if(!value["PaymentCurrency"].isNull())
moduleObject.paymentCurrency = value["PaymentCurrency"].asString();
if(!value["OrderType"].isNull())
moduleObject.orderType = value["OrderType"].asString();
if(!value["PayTime"].isNull())
moduleObject.payTime = value["PayTime"].asString();
if(!value["PretaxGrossAmount"].isNull())
moduleObject.pretaxGrossAmount = value["PretaxGrossAmount"].asString();
if(!value["PricingDiscount"].isNull())
moduleObject.pricingDiscount = value["PricingDiscount"].asString();
if(!value["DeductedByCoupons"].isNull())
moduleObject.deductedByCoupons = value["DeductedByCoupons"].asString();
if(!value["PretaxAmount"].isNull())
moduleObject.pretaxAmount = value["PretaxAmount"].asString();
if(!value["PretaxAmountLocal"].isNull())
moduleObject.pretaxAmountLocal = value["PretaxAmountLocal"].asString();
if(!value["DeductedByCashCoupons"].isNull())
moduleObject.deductedByCashCoupons = value["DeductedByCashCoupons"].asString();
if(!value["DeductedByPrepaidCard"].isNull())
moduleObject.deductedByPrepaidCard = value["DeductedByPrepaidCard"].asString();
if(!value["PaymentAmount"].isNull())
moduleObject.paymentAmount = value["PaymentAmount"].asString();
if(!value["GaapPretaxGrossAmount"].isNull())
moduleObject.gaapPretaxGrossAmount = value["GaapPretaxGrossAmount"].asString();
if(!value["GaapPricingDiscount"].isNull())
moduleObject.gaapPricingDiscount = value["GaapPricingDiscount"].asString();
if(!value["GaapDeductedByCoupons"].isNull())
moduleObject.gaapDeductedByCoupons = value["GaapDeductedByCoupons"].asString();
if(!value["GaapPretaxAmount"].isNull())
moduleObject.gaapPretaxAmount = value["GaapPretaxAmount"].asString();
if(!value["GaapPretaxAmountLocal"].isNull())
moduleObject.gaapPretaxAmountLocal = value["GaapPretaxAmountLocal"].asString();
if(!value["GaapDeductedByCashCoupons"].isNull())
moduleObject.gaapDeductedByCashCoupons = value["GaapDeductedByCashCoupons"].asString();
if(!value["GaapDeductedByPrepaidCard"].isNull())
moduleObject.gaapDeductedByPrepaidCard = value["GaapDeductedByPrepaidCard"].asString();
if(!value["GaapPaymentAmount"].isNull())
moduleObject.gaapPaymentAmount = value["GaapPaymentAmount"].asString();
if(!value["MonthGaapPretaxGrossAmount"].isNull())
moduleObject.monthGaapPretaxGrossAmount = value["MonthGaapPretaxGrossAmount"].asString();
if(!value["MonthGaapPricingDiscount"].isNull())
moduleObject.monthGaapPricingDiscount = value["MonthGaapPricingDiscount"].asString();
if(!value["MonthGaapDeductedByCoupons"].isNull())
moduleObject.monthGaapDeductedByCoupons = value["MonthGaapDeductedByCoupons"].asString();
if(!value["MonthGaapPretaxAmount"].isNull())
moduleObject.monthGaapPretaxAmount = value["MonthGaapPretaxAmount"].asString();
if(!value["MonthGaapPretaxAmountLocal"].isNull())
moduleObject.monthGaapPretaxAmountLocal = value["MonthGaapPretaxAmountLocal"].asString();
if(!value["MonthGaapDeductedByCashCoupons"].isNull())
moduleObject.monthGaapDeductedByCashCoupons = value["MonthGaapDeductedByCashCoupons"].asString();
if(!value["MonthGaapDeductedByPrepaidCard"].isNull())
moduleObject.monthGaapDeductedByPrepaidCard = value["MonthGaapDeductedByPrepaidCard"].asString();
if(!value["MonthGaapPaymentAmount"].isNull())
moduleObject.monthGaapPaymentAmount = value["MonthGaapPaymentAmount"].asString();
if(!value["UnallocatedPaymentAmount"].isNull())
moduleObject.unallocatedPaymentAmount = value["UnallocatedPaymentAmount"].asString();
if(!value["UsageStartDate"].isNull())
moduleObject.usageStartDate = value["UsageStartDate"].asString();
if(!value["UsageEndDate"].isNull())
moduleObject.usageEndDate = value["UsageEndDate"].asString();
if(!value["BillType"].isNull())
moduleObject.billType = value["BillType"].asString();
if(!value["OrderId"].isNull())
moduleObject.orderId = value["OrderId"].asString();
if(!value["SubOrderId"].isNull())
moduleObject.subOrderId = value["SubOrderId"].asString();
if(!value["UnallocatedPretaxGrossAmount"].isNull())
moduleObject.unallocatedPretaxGrossAmount = value["UnallocatedPretaxGrossAmount"].asString();
if(!value["UnallocatedPricingDiscount"].isNull())
moduleObject.unallocatedPricingDiscount = value["UnallocatedPricingDiscount"].asString();
if(!value["UnallocatedDeductedByCoupons"].isNull())
moduleObject.unallocatedDeductedByCoupons = value["UnallocatedDeductedByCoupons"].asString();
if(!value["UnallocatedPretaxAmount"].isNull())
moduleObject.unallocatedPretaxAmount = value["UnallocatedPretaxAmount"].asString();
if(!value["UnallocatedPretaxAmountLocal"].isNull())
moduleObject.unallocatedPretaxAmountLocal = value["UnallocatedPretaxAmountLocal"].asString();
if(!value["UnallocatedDeductedByCashCoupons"].isNull())
moduleObject.unallocatedDeductedByCashCoupons = value["UnallocatedDeductedByCashCoupons"].asString();
if(!value["UnallocatedDeductedByPrepaidCard"].isNull())
moduleObject.unallocatedDeductedByPrepaidCard = value["UnallocatedDeductedByPrepaidCard"].asString();
data_.modules.push_back(moduleObject);
}
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 QueryInstanceGaapCostResult::getMessage()const
{
return message_;
}
QueryInstanceGaapCostResult::Data QueryInstanceGaapCostResult::getData()const
{
return data_;
}
std::string QueryInstanceGaapCostResult::getCode()const
{
return code_;
}
bool QueryInstanceGaapCostResult::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/QueryInvoicingCustomerListRequest.h>
using AlibabaCloud::BssOpenApi::Model::QueryInvoicingCustomerListRequest;
QueryInvoicingCustomerListRequest::QueryInvoicingCustomerListRequest() :
RpcServiceRequest("bssopenapi", "2017-12-14", "QueryInvoicingCustomerList")
{}
QueryInvoicingCustomerListRequest::~QueryInvoicingCustomerListRequest()
{}
long QueryInvoicingCustomerListRequest::getCallerBid()const
{
return callerBid_;
}
void QueryInvoicingCustomerListRequest::setCallerBid(long callerBid)
{
callerBid_ = callerBid;
setParameter("CallerBid", std::to_string(callerBid));
}
long QueryInvoicingCustomerListRequest::getOwnerId()const
{
return ownerId_;
}
void QueryInvoicingCustomerListRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
long QueryInvoicingCustomerListRequest::getCallerUid()const
{
return callerUid_;
}
void QueryInvoicingCustomerListRequest::setCallerUid(long callerUid)
{
callerUid_ = callerUid;
setParameter("CallerUid", std::to_string(callerUid));
}

View File

@@ -0,0 +1,118 @@
/*
* 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/QueryInvoicingCustomerListResult.h>
#include <json/json.h>
using namespace AlibabaCloud::BssOpenApi;
using namespace AlibabaCloud::BssOpenApi::Model;
QueryInvoicingCustomerListResult::QueryInvoicingCustomerListResult() :
ServiceResult()
{}
QueryInvoicingCustomerListResult::QueryInvoicingCustomerListResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
QueryInvoicingCustomerListResult::~QueryInvoicingCustomerListResult()
{}
void QueryInvoicingCustomerListResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto dataNode = value["Data"];
auto allCustomerInvoiceList = value["CustomerInvoiceList"]["CustomerInvoice"];
for (auto value : allCustomerInvoiceList)
{
Data::CustomerInvoice customerInvoiceObject;
if(!value["Id"].isNull())
customerInvoiceObject.id = std::stol(value["Id"].asString());
if(!value["UserId"].isNull())
customerInvoiceObject.userId = std::stol(value["UserId"].asString());
if(!value["UserNick"].isNull())
customerInvoiceObject.userNick = value["UserNick"].asString();
if(!value["InvoiceTitle"].isNull())
customerInvoiceObject.invoiceTitle = value["InvoiceTitle"].asString();
if(!value["CustomerType"].isNull())
customerInvoiceObject.customerType = std::stol(value["CustomerType"].asString());
if(!value["TaxpayerType"].isNull())
customerInvoiceObject.taxpayerType = std::stol(value["TaxpayerType"].asString());
if(!value["Bank"].isNull())
customerInvoiceObject.bank = value["Bank"].asString();
if(!value["BankNo"].isNull())
customerInvoiceObject.bankNo = value["BankNo"].asString();
if(!value["OperatingLicenseAddress"].isNull())
customerInvoiceObject.operatingLicenseAddress = value["OperatingLicenseAddress"].asString();
if(!value["OperatingLicensePhone"].isNull())
customerInvoiceObject.operatingLicensePhone = value["OperatingLicensePhone"].asString();
if(!value["RegisterNo"].isNull())
customerInvoiceObject.registerNo = value["RegisterNo"].asString();
if(!value["StartCycle"].isNull())
customerInvoiceObject.startCycle = std::stol(value["StartCycle"].asString());
if(!value["Status"].isNull())
customerInvoiceObject.status = std::stol(value["Status"].asString());
if(!value["GmtCreate"].isNull())
customerInvoiceObject.gmtCreate = value["GmtCreate"].asString();
if(!value["TaxationLicense"].isNull())
customerInvoiceObject.taxationLicense = value["TaxationLicense"].asString();
if(!value["AdjustType"].isNull())
customerInvoiceObject.adjustType = std::stol(value["AdjustType"].asString());
if(!value["EndCycle"].isNull())
customerInvoiceObject.endCycle = std::stol(value["EndCycle"].asString());
if(!value["TitleChangeInstructions"].isNull())
customerInvoiceObject.titleChangeInstructions = value["TitleChangeInstructions"].asString();
if(!value["IssueType"].isNull())
customerInvoiceObject.issueType = std::stol(value["IssueType"].asString());
if(!value["Type"].isNull())
customerInvoiceObject.type = std::stol(value["Type"].asString());
data_.customerInvoiceList.push_back(customerInvoiceObject);
}
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 QueryInvoicingCustomerListResult::getMessage()const
{
return message_;
}
QueryInvoicingCustomerListResult::Data QueryInvoicingCustomerListResult::getData()const
{
return data_;
}
std::string QueryInvoicingCustomerListResult::getCode()const
{
return code_;
}
bool QueryInvoicingCustomerListResult::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/QueryMonthlyBillRequest.h>
using AlibabaCloud::BssOpenApi::Model::QueryMonthlyBillRequest;
QueryMonthlyBillRequest::QueryMonthlyBillRequest() :
RpcServiceRequest("bssopenapi", "2017-12-14", "QueryMonthlyBill")
{}
QueryMonthlyBillRequest::~QueryMonthlyBillRequest()
{}
std::string QueryMonthlyBillRequest::getBillingCycle()const
{
return billingCycle_;
}
void QueryMonthlyBillRequest::setBillingCycle(const std::string& billingCycle)
{
billingCycle_ = billingCycle;
setParameter("BillingCycle", billingCycle);
}

View File

@@ -0,0 +1,124 @@
/*
* 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/QueryMonthlyBillResult.h>
#include <json/json.h>
using namespace AlibabaCloud::BssOpenApi;
using namespace AlibabaCloud::BssOpenApi::Model;
QueryMonthlyBillResult::QueryMonthlyBillResult() :
ServiceResult()
{}
QueryMonthlyBillResult::QueryMonthlyBillResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
QueryMonthlyBillResult::~QueryMonthlyBillResult()
{}
void QueryMonthlyBillResult::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["OutstandingAmount"].isNull())
data_.outstandingAmount = std::stof(dataNode["OutstandingAmount"].asString());
if(!dataNode["TotalOutstandingAmount"].isNull())
data_.totalOutstandingAmount = std::stof(dataNode["TotalOutstandingAmount"].asString());
if(!dataNode["NewInvoiceAmount"].isNull())
data_.newInvoiceAmount = std::stof(dataNode["NewInvoiceAmount"].asString());
if(!dataNode["BillingCycle"].isNull())
data_.billingCycle = dataNode["BillingCycle"].asString();
auto allItems = value["Items"]["Item"];
for (auto value : allItems)
{
Data::Item itemObject;
if(!value["Item"].isNull())
itemObject.item = value["Item"].asString();
if(!value["ProductCode"].isNull())
itemObject.productCode = value["ProductCode"].asString();
if(!value["ProductType"].isNull())
itemObject.productType = value["ProductType"].asString();
if(!value["SubscriptionType"].isNull())
itemObject.subscriptionType = value["SubscriptionType"].asString();
if(!value["SolutionCode"].isNull())
itemObject.solutionCode = value["SolutionCode"].asString();
if(!value["SolutionName"].isNull())
itemObject.solutionName = value["SolutionName"].asString();
if(!value["PretaxGrossAmount"].isNull())
itemObject.pretaxGrossAmount = std::stof(value["PretaxGrossAmount"].asString());
if(!value["InvoiceDiscount"].isNull())
itemObject.invoiceDiscount = std::stof(value["InvoiceDiscount"].asString());
if(!value["DeductedByCoupons"].isNull())
itemObject.deductedByCoupons = std::stof(value["DeductedByCoupons"].asString());
if(!value["PretaxAmount"].isNull())
itemObject.pretaxAmount = std::stof(value["PretaxAmount"].asString());
if(!value["Currency"].isNull())
itemObject.currency = value["Currency"].asString();
if(!value["PretaxAmountLocal"].isNull())
itemObject.pretaxAmountLocal = std::stof(value["PretaxAmountLocal"].asString());
if(!value["Tax"].isNull())
itemObject.tax = std::stof(value["Tax"].asString());
if(!value["AfterTaxAmount"].isNull())
itemObject.afterTaxAmount = std::stof(value["AfterTaxAmount"].asString());
if(!value["OutstandingAmount"].isNull())
itemObject.outstandingAmount = std::stof(value["OutstandingAmount"].asString());
if(!value["DeductedByCashCoupons"].isNull())
itemObject.deductedByCashCoupons = std::stof(value["DeductedByCashCoupons"].asString());
if(!value["DeductedByPrepaidCard"].isNull())
itemObject.deductedByPrepaidCard = std::stof(value["DeductedByPrepaidCard"].asString());
if(!value["PaymentAmount"].isNull())
itemObject.paymentAmount = std::stof(value["PaymentAmount"].asString());
if(!value["PaymentCurrency"].isNull())
itemObject.paymentCurrency = value["PaymentCurrency"].asString();
data_.items.push_back(itemObject);
}
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 QueryMonthlyBillResult::getMessage()const
{
return message_;
}
QueryMonthlyBillResult::Data QueryMonthlyBillResult::getData()const
{
return data_;
}
std::string QueryMonthlyBillResult::getCode()const
{
return code_;
}
bool QueryMonthlyBillResult::getSuccess()const
{
return success_;
}

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/QueryMonthlyInstanceConsumptionRequest.h>
using AlibabaCloud::BssOpenApi::Model::QueryMonthlyInstanceConsumptionRequest;
QueryMonthlyInstanceConsumptionRequest::QueryMonthlyInstanceConsumptionRequest() :
RpcServiceRequest("bssopenapi", "2017-12-14", "QueryMonthlyInstanceConsumption")
{}
QueryMonthlyInstanceConsumptionRequest::~QueryMonthlyInstanceConsumptionRequest()
{}
std::string QueryMonthlyInstanceConsumptionRequest::getProductCode()const
{
return productCode_;
}
void QueryMonthlyInstanceConsumptionRequest::setProductCode(const std::string& productCode)
{
productCode_ = productCode;
setParameter("ProductCode", productCode);
}
std::string QueryMonthlyInstanceConsumptionRequest::getSubscriptionType()const
{
return subscriptionType_;
}
void QueryMonthlyInstanceConsumptionRequest::setSubscriptionType(const std::string& subscriptionType)
{
subscriptionType_ = subscriptionType;
setParameter("SubscriptionType", subscriptionType);
}
int QueryMonthlyInstanceConsumptionRequest::getPageSize()const
{
return pageSize_;
}
void QueryMonthlyInstanceConsumptionRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setParameter("PageSize", std::to_string(pageSize));
}
std::string QueryMonthlyInstanceConsumptionRequest::getBillingCycle()const
{
return billingCycle_;
}
void QueryMonthlyInstanceConsumptionRequest::setBillingCycle(const std::string& billingCycle)
{
billingCycle_ = billingCycle;
setParameter("BillingCycle", billingCycle);
}
long QueryMonthlyInstanceConsumptionRequest::getOwnerId()const
{
return ownerId_;
}
void QueryMonthlyInstanceConsumptionRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
int QueryMonthlyInstanceConsumptionRequest::getPageNum()const
{
return pageNum_;
}
void QueryMonthlyInstanceConsumptionRequest::setPageNum(int pageNum)
{
pageNum_ = pageNum;
setParameter("PageNum", std::to_string(pageNum));
}
std::string QueryMonthlyInstanceConsumptionRequest::getProductType()const
{
return productType_;
}
void QueryMonthlyInstanceConsumptionRequest::setProductType(const std::string& productType)
{
productType_ = productType;
setParameter("ProductType", productType);
}

View File

@@ -0,0 +1,120 @@
/*
* 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/QueryMonthlyInstanceConsumptionResult.h>
#include <json/json.h>
using namespace AlibabaCloud::BssOpenApi;
using namespace AlibabaCloud::BssOpenApi::Model;
QueryMonthlyInstanceConsumptionResult::QueryMonthlyInstanceConsumptionResult() :
ServiceResult()
{}
QueryMonthlyInstanceConsumptionResult::QueryMonthlyInstanceConsumptionResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
QueryMonthlyInstanceConsumptionResult::~QueryMonthlyInstanceConsumptionResult()
{}
void QueryMonthlyInstanceConsumptionResult::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());
if(!dataNode["BillingCycle"].isNull())
data_.billingCycle = dataNode["BillingCycle"].asString();
auto allItems = value["Items"]["Item"];
for (auto value : allItems)
{
Data::Item itemObject;
if(!value["InstanceID"].isNull())
itemObject.instanceID = value["InstanceID"].asString();
if(!value["ProductCode"].isNull())
itemObject.productCode = value["ProductCode"].asString();
if(!value["ProductType"].isNull())
itemObject.productType = value["ProductType"].asString();
if(!value["SubscriptionType"].isNull())
itemObject.subscriptionType = value["SubscriptionType"].asString();
if(!value["Tag"].isNull())
itemObject.tag = value["Tag"].asString();
if(!value["ResourceGroup"].isNull())
itemObject.resourceGroup = value["ResourceGroup"].asString();
if(!value["PayerAccount"].isNull())
itemObject.payerAccount = value["PayerAccount"].asString();
if(!value["OwnerID"].isNull())
itemObject.ownerID = value["OwnerID"].asString();
if(!value["Region"].isNull())
itemObject.region = value["Region"].asString();
if(!value["PretaxGrossAmount"].isNull())
itemObject.pretaxGrossAmount = std::stof(value["PretaxGrossAmount"].asString());
if(!value["DiscountAmount"].isNull())
itemObject.discountAmount = std::stof(value["DiscountAmount"].asString());
if(!value["PretaxAmount"].isNull())
itemObject.pretaxAmount = std::stof(value["PretaxAmount"].asString());
if(!value["Currency"].isNull())
itemObject.currency = value["Currency"].asString();
if(!value["PretaxAmountLocal"].isNull())
itemObject.pretaxAmountLocal = std::stof(value["PretaxAmountLocal"].asString());
if(!value["Tax"].isNull())
itemObject.tax = std::stof(value["Tax"].asString());
if(!value["AfterTaxAmount"].isNull())
itemObject.afterTaxAmount = std::stof(value["AfterTaxAmount"].asString());
if(!value["PaymentCurrency"].isNull())
itemObject.paymentCurrency = value["PaymentCurrency"].asString();
data_.items.push_back(itemObject);
}
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 QueryMonthlyInstanceConsumptionResult::getMessage()const
{
return message_;
}
QueryMonthlyInstanceConsumptionResult::Data QueryMonthlyInstanceConsumptionResult::getData()const
{
return data_;
}
std::string QueryMonthlyInstanceConsumptionResult::getCode()const
{
return code_;
}
bool QueryMonthlyInstanceConsumptionResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,137 @@
/*
* 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/QueryOrdersRequest.h>
using AlibabaCloud::BssOpenApi::Model::QueryOrdersRequest;
QueryOrdersRequest::QueryOrdersRequest() :
RpcServiceRequest("bssopenapi", "2017-12-14", "QueryOrders")
{}
QueryOrdersRequest::~QueryOrdersRequest()
{}
std::string QueryOrdersRequest::getProductCode()const
{
return productCode_;
}
void QueryOrdersRequest::setProductCode(const std::string& productCode)
{
productCode_ = productCode;
setParameter("ProductCode", productCode);
}
std::string QueryOrdersRequest::getSubscriptionType()const
{
return subscriptionType_;
}
void QueryOrdersRequest::setSubscriptionType(const std::string& subscriptionType)
{
subscriptionType_ = subscriptionType;
setParameter("SubscriptionType", subscriptionType);
}
int QueryOrdersRequest::getPageSize()const
{
return pageSize_;
}
void QueryOrdersRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setParameter("PageSize", std::to_string(pageSize));
}
std::string QueryOrdersRequest::getPaymentStatus()const
{
return paymentStatus_;
}
void QueryOrdersRequest::setPaymentStatus(const std::string& paymentStatus)
{
paymentStatus_ = paymentStatus;
setParameter("PaymentStatus", paymentStatus);
}
std::string QueryOrdersRequest::getCreateTimeStart()const
{
return createTimeStart_;
}
void QueryOrdersRequest::setCreateTimeStart(const std::string& createTimeStart)
{
createTimeStart_ = createTimeStart;
setParameter("CreateTimeStart", createTimeStart);
}
int QueryOrdersRequest::getPageNum()const
{
return pageNum_;
}
void QueryOrdersRequest::setPageNum(int pageNum)
{
pageNum_ = pageNum;
setParameter("PageNum", std::to_string(pageNum));
}
long QueryOrdersRequest::getOwnerId()const
{
return ownerId_;
}
void QueryOrdersRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string QueryOrdersRequest::getCreateTimeEnd()const
{
return createTimeEnd_;
}
void QueryOrdersRequest::setCreateTimeEnd(const std::string& createTimeEnd)
{
createTimeEnd_ = createTimeEnd;
setParameter("CreateTimeEnd", createTimeEnd);
}
std::string QueryOrdersRequest::getProductType()const
{
return productType_;
}
void QueryOrdersRequest::setProductType(const std::string& productType)
{
productType_ = productType;
setParameter("ProductType", productType);
}
std::string QueryOrdersRequest::getOrderType()const
{
return orderType_;
}
void QueryOrdersRequest::setOrderType(const std::string& orderType)
{
orderType_ = orderType;
setParameter("OrderType", orderType);
}

View File

@@ -0,0 +1,116 @@
/*
* 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/QueryOrdersResult.h>
#include <json/json.h>
using namespace AlibabaCloud::BssOpenApi;
using namespace AlibabaCloud::BssOpenApi::Model;
QueryOrdersResult::QueryOrdersResult() :
ServiceResult()
{}
QueryOrdersResult::QueryOrdersResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
QueryOrdersResult::~QueryOrdersResult()
{}
void QueryOrdersResult::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["HostName"].isNull())
data_.hostName = dataNode["HostName"].asString();
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 allOrderList = value["OrderList"]["Order"];
for (auto value : allOrderList)
{
Data::Order orderObject;
if(!value["OrderId"].isNull())
orderObject.orderId = value["OrderId"].asString();
if(!value["ProductCode"].isNull())
orderObject.productCode = value["ProductCode"].asString();
if(!value["ProductType"].isNull())
orderObject.productType = value["ProductType"].asString();
if(!value["SubscriptionType"].isNull())
orderObject.subscriptionType = value["SubscriptionType"].asString();
if(!value["OrderType"].isNull())
orderObject.orderType = value["OrderType"].asString();
if(!value["CreateTime"].isNull())
orderObject.createTime = value["CreateTime"].asString();
if(!value["PaymentTime"].isNull())
orderObject.paymentTime = value["PaymentTime"].asString();
if(!value["PaymentStatus"].isNull())
orderObject.paymentStatus = value["PaymentStatus"].asString();
if(!value["PretaxGrossAmount"].isNull())
orderObject.pretaxGrossAmount = value["PretaxGrossAmount"].asString();
if(!value["PretaxAmount"].isNull())
orderObject.pretaxAmount = value["PretaxAmount"].asString();
if(!value["Currency"].isNull())
orderObject.currency = value["Currency"].asString();
if(!value["PretaxAmountLocal"].isNull())
orderObject.pretaxAmountLocal = value["PretaxAmountLocal"].asString();
if(!value["Tax"].isNull())
orderObject.tax = value["Tax"].asString();
if(!value["AfterTaxAmount"].isNull())
orderObject.afterTaxAmount = value["AfterTaxAmount"].asString();
if(!value["PaymentCurrency"].isNull())
orderObject.paymentCurrency = value["PaymentCurrency"].asString();
data_.orderList.push_back(orderObject);
}
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 QueryOrdersResult::getMessage()const
{
return message_;
}
QueryOrdersResult::Data QueryOrdersResult::getData()const
{
return data_;
}
std::string QueryOrdersResult::getCode()const
{
return code_;
}
bool QueryOrdersResult::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/QueryPrepaidCardsRequest.h>
using AlibabaCloud::BssOpenApi::Model::QueryPrepaidCardsRequest;
QueryPrepaidCardsRequest::QueryPrepaidCardsRequest() :
RpcServiceRequest("bssopenapi", "2017-12-14", "QueryPrepaidCards")
{}
QueryPrepaidCardsRequest::~QueryPrepaidCardsRequest()
{}
std::string QueryPrepaidCardsRequest::getExpiryTimeEnd()const
{
return expiryTimeEnd_;
}
void QueryPrepaidCardsRequest::setExpiryTimeEnd(const std::string& expiryTimeEnd)
{
expiryTimeEnd_ = expiryTimeEnd;
setParameter("ExpiryTimeEnd", expiryTimeEnd);
}
std::string QueryPrepaidCardsRequest::getExpiryTimeStart()const
{
return expiryTimeStart_;
}
void QueryPrepaidCardsRequest::setExpiryTimeStart(const std::string& expiryTimeStart)
{
expiryTimeStart_ = expiryTimeStart;
setParameter("ExpiryTimeStart", expiryTimeStart);
}
bool QueryPrepaidCardsRequest::getEffectiveOrNot()const
{
return effectiveOrNot_;
}
void QueryPrepaidCardsRequest::setEffectiveOrNot(bool effectiveOrNot)
{
effectiveOrNot_ = effectiveOrNot;
setParameter("EffectiveOrNot", effectiveOrNot ? "true" : "false");
}

View File

@@ -0,0 +1,97 @@
/*
* 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/QueryPrepaidCardsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::BssOpenApi;
using namespace AlibabaCloud::BssOpenApi::Model;
QueryPrepaidCardsResult::QueryPrepaidCardsResult() :
ServiceResult()
{}
QueryPrepaidCardsResult::QueryPrepaidCardsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
QueryPrepaidCardsResult::~QueryPrepaidCardsResult()
{}
void QueryPrepaidCardsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allData = value["Data"]["PrepaidCard"];
for (auto value : allData)
{
PrepaidCard dataObject;
if(!value["PrepaidCardId"].isNull())
dataObject.prepaidCardId = std::stol(value["PrepaidCardId"].asString());
if(!value["PrepaidCardNo"].isNull())
dataObject.prepaidCardNo = value["PrepaidCardNo"].asString();
if(!value["GrantedTime"].isNull())
dataObject.grantedTime = value["GrantedTime"].asString();
if(!value["EffectiveTime"].isNull())
dataObject.effectiveTime = value["EffectiveTime"].asString();
if(!value["ExpiryTime"].isNull())
dataObject.expiryTime = value["ExpiryTime"].asString();
if(!value["ApplicableProducts"].isNull())
dataObject.applicableProducts = value["ApplicableProducts"].asString();
if(!value["ApplicableScenarios"].isNull())
dataObject.applicableScenarios = value["ApplicableScenarios"].asString();
if(!value["NominalValue"].isNull())
dataObject.nominalValue = value["NominalValue"].asString();
if(!value["Balance"].isNull())
dataObject.balance = value["Balance"].asString();
if(!value["Status"].isNull())
dataObject.status = value["Status"].asString();
data_.push_back(dataObject);
}
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 QueryPrepaidCardsResult::getMessage()const
{
return message_;
}
std::vector<QueryPrepaidCardsResult::PrepaidCard> QueryPrepaidCardsResult::getData()const
{
return data_;
}
std::string QueryPrepaidCardsResult::getCode()const
{
return code_;
}
bool QueryPrepaidCardsResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,82 @@
/*
* 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/QueryPriceListRequest.h>
using AlibabaCloud::BssOpenApi::Model::QueryPriceListRequest;
QueryPriceListRequest::QueryPriceListRequest() :
RpcServiceRequest("bssopenapi", "2017-12-14", "QueryPriceList")
{}
QueryPriceListRequest::~QueryPriceListRequest()
{}
std::string QueryPriceListRequest::getModuleCode()const
{
return moduleCode_;
}
void QueryPriceListRequest::setModuleCode(const std::string& moduleCode)
{
moduleCode_ = moduleCode;
setParameter("ModuleCode", moduleCode);
}
std::string QueryPriceListRequest::getProductCode()const
{
return productCode_;
}
void QueryPriceListRequest::setProductCode(const std::string& productCode)
{
productCode_ = productCode;
setParameter("ProductCode", productCode);
}
std::string QueryPriceListRequest::getSubscriptionType()const
{
return subscriptionType_;
}
void QueryPriceListRequest::setSubscriptionType(const std::string& subscriptionType)
{
subscriptionType_ = subscriptionType;
setParameter("SubscriptionType", subscriptionType);
}
long QueryPriceListRequest::getOwnerId()const
{
return ownerId_;
}
void QueryPriceListRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string QueryPriceListRequest::getProductType()const
{
return productType_;
}
void QueryPriceListRequest::setProductType(const std::string& productType)
{
productType_ = productType;
setParameter("ProductType", productType);
}

View File

@@ -0,0 +1,110 @@
/*
* 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/QueryPriceListResult.h>
#include <json/json.h>
using namespace AlibabaCloud::BssOpenApi;
using namespace AlibabaCloud::BssOpenApi::Model;
QueryPriceListResult::QueryPriceListResult() :
ServiceResult()
{}
QueryPriceListResult::QueryPriceListResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
QueryPriceListResult::~QueryPriceListResult()
{}
void QueryPriceListResult::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["Currency"].isNull())
data_.currency = dataNode["Currency"].asString();
auto allModules = value["Modules"]["Module"];
for (auto value : allModules)
{
Data::Module moduleObject;
if(!value["ModuleCode"].isNull())
moduleObject.moduleCode = value["ModuleCode"].asString();
if(!value["Region"].isNull())
moduleObject.region = value["Region"].asString();
if(!value["Config"].isNull())
moduleObject.config = value["Config"].asString();
if(!value["PriceUnitQuantity"].isNull())
moduleObject.priceUnitQuantity = value["PriceUnitQuantity"].asString();
if(!value["PriceUnit"].isNull())
moduleObject.priceUnit = value["PriceUnit"].asString();
auto allTierPrices = value["TierPrices"]["TierPrice"];
for (auto value : allTierPrices)
{
Data::Module::TierPrice tierPricesObject;
if(!value["TierStart"].isNull())
tierPricesObject.tierStart = value["TierStart"].asString();
if(!value["StartSymbol"].isNull())
tierPricesObject.startSymbol = value["StartSymbol"].asString();
if(!value["TierEnd"].isNull())
tierPricesObject.tierEnd = value["TierEnd"].asString();
if(!value["EndSymbol"].isNull())
tierPricesObject.endSymbol = value["EndSymbol"].asString();
if(!value["TierType"].isNull())
tierPricesObject.tierType = value["TierType"].asString();
if(!value["PriceType"].isNull())
tierPricesObject.priceType = value["PriceType"].asString();
if(!value["Price"].isNull())
tierPricesObject.price = value["Price"].asString();
moduleObject.tierPrices.push_back(tierPricesObject);
}
data_.modules.push_back(moduleObject);
}
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 QueryPriceListResult::getMessage()const
{
return message_;
}
QueryPriceListResult::Data QueryPriceListResult::getData()const
{
return data_;
}
std::string QueryPriceListResult::getCode()const
{
return code_;
}
bool QueryPriceListResult::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/QueryPriceRequest.h>
using AlibabaCloud::BssOpenApi::Model::QueryPriceRequest;
QueryPriceRequest::QueryPriceRequest() :
RpcServiceRequest("bssopenapi", "2017-12-14", "QueryPrice")
{}
QueryPriceRequest::~QueryPriceRequest()
{}
std::string QueryPriceRequest::getParamStr()const
{
return paramStr_;
}
void QueryPriceRequest::setParamStr(const std::string& paramStr)
{
paramStr_ = paramStr;
setParameter("ParamStr", paramStr);
}

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/QueryPriceResult.h>
#include <json/json.h>
using namespace AlibabaCloud::BssOpenApi;
using namespace AlibabaCloud::BssOpenApi::Model;
QueryPriceResult::QueryPriceResult() :
ServiceResult()
{}
QueryPriceResult::QueryPriceResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
QueryPriceResult::~QueryPriceResult()
{}
void QueryPriceResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].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();
if(!value["Data"].isNull())
data_ = value["Data"].asString();
if(!value["ErrCode"].isNull())
errCode_ = value["ErrCode"].asString();
}
std::string QueryPriceResult::getMessage()const
{
return message_;
}
std::string QueryPriceResult::getData()const
{
return data_;
}
std::string QueryPriceResult::getCode()const
{
return code_;
}
bool QueryPriceResult::getSuccess()const
{
return success_;
}
std::string QueryPriceResult::getErrCode()const
{
return errCode_;
}

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/QueryProductListRequest.h>
using AlibabaCloud::BssOpenApi::Model::QueryProductListRequest;
QueryProductListRequest::QueryProductListRequest() :
RpcServiceRequest("bssopenapi", "2017-12-14", "QueryProductList")
{}
QueryProductListRequest::~QueryProductListRequest()
{}
bool QueryProductListRequest::getQueryTotalCount()const
{
return queryTotalCount_;
}
void QueryProductListRequest::setQueryTotalCount(bool queryTotalCount)
{
queryTotalCount_ = queryTotalCount;
setParameter("QueryTotalCount", queryTotalCount ? "true" : "false");
}
int QueryProductListRequest::getPageSize()const
{
return pageSize_;
}
void QueryProductListRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setParameter("PageSize", std::to_string(pageSize));
}
int QueryProductListRequest::getPageNum()const
{
return pageNum_;
}
void QueryProductListRequest::setPageNum(int pageNum)
{
pageNum_ = pageNum;
setParameter("PageNum", std::to_string(pageNum));
}

View File

@@ -0,0 +1,92 @@
/*
* 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/QueryProductListResult.h>
#include <json/json.h>
using namespace AlibabaCloud::BssOpenApi;
using namespace AlibabaCloud::BssOpenApi::Model;
QueryProductListResult::QueryProductListResult() :
ServiceResult()
{}
QueryProductListResult::QueryProductListResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
QueryProductListResult::~QueryProductListResult()
{}
void QueryProductListResult::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["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 allProductList = value["ProductList"]["Product"];
for (auto value : allProductList)
{
Data::Product productObject;
if(!value["ProductCode"].isNull())
productObject.productCode = value["ProductCode"].asString();
if(!value["ProductName"].isNull())
productObject.productName = value["ProductName"].asString();
if(!value["ProductType"].isNull())
productObject.productType = value["ProductType"].asString();
if(!value["SubscriptionType"].isNull())
productObject.subscriptionType = value["SubscriptionType"].asString();
data_.productList.push_back(productObject);
}
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 QueryProductListResult::getMessage()const
{
return message_;
}
QueryProductListResult::Data QueryProductListResult::getData()const
{
return data_;
}
std::string QueryProductListResult::getCode()const
{
return code_;
}
bool QueryProductListResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,82 @@
/*
* 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/QueryRedeemRequest.h>
using AlibabaCloud::BssOpenApi::Model::QueryRedeemRequest;
QueryRedeemRequest::QueryRedeemRequest() :
RpcServiceRequest("bssopenapi", "2017-12-14", "QueryRedeem")
{}
QueryRedeemRequest::~QueryRedeemRequest()
{}
std::string QueryRedeemRequest::getExpiryTimeEnd()const
{
return expiryTimeEnd_;
}
void QueryRedeemRequest::setExpiryTimeEnd(const std::string& expiryTimeEnd)
{
expiryTimeEnd_ = expiryTimeEnd;
setParameter("ExpiryTimeEnd", expiryTimeEnd);
}
int QueryRedeemRequest::getPageSize()const
{
return pageSize_;
}
void QueryRedeemRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setParameter("PageSize", std::to_string(pageSize));
}
std::string QueryRedeemRequest::getExpiryTimeStart()const
{
return expiryTimeStart_;
}
void QueryRedeemRequest::setExpiryTimeStart(const std::string& expiryTimeStart)
{
expiryTimeStart_ = expiryTimeStart;
setParameter("ExpiryTimeStart", expiryTimeStart);
}
int QueryRedeemRequest::getPageNum()const
{
return pageNum_;
}
void QueryRedeemRequest::setPageNum(int pageNum)
{
pageNum_ = pageNum;
setParameter("PageNum", std::to_string(pageNum));
}
bool QueryRedeemRequest::getEffectiveOrNot()const
{
return effectiveOrNot_;
}
void QueryRedeemRequest::setEffectiveOrNot(bool effectiveOrNot)
{
effectiveOrNot_ = effectiveOrNot;
setParameter("EffectiveOrNot", effectiveOrNot ? "true" : "false");
}

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/QueryRedeemResult.h>
#include <json/json.h>
using namespace AlibabaCloud::BssOpenApi;
using namespace AlibabaCloud::BssOpenApi::Model;
QueryRedeemResult::QueryRedeemResult() :
ServiceResult()
{}
QueryRedeemResult::QueryRedeemResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
QueryRedeemResult::~QueryRedeemResult()
{}
void QueryRedeemResult::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::stol(dataNode["PageNum"].asString());
if(!dataNode["PageSize"].isNull())
data_.pageSize = std::stol(dataNode["PageSize"].asString());
if(!dataNode["TotalCount"].isNull())
data_.totalCount = std::stol(dataNode["TotalCount"].asString());
auto allRedeem = value["Redeem"]["RedeemItem"];
for (auto value : allRedeem)
{
Data::RedeemItem redeemItemObject;
if(!value["RedeemId"].isNull())
redeemItemObject.redeemId = value["RedeemId"].asString();
if(!value["RedeemNo"].isNull())
redeemItemObject.redeemNo = value["RedeemNo"].asString();
if(!value["Status"].isNull())
redeemItemObject.status = value["Status"].asString();
if(!value["GrantedTime"].isNull())
redeemItemObject.grantedTime = value["GrantedTime"].asString();
if(!value["EffectiveTime"].isNull())
redeemItemObject.effectiveTime = value["EffectiveTime"].asString();
if(!value["ExpiryTime"].isNull())
redeemItemObject.expiryTime = value["ExpiryTime"].asString();
if(!value["NominalValue"].isNull())
redeemItemObject.nominalValue = value["NominalValue"].asString();
if(!value["Balance"].isNull())
redeemItemObject.balance = value["Balance"].asString();
if(!value["ApplicableProducts"].isNull())
redeemItemObject.applicableProducts = value["ApplicableProducts"].asString();
if(!value["Specification"].isNull())
redeemItemObject.specification = value["Specification"].asString();
data_.redeem.push_back(redeemItemObject);
}
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 QueryRedeemResult::getMessage()const
{
return message_;
}
QueryRedeemResult::Data QueryRedeemResult::getData()const
{
return data_;
}
std::string QueryRedeemResult::getCode()const
{
return code_;
}
bool QueryRedeemResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,93 @@
/*
* 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/QueryResourcePackageInstancesRequest.h>
using AlibabaCloud::BssOpenApi::Model::QueryResourcePackageInstancesRequest;
QueryResourcePackageInstancesRequest::QueryResourcePackageInstancesRequest() :
RpcServiceRequest("bssopenapi", "2017-12-14", "QueryResourcePackageInstances")
{}
QueryResourcePackageInstancesRequest::~QueryResourcePackageInstancesRequest()
{}
std::string QueryResourcePackageInstancesRequest::getExpiryTimeEnd()const
{
return expiryTimeEnd_;
}
void QueryResourcePackageInstancesRequest::setExpiryTimeEnd(const std::string& expiryTimeEnd)
{
expiryTimeEnd_ = expiryTimeEnd;
setParameter("ExpiryTimeEnd", expiryTimeEnd);
}
std::string QueryResourcePackageInstancesRequest::getProductCode()const
{
return productCode_;
}
void QueryResourcePackageInstancesRequest::setProductCode(const std::string& productCode)
{
productCode_ = productCode;
setParameter("ProductCode", productCode);
}
int QueryResourcePackageInstancesRequest::getPageSize()const
{
return pageSize_;
}
void QueryResourcePackageInstancesRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setParameter("PageSize", std::to_string(pageSize));
}
long QueryResourcePackageInstancesRequest::getOwnerId()const
{
return ownerId_;
}
void QueryResourcePackageInstancesRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string QueryResourcePackageInstancesRequest::getExpiryTimeStart()const
{
return expiryTimeStart_;
}
void QueryResourcePackageInstancesRequest::setExpiryTimeStart(const std::string& expiryTimeStart)
{
expiryTimeStart_ = expiryTimeStart;
setParameter("ExpiryTimeStart", expiryTimeStart);
}
int QueryResourcePackageInstancesRequest::getPageNum()const
{
return pageNum_;
}
void QueryResourcePackageInstancesRequest::setPageNum(int pageNum)
{
pageNum_ = pageNum;
setParameter("PageNum", std::to_string(pageNum));
}

View File

@@ -0,0 +1,134 @@
/*
* 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/QueryResourcePackageInstancesResult.h>
#include <json/json.h>
using namespace AlibabaCloud::BssOpenApi;
using namespace AlibabaCloud::BssOpenApi::Model;
QueryResourcePackageInstancesResult::QueryResourcePackageInstancesResult() :
ServiceResult()
{}
QueryResourcePackageInstancesResult::QueryResourcePackageInstancesResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
QueryResourcePackageInstancesResult::~QueryResourcePackageInstancesResult()
{}
void QueryResourcePackageInstancesResult::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["HostId"].isNull())
data_.hostId = dataNode["HostId"].asString();
if(!dataNode["PageNum"].isNull())
data_.pageNum = dataNode["PageNum"].asString();
if(!dataNode["PageSize"].isNull())
data_.pageSize = dataNode["PageSize"].asString();
if(!dataNode["TotalCount"].isNull())
data_.totalCount = dataNode["TotalCount"].asString();
auto allInstances = value["Instances"]["Instance"];
for (auto value : allInstances)
{
Data::Instance instanceObject;
if(!value["InstanceId"].isNull())
instanceObject.instanceId = value["InstanceId"].asString();
if(!value["Region"].isNull())
instanceObject.region = value["Region"].asString();
if(!value["TotalAmount"].isNull())
instanceObject.totalAmount = value["TotalAmount"].asString();
if(!value["TotalAmountUnit"].isNull())
instanceObject.totalAmountUnit = value["TotalAmountUnit"].asString();
if(!value["RemainingAmount"].isNull())
instanceObject.remainingAmount = value["RemainingAmount"].asString();
if(!value["RemainingAmountUnit"].isNull())
instanceObject.remainingAmountUnit = value["RemainingAmountUnit"].asString();
if(!value["EffectiveTime"].isNull())
instanceObject.effectiveTime = value["EffectiveTime"].asString();
if(!value["ExpiryTime"].isNull())
instanceObject.expiryTime = value["ExpiryTime"].asString();
if(!value["Remark"].isNull())
instanceObject.remark = value["Remark"].asString();
if(!value["PackageType"].isNull())
instanceObject.packageType = value["PackageType"].asString();
if(!value["Status"].isNull())
instanceObject.status = value["Status"].asString();
if(!value["DeductType"].isNull())
instanceObject.deductType = value["DeductType"].asString();
auto allApplicableProducts = value["ApplicableProducts"]["Product"];
for (auto value : allApplicableProducts)
instanceObject.applicableProducts.push_back(value.asString());
data_.instances.push_back(instanceObject);
}
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();
if(!value["Page"].isNull())
page_ = std::stoi(value["Page"].asString());
if(!value["PageSize"].isNull())
pageSize_ = std::stoi(value["PageSize"].asString());
if(!value["Total"].isNull())
total_ = std::stoi(value["Total"].asString());
}
std::string QueryResourcePackageInstancesResult::getMessage()const
{
return message_;
}
int QueryResourcePackageInstancesResult::getPageSize()const
{
return pageSize_;
}
int QueryResourcePackageInstancesResult::getTotal()const
{
return total_;
}
QueryResourcePackageInstancesResult::Data QueryResourcePackageInstancesResult::getData()const
{
return data_;
}
int QueryResourcePackageInstancesResult::getPage()const
{
return page_;
}
std::string QueryResourcePackageInstancesResult::getCode()const
{
return code_;
}
bool QueryResourcePackageInstancesResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,148 @@
/*
* 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/QuerySettlementBillRequest.h>
using AlibabaCloud::BssOpenApi::Model::QuerySettlementBillRequest;
QuerySettlementBillRequest::QuerySettlementBillRequest() :
RpcServiceRequest("bssopenapi", "2017-12-14", "QuerySettlementBill")
{}
QuerySettlementBillRequest::~QuerySettlementBillRequest()
{}
std::string QuerySettlementBillRequest::getProductCode()const
{
return productCode_;
}
void QuerySettlementBillRequest::setProductCode(const std::string& productCode)
{
productCode_ = productCode;
setParameter("ProductCode", productCode);
}
bool QuerySettlementBillRequest::getIsHideZeroCharge()const
{
return isHideZeroCharge_;
}
void QuerySettlementBillRequest::setIsHideZeroCharge(bool isHideZeroCharge)
{
isHideZeroCharge_ = isHideZeroCharge;
setParameter("IsHideZeroCharge", isHideZeroCharge ? "true" : "false");
}
std::string QuerySettlementBillRequest::getSubscriptionType()const
{
return subscriptionType_;
}
void QuerySettlementBillRequest::setSubscriptionType(const std::string& subscriptionType)
{
subscriptionType_ = subscriptionType;
setParameter("SubscriptionType", subscriptionType);
}
int QuerySettlementBillRequest::getPageSize()const
{
return pageSize_;
}
void QuerySettlementBillRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setParameter("PageSize", std::to_string(pageSize));
}
std::string QuerySettlementBillRequest::getEndTime()const
{
return endTime_;
}
void QuerySettlementBillRequest::setEndTime(const std::string& endTime)
{
endTime_ = endTime;
setParameter("EndTime", endTime);
}
std::string QuerySettlementBillRequest::getBillingCycle()const
{
return billingCycle_;
}
void QuerySettlementBillRequest::setBillingCycle(const std::string& billingCycle)
{
billingCycle_ = billingCycle;
setParameter("BillingCycle", billingCycle);
}
std::string QuerySettlementBillRequest::getStartTime()const
{
return startTime_;
}
void QuerySettlementBillRequest::setStartTime(const std::string& startTime)
{
startTime_ = startTime;
setParameter("StartTime", startTime);
}
long QuerySettlementBillRequest::getOwnerId()const
{
return ownerId_;
}
void QuerySettlementBillRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
int QuerySettlementBillRequest::getPageNum()const
{
return pageNum_;
}
void QuerySettlementBillRequest::setPageNum(int pageNum)
{
pageNum_ = pageNum;
setParameter("PageNum", std::to_string(pageNum));
}
std::string QuerySettlementBillRequest::getType()const
{
return type_;
}
void QuerySettlementBillRequest::setType(const std::string& type)
{
type_ = type;
setParameter("Type", type);
}
std::string QuerySettlementBillRequest::getProductType()const
{
return productType_;
}
void QuerySettlementBillRequest::setProductType(const std::string& productType)
{
productType_ = productType;
setParameter("ProductType", productType);
}

View File

@@ -0,0 +1,172 @@
/*
* 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/QuerySettlementBillResult.h>
#include <json/json.h>
using namespace AlibabaCloud::BssOpenApi;
using namespace AlibabaCloud::BssOpenApi::Model;
QuerySettlementBillResult::QuerySettlementBillResult() :
ServiceResult()
{}
QuerySettlementBillResult::QuerySettlementBillResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
QuerySettlementBillResult::~QuerySettlementBillResult()
{}
void QuerySettlementBillResult::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());
if(!dataNode["BillingCycle"].isNull())
data_.billingCycle = dataNode["BillingCycle"].asString();
auto allItems = value["Items"]["Item"];
for (auto value : allItems)
{
Data::Item itemObject;
if(!value["RecordID"].isNull())
itemObject.recordID = value["RecordID"].asString();
if(!value["Item"].isNull())
itemObject.item = value["Item"].asString();
if(!value["PayerAccount"].isNull())
itemObject.payerAccount = value["PayerAccount"].asString();
if(!value["OwnerID"].isNull())
itemObject.ownerID = value["OwnerID"].asString();
if(!value["CreateTime"].isNull())
itemObject.createTime = value["CreateTime"].asString();
if(!value["UsageStartTime"].isNull())
itemObject.usageStartTime = value["UsageStartTime"].asString();
if(!value["UsageEndTime"].isNull())
itemObject.usageEndTime = value["UsageEndTime"].asString();
if(!value["SuborderID"].isNull())
itemObject.suborderID = value["SuborderID"].asString();
if(!value["OrderID"].isNull())
itemObject.orderID = value["OrderID"].asString();
if(!value["OrderType"].isNull())
itemObject.orderType = value["OrderType"].asString();
if(!value["LinkedCustomerOrderID"].isNull())
itemObject.linkedCustomerOrderID = value["LinkedCustomerOrderID"].asString();
if(!value["OriginalOrderID"].isNull())
itemObject.originalOrderID = value["OriginalOrderID"].asString();
if(!value["PaymentTime"].isNull())
itemObject.paymentTime = value["PaymentTime"].asString();
if(!value["SolutionID"].isNull())
itemObject.solutionID = value["SolutionID"].asString();
if(!value["SolutionName"].isNull())
itemObject.solutionName = value["SolutionName"].asString();
if(!value["BillID"].isNull())
itemObject.billID = value["BillID"].asString();
if(!value["ProductCode"].isNull())
itemObject.productCode = value["ProductCode"].asString();
if(!value["ProductType"].isNull())
itemObject.productType = value["ProductType"].asString();
if(!value["SubscriptionType"].isNull())
itemObject.subscriptionType = value["SubscriptionType"].asString();
if(!value["Region"].isNull())
itemObject.region = value["Region"].asString();
if(!value["Config"].isNull())
itemObject.config = value["Config"].asString();
if(!value["Quantity"].isNull())
itemObject.quantity = value["Quantity"].asString();
if(!value["PretaxGrossAmount"].isNull())
itemObject.pretaxGrossAmount = std::stof(value["PretaxGrossAmount"].asString());
if(!value["ChargeDiscount"].isNull())
itemObject.chargeDiscount = std::stof(value["ChargeDiscount"].asString());
if(!value["DeductedByCoupons"].isNull())
itemObject.deductedByCoupons = std::stof(value["DeductedByCoupons"].asString());
if(!value["AccountDiscount"].isNull())
itemObject.accountDiscount = std::stof(value["AccountDiscount"].asString());
if(!value["Promotion"].isNull())
itemObject.promotion = value["Promotion"].asString();
if(!value["PretaxAmount"].isNull())
itemObject.pretaxAmount = std::stof(value["PretaxAmount"].asString());
if(!value["Currency"].isNull())
itemObject.currency = value["Currency"].asString();
if(!value["PretaxAmountLocal"].isNull())
itemObject.pretaxAmountLocal = std::stof(value["PretaxAmountLocal"].asString());
if(!value["PreviousBillingCycleBalance"].isNull())
itemObject.previousBillingCycleBalance = std::stof(value["PreviousBillingCycleBalance"].asString());
if(!value["Tax"].isNull())
itemObject.tax = std::stof(value["Tax"].asString());
if(!value["AfterTaxAmount"].isNull())
itemObject.afterTaxAmount = std::stof(value["AfterTaxAmount"].asString());
if(!value["Status"].isNull())
itemObject.status = value["Status"].asString();
if(!value["ClearedTime"].isNull())
itemObject.clearedTime = value["ClearedTime"].asString();
if(!value["OutstandingAmount"].isNull())
itemObject.outstandingAmount = std::stof(value["OutstandingAmount"].asString());
if(!value["DeductedByCashCoupons"].isNull())
itemObject.deductedByCashCoupons = std::stof(value["DeductedByCashCoupons"].asString());
if(!value["DeductedByPrepaidCard"].isNull())
itemObject.deductedByPrepaidCard = std::stof(value["DeductedByPrepaidCard"].asString());
if(!value["MybankPaymentAmount"].isNull())
itemObject.mybankPaymentAmount = std::stof(value["MybankPaymentAmount"].asString());
if(!value["PaymentAmount"].isNull())
itemObject.paymentAmount = std::stof(value["PaymentAmount"].asString());
if(!value["PaymentCurrency"].isNull())
itemObject.paymentCurrency = value["PaymentCurrency"].asString();
if(!value["Seller"].isNull())
itemObject.seller = value["Seller"].asString();
if(!value["InvoiceNo"].isNull())
itemObject.invoiceNo = value["InvoiceNo"].asString();
data_.items.push_back(itemObject);
}
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 QuerySettlementBillResult::getMessage()const
{
return message_;
}
QuerySettlementBillResult::Data QuerySettlementBillResult::getData()const
{
return data_;
}
std::string QuerySettlementBillResult::getCode()const
{
return code_;
}
bool QuerySettlementBillResult::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/QueryUserAlarmThresholdRequest.h>
using AlibabaCloud::BssOpenApi::Model::QueryUserAlarmThresholdRequest;
QueryUserAlarmThresholdRequest::QueryUserAlarmThresholdRequest() :
RpcServiceRequest("bssopenapi", "2017-12-14", "QueryUserAlarmThreshold")
{}
QueryUserAlarmThresholdRequest::~QueryUserAlarmThresholdRequest()
{}
long QueryUserAlarmThresholdRequest::getUid()const
{
return uid_;
}
void QueryUserAlarmThresholdRequest::setUid(long uid)
{
uid_ = uid;
setParameter("Uid", std::to_string(uid));
}
std::string QueryUserAlarmThresholdRequest::getAlarmType()const
{
return alarmType_;
}
void QueryUserAlarmThresholdRequest::setAlarmType(const std::string& alarmType)
{
alarmType_ = alarmType;
setParameter("AlarmType", alarmType);
}
std::string QueryUserAlarmThresholdRequest::getAlarmThresholds()const
{
return alarmThresholds_;
}
void QueryUserAlarmThresholdRequest::setAlarmThresholds(const std::string& alarmThresholds)
{
alarmThresholds_ = alarmThresholds;
setParameter("AlarmThresholds", alarmThresholds);
}
std::string QueryUserAlarmThresholdRequest::getBid()const
{
return bid_;
}
void QueryUserAlarmThresholdRequest::setBid(const std::string& bid)
{
bid_ = bid;
setParameter("Bid", bid);
}

View File

@@ -0,0 +1,92 @@
/*
* 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/QueryUserAlarmThresholdResult.h>
#include <json/json.h>
using namespace AlibabaCloud::BssOpenApi;
using namespace AlibabaCloud::BssOpenApi::Model;
QueryUserAlarmThresholdResult::QueryUserAlarmThresholdResult() :
ServiceResult()
{}
QueryUserAlarmThresholdResult::QueryUserAlarmThresholdResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
QueryUserAlarmThresholdResult::~QueryUserAlarmThresholdResult()
{}
void QueryUserAlarmThresholdResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allDatas = value["Datas"]["Data"];
for (auto value : allDatas)
{
Data datasObject;
if(!value["ThresholdAmount"].isNull())
datasObject.thresholdAmount = value["ThresholdAmount"].asString();
if(!value["Numerator"].isNull())
datasObject.numerator = std::stoi(value["Numerator"].asString());
if(!value["Denominator"].isNull())
datasObject.denominator = std::stoi(value["Denominator"].asString());
if(!value["ThresholdType"].isNull())
datasObject.thresholdType = std::stoi(value["ThresholdType"].asString());
datas_.push_back(datasObject);
}
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["Count"].isNull())
count_ = std::stoi(value["Count"].asString());
}
std::string QueryUserAlarmThresholdResult::getMessage()const
{
return message_;
}
std::vector<QueryUserAlarmThresholdResult::Data> QueryUserAlarmThresholdResult::getDatas()const
{
return datas_;
}
int QueryUserAlarmThresholdResult::getCount()const
{
return count_;
}
std::string QueryUserAlarmThresholdResult::getCode()const
{
return code_;
}
bool QueryUserAlarmThresholdResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,93 @@
/*
* 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/RenewInstanceRequest.h>
using AlibabaCloud::BssOpenApi::Model::RenewInstanceRequest;
RenewInstanceRequest::RenewInstanceRequest() :
RpcServiceRequest("bssopenapi", "2017-12-14", "RenewInstance")
{}
RenewInstanceRequest::~RenewInstanceRequest()
{}
std::string RenewInstanceRequest::getProductCode()const
{
return productCode_;
}
void RenewInstanceRequest::setProductCode(const std::string& productCode)
{
productCode_ = productCode;
setParameter("ProductCode", productCode);
}
std::string RenewInstanceRequest::getInstanceId()const
{
return instanceId_;
}
void RenewInstanceRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}
std::string RenewInstanceRequest::getClientToken()const
{
return clientToken_;
}
void RenewInstanceRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setParameter("ClientToken", clientToken);
}
int RenewInstanceRequest::getRenewPeriod()const
{
return renewPeriod_;
}
void RenewInstanceRequest::setRenewPeriod(int renewPeriod)
{
renewPeriod_ = renewPeriod;
setParameter("RenewPeriod", std::to_string(renewPeriod));
}
long RenewInstanceRequest::getOwnerId()const
{
return ownerId_;
}
void RenewInstanceRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string RenewInstanceRequest::getProductType()const
{
return productType_;
}
void RenewInstanceRequest::setProductType(const std::string& productType)
{
productType_ = productType;
setParameter("ProductType", productType);
}

View File

@@ -0,0 +1,74 @@
/*
* 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/RenewInstanceResult.h>
#include <json/json.h>
using namespace AlibabaCloud::BssOpenApi;
using namespace AlibabaCloud::BssOpenApi::Model;
RenewInstanceResult::RenewInstanceResult() :
ServiceResult()
{}
RenewInstanceResult::RenewInstanceResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
RenewInstanceResult::~RenewInstanceResult()
{}
void RenewInstanceResult::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["OrderId"].isNull())
data_.orderId = dataNode["OrderId"].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 RenewInstanceResult::getMessage()const
{
return message_;
}
RenewInstanceResult::Data RenewInstanceResult::getData()const
{
return data_;
}
std::string RenewInstanceResult::getCode()const
{
return code_;
}
bool RenewInstanceResult::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/SetEnduserStatusRequest.h>
using AlibabaCloud::BssOpenApi::Model::SetEnduserStatusRequest;
SetEnduserStatusRequest::SetEnduserStatusRequest() :
RpcServiceRequest("bssopenapi", "2017-12-14", "SetEnduserStatus")
{}
SetEnduserStatusRequest::~SetEnduserStatusRequest()
{}
long SetEnduserStatusRequest::getUid()const
{
return uid_;
}
void SetEnduserStatusRequest::setUid(long uid)
{
uid_ = uid;
setParameter("Uid", std::to_string(uid));
}
std::string SetEnduserStatusRequest::getPrimaryAccount()const
{
return primaryAccount_;
}
void SetEnduserStatusRequest::setPrimaryAccount(const std::string& primaryAccount)
{
primaryAccount_ = primaryAccount;
setParameter("PrimaryAccount", primaryAccount);
}
std::string SetEnduserStatusRequest::getStatus()const
{
return status_;
}
void SetEnduserStatusRequest::setStatus(const std::string& status)
{
status_ = status;
setParameter("Status", status);
}
std::string SetEnduserStatusRequest::getBusinessType()const
{
return businessType_;
}
void SetEnduserStatusRequest::setBusinessType(const std::string& businessType)
{
businessType_ = businessType;
setParameter("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/SetEnduserStatusResult.h>
#include <json/json.h>
using namespace AlibabaCloud::BssOpenApi;
using namespace AlibabaCloud::BssOpenApi::Model;
SetEnduserStatusResult::SetEnduserStatusResult() :
ServiceResult()
{}
SetEnduserStatusResult::SetEnduserStatusResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
SetEnduserStatusResult::~SetEnduserStatusResult()
{}
void SetEnduserStatusResult::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 SetEnduserStatusResult::getMessage()const
{
return message_;
}
bool SetEnduserStatusResult::getData()const
{
return data_;
}
std::string SetEnduserStatusResult::getCode()const
{
return code_;
}
bool SetEnduserStatusResult::getSuccess()const
{
return success_;
}

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/SetRenewalRequest.h>
using AlibabaCloud::BssOpenApi::Model::SetRenewalRequest;
SetRenewalRequest::SetRenewalRequest() :
RpcServiceRequest("bssopenapi", "2017-12-14", "SetRenewal")
{}
SetRenewalRequest::~SetRenewalRequest()
{}
std::string SetRenewalRequest::getProductCode()const
{
return productCode_;
}
void SetRenewalRequest::setProductCode(const std::string& productCode)
{
productCode_ = productCode;
setParameter("ProductCode", productCode);
}
std::string SetRenewalRequest::getInstanceIDs()const
{
return instanceIDs_;
}
void SetRenewalRequest::setInstanceIDs(const std::string& instanceIDs)
{
instanceIDs_ = instanceIDs;
setParameter("InstanceIDs", instanceIDs);
}
std::string SetRenewalRequest::getSubscriptionType()const
{
return subscriptionType_;
}
void SetRenewalRequest::setSubscriptionType(const std::string& subscriptionType)
{
subscriptionType_ = subscriptionType;
setParameter("SubscriptionType", subscriptionType);
}
std::string SetRenewalRequest::getRenewalStatus()const
{
return renewalStatus_;
}
void SetRenewalRequest::setRenewalStatus(const std::string& renewalStatus)
{
renewalStatus_ = renewalStatus;
setParameter("RenewalStatus", renewalStatus);
}
std::string SetRenewalRequest::getRenewalPeriodUnit()const
{
return renewalPeriodUnit_;
}
void SetRenewalRequest::setRenewalPeriodUnit(const std::string& renewalPeriodUnit)
{
renewalPeriodUnit_ = renewalPeriodUnit;
setParameter("RenewalPeriodUnit", renewalPeriodUnit);
}
int SetRenewalRequest::getRenewalPeriod()const
{
return renewalPeriod_;
}
void SetRenewalRequest::setRenewalPeriod(int renewalPeriod)
{
renewalPeriod_ = renewalPeriod;
setParameter("RenewalPeriod", std::to_string(renewalPeriod));
}
long SetRenewalRequest::getOwnerId()const
{
return ownerId_;
}
void SetRenewalRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string SetRenewalRequest::getProductType()const
{
return productType_;
}
void SetRenewalRequest::setProductType(const std::string& productType)
{
productType_ = productType;
setParameter("ProductType", productType);
}

View File

@@ -0,0 +1,66 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/bssopenapi/model/SetRenewalResult.h>
#include <json/json.h>
using namespace AlibabaCloud::BssOpenApi;
using namespace AlibabaCloud::BssOpenApi::Model;
SetRenewalResult::SetRenewalResult() :
ServiceResult()
{}
SetRenewalResult::SetRenewalResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
SetRenewalResult::~SetRenewalResult()
{}
void SetRenewalResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].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 SetRenewalResult::getMessage()const
{
return message_;
}
std::string SetRenewalResult::getCode()const
{
return code_;
}
bool SetRenewalResult::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/SetUserAlarmThresholdRequest.h>
using AlibabaCloud::BssOpenApi::Model::SetUserAlarmThresholdRequest;
SetUserAlarmThresholdRequest::SetUserAlarmThresholdRequest() :
RpcServiceRequest("bssopenapi", "2017-12-14", "SetUserAlarmThreshold")
{}
SetUserAlarmThresholdRequest::~SetUserAlarmThresholdRequest()
{}
long SetUserAlarmThresholdRequest::getUid()const
{
return uid_;
}
void SetUserAlarmThresholdRequest::setUid(long uid)
{
uid_ = uid;
setParameter("Uid", std::to_string(uid));
}
std::string SetUserAlarmThresholdRequest::getAlarmType()const
{
return alarmType_;
}
void SetUserAlarmThresholdRequest::setAlarmType(const std::string& alarmType)
{
alarmType_ = alarmType;
setParameter("AlarmType", alarmType);
}
std::string SetUserAlarmThresholdRequest::getAlarmThresholds()const
{
return alarmThresholds_;
}
void SetUserAlarmThresholdRequest::setAlarmThresholds(const std::string& alarmThresholds)
{
alarmThresholds_ = alarmThresholds;
setParameter("AlarmThresholds", alarmThresholds);
}
std::string SetUserAlarmThresholdRequest::getBid()const
{
return bid_;
}
void SetUserAlarmThresholdRequest::setBid(const std::string& bid)
{
bid_ = bid;
setParameter("Bid", bid);
}

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/SetUserAlarmThresholdResult.h>
#include <json/json.h>
using namespace AlibabaCloud::BssOpenApi;
using namespace AlibabaCloud::BssOpenApi::Model;
SetUserAlarmThresholdResult::SetUserAlarmThresholdResult() :
ServiceResult()
{}
SetUserAlarmThresholdResult::SetUserAlarmThresholdResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
SetUserAlarmThresholdResult::~SetUserAlarmThresholdResult()
{}
void SetUserAlarmThresholdResult::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 SetUserAlarmThresholdResult::getMessage()const
{
return message_;
}
bool SetUserAlarmThresholdResult::getData()const
{
return data_;
}
std::string SetUserAlarmThresholdResult::getCode()const
{
return code_;
}
bool SetUserAlarmThresholdResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,82 @@
/*
* 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/SetUserQuotaRequest.h>
using AlibabaCloud::BssOpenApi::Model::SetUserQuotaRequest;
SetUserQuotaRequest::SetUserQuotaRequest() :
RpcServiceRequest("bssopenapi", "2017-12-14", "SetUserQuota")
{}
SetUserQuotaRequest::~SetUserQuotaRequest()
{}
long SetUserQuotaRequest::getUid()const
{
return uid_;
}
void SetUserQuotaRequest::setUid(long uid)
{
uid_ = uid;
setParameter("Uid", std::to_string(uid));
}
std::string SetUserQuotaRequest::getAmount()const
{
return amount_;
}
void SetUserQuotaRequest::setAmount(const std::string& amount)
{
amount_ = amount;
setParameter("Amount", amount);
}
std::string SetUserQuotaRequest::getOutBizId()const
{
return outBizId_;
}
void SetUserQuotaRequest::setOutBizId(const std::string& outBizId)
{
outBizId_ = outBizId;
setParameter("OutBizId", outBizId);
}
std::string SetUserQuotaRequest::getCurrency()const
{
return currency_;
}
void SetUserQuotaRequest::setCurrency(const std::string& currency)
{
currency_ = currency;
setParameter("Currency", currency);
}
std::string SetUserQuotaRequest::getBid()const
{
return bid_;
}
void SetUserQuotaRequest::setBid(const std::string& bid)
{
bid_ = bid;
setParameter("Bid", bid);
}

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/SetUserQuotaResult.h>
#include <json/json.h>
using namespace AlibabaCloud::BssOpenApi;
using namespace AlibabaCloud::BssOpenApi::Model;
SetUserQuotaResult::SetUserQuotaResult() :
ServiceResult()
{}
SetUserQuotaResult::SetUserQuotaResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
SetUserQuotaResult::~SetUserQuotaResult()
{}
void SetUserQuotaResult::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 SetUserQuotaResult::getMessage()const
{
return message_;
}
bool SetUserQuotaResult::getData()const
{
return data_;
}
std::string SetUserQuotaResult::getCode()const
{
return code_;
}
bool SetUserQuotaResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,61 @@
/*
* 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/SubscribeDetailRequest.h>
using AlibabaCloud::BssOpenApi::Model::SubscribeDetailRequest;
SubscribeDetailRequest::SubscribeDetailRequest() :
RpcServiceRequest("bssopenapi", "2017-12-14", "SubscribeDetail")
{}
SubscribeDetailRequest::~SubscribeDetailRequest()
{}
long SubscribeDetailRequest::getBucketOwnerId()const
{
return bucketOwnerId_;
}
void SubscribeDetailRequest::setBucketOwnerId(long bucketOwnerId)
{
bucketOwnerId_ = bucketOwnerId;
setParameter("BucketOwnerId", std::to_string(bucketOwnerId));
}
std::vector<std::string> SubscribeDetailRequest::getSubscribeType()const
{
return subscribeType_;
}
void SubscribeDetailRequest::setSubscribeType(const std::vector<std::string>& subscribeType)
{
subscribeType_ = subscribeType;
for(int i = 0; i!= subscribeType.size(); i++)
setParameter("SubscribeType."+ std::to_string(i), subscribeType.at(i));
}
std::string SubscribeDetailRequest::getSubscribeBucket()const
{
return subscribeBucket_;
}
void SubscribeDetailRequest::setSubscribeBucket(const std::string& subscribeBucket)
{
subscribeBucket_ = subscribeBucket;
setParameter("SubscribeBucket", subscribeBucket);
}

View File

@@ -0,0 +1,66 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/bssopenapi/model/SubscribeDetailResult.h>
#include <json/json.h>
using namespace AlibabaCloud::BssOpenApi;
using namespace AlibabaCloud::BssOpenApi::Model;
SubscribeDetailResult::SubscribeDetailResult() :
ServiceResult()
{}
SubscribeDetailResult::SubscribeDetailResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
SubscribeDetailResult::~SubscribeDetailResult()
{}
void SubscribeDetailResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].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 SubscribeDetailResult::getMessage()const
{
return message_;
}
std::string SubscribeDetailResult::getCode()const
{
return code_;
}
bool SubscribeDetailResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,61 @@
/*
* 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/SubscribeExportToOSSRequest.h>
using AlibabaCloud::BssOpenApi::Model::SubscribeExportToOSSRequest;
SubscribeExportToOSSRequest::SubscribeExportToOSSRequest() :
RpcServiceRequest("bssopenapi", "2017-12-14", "SubscribeExportToOSS")
{}
SubscribeExportToOSSRequest::~SubscribeExportToOSSRequest()
{}
long SubscribeExportToOSSRequest::getBucketOwnerId()const
{
return bucketOwnerId_;
}
void SubscribeExportToOSSRequest::setBucketOwnerId(long bucketOwnerId)
{
bucketOwnerId_ = bucketOwnerId;
setParameter("BucketOwnerId", std::to_string(bucketOwnerId));
}
std::vector<std::string> SubscribeExportToOSSRequest::getSubscribeType()const
{
return subscribeType_;
}
void SubscribeExportToOSSRequest::setSubscribeType(const std::vector<std::string>& subscribeType)
{
subscribeType_ = subscribeType;
for(int i = 0; i!= subscribeType.size(); i++)
setParameter("SubscribeType."+ std::to_string(i), subscribeType.at(i));
}
std::string SubscribeExportToOSSRequest::getSubscribeBucket()const
{
return subscribeBucket_;
}
void SubscribeExportToOSSRequest::setSubscribeBucket(const std::string& subscribeBucket)
{
subscribeBucket_ = subscribeBucket;
setParameter("SubscribeBucket", subscribeBucket);
}

View File

@@ -0,0 +1,66 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/bssopenapi/model/SubscribeExportToOSSResult.h>
#include <json/json.h>
using namespace AlibabaCloud::BssOpenApi;
using namespace AlibabaCloud::BssOpenApi::Model;
SubscribeExportToOSSResult::SubscribeExportToOSSResult() :
ServiceResult()
{}
SubscribeExportToOSSResult::SubscribeExportToOSSResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
SubscribeExportToOSSResult::~SubscribeExportToOSSResult()
{}
void SubscribeExportToOSSResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].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 SubscribeExportToOSSResult::getMessage()const
{
return message_;
}
std::string SubscribeExportToOSSResult::getCode()const
{
return code_;
}
bool SubscribeExportToOSSResult::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/UnsubscribeExportToOSSRequest.h>
using AlibabaCloud::BssOpenApi::Model::UnsubscribeExportToOSSRequest;
UnsubscribeExportToOSSRequest::UnsubscribeExportToOSSRequest() :
RpcServiceRequest("bssopenapi", "2017-12-14", "UnsubscribeExportToOSS")
{}
UnsubscribeExportToOSSRequest::~UnsubscribeExportToOSSRequest()
{}

View File

@@ -0,0 +1,66 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/bssopenapi/model/UnsubscribeExportToOSSResult.h>
#include <json/json.h>
using namespace AlibabaCloud::BssOpenApi;
using namespace AlibabaCloud::BssOpenApi::Model;
UnsubscribeExportToOSSResult::UnsubscribeExportToOSSResult() :
ServiceResult()
{}
UnsubscribeExportToOSSResult::UnsubscribeExportToOSSResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
UnsubscribeExportToOSSResult::~UnsubscribeExportToOSSResult()
{}
void UnsubscribeExportToOSSResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].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 UnsubscribeExportToOSSResult::getMessage()const
{
return message_;
}
std::string UnsubscribeExportToOSSResult::getCode()const
{
return code_;
}
bool UnsubscribeExportToOSSResult::getSuccess()const
{
return success_;
}