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.
yanzong/extend/suning-sdk-php/request/item/BookItemQueryRequest.php

112 lines
2.7 KiB

8 months ago
<?php
/**
* 苏宁开放平台接口 - 商品API - 获取我的商品库信息(文化制品类商品)
*
* $pack suning.custom.book.item.query
* @author jerry(14033184@cnsuning.com)
* @date 2014-05-26
*/
class BookItemQueryRequest extends SelectSuningRequest
{
/**
* 出版社编码。非必填项,可由平台业务-商品服务-获取商品品牌信息(文化制品类)接口获得。
* 根据接口输入内容进行精确查询,不可输入中文。出版社编码、采购目录编码必须输入其中一个。
*/
private $brandCode;
/**
* 采购目录编码。非必填项,可由平台业务-商品服务-获取商品采购目录信息接口获取。
* 根据接口输入内容进行精确查询,不可输入中文。出版社编码、采购目录编码必须输入其中一个。
*/
private $categoryCode;
/**
* 处理状态。0:正在审核;1:正在处理;2:处理成功;3:处理失败
*/
private $status;
/**
* 开始时间,格式:yyyy-MM-dd HH:mm:ss
*/
private $startTime;
/**
* 结束时间,格式:yyyy-MM-dd HH:mm:ss
*/
private $endTime;
public function getStartTime()
{
return $this->startTime;
}
public function setStartTime($startTime)
{
$this->startTime = $startTime;
$this->apiParams["startTime"] = $startTime;
}
public function getEndTime()
{
return $this->endTime;
}
public function setEndTime($endTime)
{
$this->endTime = $endTime;
$this->apiParams["endTime"] = $endTime;
}
public function setBrandCode($brandCode)
{
$this->brandCode = $brandCode;
$this->apiParams["brandCode"] = $brandCode;
}
public function getBrandCode()
{
return $this->brandCode;
}
public function setCategoryCode($categoryCode)
{
$this->categoryCode = $categoryCode;
$this->apiParams["categoryCode"] = $categoryCode;
}
public function getCategoryCode()
{
return $this->categoryCode;
}
public function setStatus($status)
{
$this->status = $status;
$this->apiParams["status"] = $status;
}
public function getStatus()
{
return $this->status;
}
public function getApiMethodName()
{
return 'suning.custom.book.item.query';
}
public function getApiParams()
{
return $this->apiParams;
}
public function check($pageNoMin = 1, $pageNoMax = 99999, $pageSizeMin = 10, $pageSizeMax = 50) {
RequestCheckUtil::checkValueInItemList($this->status, array(0, 1, 2, 3), 'status');
parent::check();
}
public function getBizName(){
return "item";
}
}
?>