eleme.openapi.sdk.api.service.AllianceService Maven / Gradle / Ivy
package eleme.openapi.sdk.api.service;
import eleme.openapi.sdk.api.annotation.Service;
import eleme.openapi.sdk.api.base.BaseNopService;
import eleme.openapi.sdk.api.exception.ServiceException;
import eleme.openapi.sdk.oauth.response.Token;
import eleme.openapi.sdk.config.Config;
import eleme.openapi.sdk.api.entity.alliance.*;
import eleme.openapi.sdk.api.enumeration.*;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.*;
/**
* 渠道管理服务
*/
@Service("eleme.alliance")
public class AllianceService extends BaseNopService {
public AllianceService(Config config,Token token) {
super(config, token, AllianceService.class);
}
/**
* 创建三级渠道
*
* @param channelLevel3CreateRequest 三级渠道信息
* @return 创建成功的三级渠道信息
* @throws ServiceException 服务异常
*/
public ChannelLevel3Response createChannelLevel3(ChannelLevel3CreateRequest channelLevel3CreateRequest) throws ServiceException {
Map params = new HashMap();
params.put("channelLevel3CreateRequest", channelLevel3CreateRequest);
return call("eleme.alliance.createChannelLevel3", params);
}
/**
* 编辑三级渠道配置数据
*
* @param channelLevel3BatchUpdateRequest 渠道配置批量编辑
* @return 编辑成功的三级渠道信息
* @throws ServiceException 服务异常
*/
public ChannelLevel3BatchResponse updateChannelLevel3(ChannelLevel3BatchUpdateRequest channelLevel3BatchUpdateRequest) throws ServiceException {
Map params = new HashMap();
params.put("channelLevel3BatchUpdateRequest", channelLevel3BatchUpdateRequest);
return call("eleme.alliance.updateChannelLevel3", params);
}
/**
* 查询三级渠道配置数据
*
* @param channelLevel3QueryRequest 渠道信息批量查询
* @return 查询成功的三级渠道信息
* @throws ServiceException 服务异常
*/
public ChannelLevel3BatchResponse queryChannelLevel3List(ChannelLevel3QueryRequest channelLevel3QueryRequest) throws ServiceException {
Map params = new HashMap();
params.put("channelLevel3QueryRequest", channelLevel3QueryRequest);
return call("eleme.alliance.queryChannelLevel3List", params);
}
/**
* 查询订单信息
*
* @param channelOrderQueryRequest 订单信息查询
* @return 查询成功的订单信息
* @throws ServiceException 服务异常
*/
public ChannelOrderInfoResponse queryOrderInfo(ChannelOrderQueryRequest channelOrderQueryRequest) throws ServiceException {
Map params = new HashMap();
params.put("channelOrderQueryRequest", channelOrderQueryRequest);
return call("eleme.alliance.queryOrderInfo", params);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy