You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
105 lines
2.2 KiB
105 lines
2.2 KiB
8 months ago
|
<?php
|
||
|
|
||
|
/**
|
||
|
* 苏宁开放平台接口 - 销售准备API - 新增销售范围模板关联商品组服务
|
||
|
*
|
||
|
* $pack suning.custom.saleareatemplateitemgroup.add
|
||
|
* @author 14050890
|
||
|
* @date 2014-06-03
|
||
|
*/
|
||
|
class SaleareatemplateitemgroupAddRequest extends SuningRequest {
|
||
|
|
||
|
/**
|
||
|
* 模板代码
|
||
|
*/
|
||
|
private $templateId;
|
||
|
|
||
|
/**
|
||
|
* 商品组层级。固定值,4
|
||
|
*/
|
||
|
private $grade;
|
||
|
|
||
|
/**
|
||
|
* 商品组代码信息集合
|
||
|
*/
|
||
|
private $lineComGroupInfoList;
|
||
|
|
||
|
public function getLineComGroupInfoList() {
|
||
|
return $this -> lineComGroupInfoList;
|
||
|
}
|
||
|
|
||
|
public function setLineComGroupInfoList($lineComGroupInfoList) {
|
||
|
$this -> lineComGroupInfoList = $lineComGroupInfoList;
|
||
|
$arr = array();
|
||
|
foreach ($lineComGroupInfoList as $temp){
|
||
|
array_push($arr,$temp->getApiParams());
|
||
|
}
|
||
|
$this->apiParams["lineComGroupInfoList"] = $arr;
|
||
|
}
|
||
|
|
||
|
public function getTemplateId() {
|
||
|
return $this -> templateId;
|
||
|
}
|
||
|
|
||
|
public function getGrade() {
|
||
|
return $this -> grade;
|
||
|
}
|
||
|
|
||
|
public function setTemplateId($templateId) {
|
||
|
$this -> templateId = $templateId;
|
||
|
$this->apiParams["templateId"] = $templateId;
|
||
|
}
|
||
|
|
||
|
public function setGrade($grade) {
|
||
|
$this -> grade = $grade;
|
||
|
$this->apiParams["grade"] = $grade;
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* 根据请求方式,生成相应请求报文
|
||
|
*
|
||
|
* @param
|
||
|
* type 请求方式(json或xml)
|
||
|
*/
|
||
|
public function getApiParams() {
|
||
|
return $this->apiParams;
|
||
|
}
|
||
|
|
||
|
public function getApiMethodName() {
|
||
|
return "suning.custom.saleareatemplateitemgroup.add";
|
||
|
}
|
||
|
|
||
|
public function check() {
|
||
|
RequestCheckUtil::checkNotNull($this -> templateId, 'templateId');
|
||
|
RequestCheckUtil::checkNotNull($this -> grade, 'grade');
|
||
|
}
|
||
|
|
||
|
public function getBizName(){
|
||
|
return "saleAreaTemplateItemGroup";
|
||
|
}
|
||
|
}
|
||
|
|
||
|
class LineComGroupInfoList {
|
||
|
private $apiParams = array();
|
||
|
|
||
|
/**
|
||
|
* 商品组代码
|
||
|
*/
|
||
|
private $commodityGroupCode;
|
||
|
|
||
|
public function getCommodityGroupCode() {
|
||
|
return $this -> commodityGroupCode;
|
||
|
}
|
||
|
|
||
|
public function setCommodityGroupCode($commodityGroupCode) {
|
||
|
$this -> commodityGroupCode = $commodityGroupCode;
|
||
|
$this->apiParams["commodityGroupCode"] = $commodityGroupCode;
|
||
|
}
|
||
|
|
||
|
public function getApiParams()
|
||
|
{
|
||
|
return $this->apiParams;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
?>
|