Files
aliyun-openapi-cpp-sdk/domain/src/model/SaveBatchTaskForCreatingOrderTransferRequest.cc
2020-03-26 17:47:49 +08:00

114 lines
3.8 KiB
C++

/*
* 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/domain/model/SaveBatchTaskForCreatingOrderTransferRequest.h>
using AlibabaCloud::Domain::Model::SaveBatchTaskForCreatingOrderTransferRequest;
SaveBatchTaskForCreatingOrderTransferRequest::SaveBatchTaskForCreatingOrderTransferRequest() :
RpcServiceRequest("domain", "2018-01-29", "SaveBatchTaskForCreatingOrderTransfer")
{
setMethod(HttpRequest::Method::Post);
}
SaveBatchTaskForCreatingOrderTransferRequest::~SaveBatchTaskForCreatingOrderTransferRequest()
{}
std::vector<SaveBatchTaskForCreatingOrderTransferRequest::OrderTransferParam> SaveBatchTaskForCreatingOrderTransferRequest::getOrderTransferParam()const
{
return orderTransferParam_;
}
void SaveBatchTaskForCreatingOrderTransferRequest::setOrderTransferParam(const std::vector<OrderTransferParam>& orderTransferParam)
{
orderTransferParam_ = orderTransferParam;
for(int dep1 = 0; dep1!= orderTransferParam.size(); dep1++) {
auto orderTransferParamObj = orderTransferParam.at(dep1);
std::string orderTransferParamObjStr = "OrderTransferParam." + std::to_string(dep1 + 1);
setParameter(orderTransferParamObjStr + ".PermitPremiumTransfer", orderTransferParamObj.permitPremiumTransfer ? "true" : "false");
setParameter(orderTransferParamObjStr + ".AuthorizationCode", orderTransferParamObj.authorizationCode);
setParameter(orderTransferParamObjStr + ".DomainName", orderTransferParamObj.domainName);
setParameter(orderTransferParamObjStr + ".RegistrantProfileId", std::to_string(orderTransferParamObj.registrantProfileId));
}
}
std::string SaveBatchTaskForCreatingOrderTransferRequest::getCouponNo()const
{
return couponNo_;
}
void SaveBatchTaskForCreatingOrderTransferRequest::setCouponNo(const std::string& couponNo)
{
couponNo_ = couponNo;
setParameter("CouponNo", couponNo);
}
bool SaveBatchTaskForCreatingOrderTransferRequest::getUseCoupon()const
{
return useCoupon_;
}
void SaveBatchTaskForCreatingOrderTransferRequest::setUseCoupon(bool useCoupon)
{
useCoupon_ = useCoupon;
setParameter("UseCoupon", useCoupon ? "true" : "false");
}
std::string SaveBatchTaskForCreatingOrderTransferRequest::getPromotionNo()const
{
return promotionNo_;
}
void SaveBatchTaskForCreatingOrderTransferRequest::setPromotionNo(const std::string& promotionNo)
{
promotionNo_ = promotionNo;
setParameter("PromotionNo", promotionNo);
}
std::string SaveBatchTaskForCreatingOrderTransferRequest::getUserClientIp()const
{
return userClientIp_;
}
void SaveBatchTaskForCreatingOrderTransferRequest::setUserClientIp(const std::string& userClientIp)
{
userClientIp_ = userClientIp;
setParameter("UserClientIp", userClientIp);
}
std::string SaveBatchTaskForCreatingOrderTransferRequest::getLang()const
{
return lang_;
}
void SaveBatchTaskForCreatingOrderTransferRequest::setLang(const std::string& lang)
{
lang_ = lang;
setParameter("Lang", lang);
}
bool SaveBatchTaskForCreatingOrderTransferRequest::getUsePromotion()const
{
return usePromotion_;
}
void SaveBatchTaskForCreatingOrderTransferRequest::setUsePromotion(bool usePromotion)
{
usePromotion_ = usePromotion;
setParameter("UsePromotion", usePromotion ? "true" : "false");
}