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.
147 lines
2.8 KiB
147 lines
2.8 KiB
<?php
|
|
/**
|
|
* 苏宁开放平台接口 - 销售准备API - 销售范围模板修改
|
|
*
|
|
* $pack suning.custom.saleareatemplate.modify
|
|
* @author 14050890
|
|
* @date 2014-06-03
|
|
*/
|
|
class SaleareatemplateModifyRequest extends SuningRequest{
|
|
/**
|
|
* 模板代码
|
|
*/
|
|
private $templateId;
|
|
|
|
/**
|
|
* 模版名称
|
|
*/
|
|
private $templateName;
|
|
|
|
/**
|
|
* 是否全国 1:全国 0:非全国
|
|
*/
|
|
private $nation;
|
|
|
|
/**
|
|
* 省份列表
|
|
*/
|
|
private $provList;
|
|
|
|
/**
|
|
* 城市列表
|
|
*/
|
|
private $cityList;
|
|
|
|
public function getTemplateId() {
|
|
return $this->templateId;
|
|
}
|
|
|
|
public function getTemplateName() {
|
|
return $this->templateName;
|
|
}
|
|
|
|
public function getNation() {
|
|
return $this->nation;
|
|
}
|
|
|
|
public function setTemplateId($templateId) {
|
|
$this->templateId = $templateId;
|
|
$this->apiParams["templateId"] = $templateId;
|
|
}
|
|
|
|
public function setTemplateName($templateName) {
|
|
$this->templateName = $templateName;
|
|
$this->apiParams["templateName"] = $templateName;
|
|
}
|
|
|
|
public function setNation($nation) {
|
|
$this->nation = $nation;
|
|
$this->apiParams["nation"] = $nation;
|
|
}
|
|
|
|
public function getProvList() {
|
|
return $this->provList;
|
|
}
|
|
|
|
public function getCityList() {
|
|
return $this->cityList;
|
|
}
|
|
|
|
public function setProvList($provList) {
|
|
$this->provList = $provList;
|
|
$this->apiParams["provList"] = $provList->getApiParams();
|
|
}
|
|
|
|
public function setCityList($cityList) {
|
|
$this->cityList = $cityList;
|
|
$this->apiParams["cityList"] = $cityList->getApiParams();
|
|
}
|
|
|
|
/**
|
|
* 根据请求方式,生成相应请求报文
|
|
*
|
|
* @param $type 请求方式(json或xml,默认xml)
|
|
*/
|
|
public function getApiParams() {
|
|
return $this->apiParams;
|
|
}
|
|
|
|
public function getApiMethodName() {
|
|
return "suning.custom.saleareatemplate.modify";
|
|
}
|
|
|
|
public function check() {
|
|
RequestCheckUtil::checkNotNull ( $this->templateId, 'templateId' );
|
|
RequestCheckUtil::checkNotNull ( $this->templateName, 'templateName' );
|
|
RequestCheckUtil::checkNotNull ( $this->nation, 'nation' );
|
|
}
|
|
|
|
public function getBizName(){
|
|
return "saleAreaTemplate";
|
|
}
|
|
}
|
|
|
|
class ProvList{
|
|
private $apiParams = array();
|
|
/**
|
|
* 省份代码
|
|
*/
|
|
private $prov;
|
|
|
|
public function getProv() {
|
|
return $this->prov;
|
|
}
|
|
|
|
public function setProv($prov) {
|
|
$this->prov = $prov;
|
|
$this->apiParams["prov"] = $prov;
|
|
}
|
|
|
|
public function getApiParams()
|
|
{
|
|
return $this->apiParams;
|
|
}
|
|
}
|
|
|
|
class CityList{
|
|
private $apiParams = array();
|
|
/**
|
|
* 城市编码
|
|
*/
|
|
private $city;
|
|
|
|
public function getCity() {
|
|
return $this->city;
|
|
}
|
|
|
|
public function setCity($city) {
|
|
$this->city = $city;
|
|
$this->apiParams["city"] = $city;
|
|
}
|
|
|
|
public function getApiParams()
|
|
{
|
|
return $this->apiParams;
|
|
}
|
|
}
|
|
?>
|