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.
100 lines
2.0 KiB
100 lines
2.0 KiB
8 months ago
|
<?php
|
||
|
/**
|
||
|
* 苏宁开放平台接口 -
|
||
|
*
|
||
|
* @author suning
|
||
|
* @date 2019-9-4
|
||
|
*/
|
||
|
class TmallinventoryQueryRequest extends SuningRequest{
|
||
|
|
||
|
/**
|
||
|
*
|
||
|
*/
|
||
|
private $goodsList;
|
||
|
|
||
|
public function getGoodsList() {
|
||
|
return $this->goodsList;
|
||
|
}
|
||
|
|
||
|
public function setGoodsList($goodsList) {
|
||
|
$this->goodsList = $goodsList;
|
||
|
$arr = array();
|
||
|
foreach ($goodsList as $temp){
|
||
|
array_push($arr,$temp->getApiParams());
|
||
|
}
|
||
|
$this->apiParams["goodsList"] = $arr;
|
||
|
}
|
||
|
|
||
|
public function getApiMethodName(){
|
||
|
return 'suning.selfmarket.tmallinventory.query';
|
||
|
}
|
||
|
|
||
|
public function getApiParams(){
|
||
|
return $this->apiParams;
|
||
|
}
|
||
|
|
||
|
public function check(){
|
||
|
//非空校验
|
||
|
}
|
||
|
|
||
|
public function getBizName(){
|
||
|
return "queryTmallinventory";
|
||
|
}
|
||
|
|
||
|
}
|
||
|
|
||
|
class GoodsList {
|
||
|
|
||
|
private $apiParams = array();
|
||
|
|
||
|
private $commodityCode;
|
||
|
|
||
|
private $supplierCommodityCode;
|
||
|
|
||
|
private $warehouseCode;
|
||
|
|
||
|
private $warehouseLocation;
|
||
|
|
||
|
public function getCommodityCode() {
|
||
|
return $this->commodityCode;
|
||
|
}
|
||
|
|
||
|
public function setCommodityCode($commodityCode) {
|
||
|
$this->commodityCode = $commodityCode;
|
||
|
$this->apiParams["commodityCode"] = $commodityCode;
|
||
|
}
|
||
|
|
||
|
public function getSupplierCommodityCode() {
|
||
|
return $this->supplierCommodityCode;
|
||
|
}
|
||
|
|
||
|
public function setSupplierCommodityCode($supplierCommodityCode) {
|
||
|
$this->supplierCommodityCode = $supplierCommodityCode;
|
||
|
$this->apiParams["supplierCommodityCode"] = $supplierCommodityCode;
|
||
|
}
|
||
|
|
||
|
public function getWarehouseCode() {
|
||
|
return $this->warehouseCode;
|
||
|
}
|
||
|
|
||
|
public function setWarehouseCode($warehouseCode) {
|
||
|
$this->warehouseCode = $warehouseCode;
|
||
|
$this->apiParams["warehouseCode"] = $warehouseCode;
|
||
|
}
|
||
|
|
||
|
public function getWarehouseLocation() {
|
||
|
return $this->warehouseLocation;
|
||
|
}
|
||
|
|
||
|
public function setWarehouseLocation($warehouseLocation) {
|
||
|
$this->warehouseLocation = $warehouseLocation;
|
||
|
$this->apiParams["warehouseLocation"] = $warehouseLocation;
|
||
|
}
|
||
|
|
||
|
public function getApiParams(){
|
||
|
return $this->apiParams;
|
||
|
}
|
||
|
|
||
|
}
|
||
|
|
||
|
?>
|