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.
64 lines
1.2 KiB
64 lines
1.2 KiB
<?php
|
|
/**
|
|
* 苏宁开放平台接口 - 价格API - 价格查询(单个)
|
|
*
|
|
* $pack suning.custom.price.get
|
|
* @author jerry(14033184@cnsuning.com)
|
|
* @date 2014-05-29
|
|
*/
|
|
|
|
class PriceGetRequest extends SuningRequest
|
|
{
|
|
/**
|
|
* 苏宁商品编码
|
|
*/
|
|
private $productCode;
|
|
|
|
/**
|
|
* 商家商品编码。苏宁商品编码、商家商品编码必须有一个有值。
|
|
* 如果填了商家商品编码则按照商家商品编码搜索出对应的苏宁商品编码并查询价格。
|
|
* 如果两者都填写,则以苏宁商品编码为准
|
|
*/
|
|
private $itemCode;
|
|
|
|
public function setProductCode($productCode)
|
|
{
|
|
$this->productCode = $productCode;
|
|
$this->apiParams["productCode"] = $productCode;
|
|
}
|
|
|
|
public function getProductCode()
|
|
{
|
|
return $this->productCode;
|
|
}
|
|
|
|
public function setItemCode($itemCode)
|
|
{
|
|
$this->itemCode = $itemCode;
|
|
$this->apiParams["itemCode"] = $itemCode;
|
|
}
|
|
|
|
public function getItemCode()
|
|
{
|
|
return $this->itemCode;
|
|
}
|
|
|
|
public function getApiMethodName()
|
|
{
|
|
return 'suning.custom.price.get';
|
|
}
|
|
|
|
public function getApiParams()
|
|
{
|
|
return $this->apiParams;
|
|
}
|
|
|
|
public function check()
|
|
{
|
|
}
|
|
|
|
public function getBizName(){
|
|
return "getPrice";
|
|
}
|
|
}
|
|
?>
|