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.
125 lines
2.5 KiB
125 lines
2.5 KiB
<?php
|
|
/**
|
|
* 苏宁开放平台接口 -
|
|
*
|
|
* @author suning
|
|
* @date 2022-5-16
|
|
*/
|
|
class FactorygoodsinvUpdateRequest extends SuningRequest{
|
|
|
|
/**
|
|
*
|
|
*/
|
|
private $goodsList;
|
|
|
|
/**
|
|
*
|
|
*/
|
|
private $invType;
|
|
|
|
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 getInvType() {
|
|
return $this->invType;
|
|
}
|
|
|
|
public function setInvType($invType) {
|
|
$this->invType = $invType;
|
|
$this->apiParams["invType"] = $invType;
|
|
}
|
|
|
|
public function getApiMethodName(){
|
|
return 'suning.selfmarket.factorygoodsinv.update';
|
|
}
|
|
|
|
public function getApiParams(){
|
|
return $this->apiParams;
|
|
}
|
|
|
|
public function check(){
|
|
//非空校验
|
|
}
|
|
|
|
public function getBizName(){
|
|
return "updateFactorygoodsinv";
|
|
}
|
|
|
|
}
|
|
|
|
class GoodsList {
|
|
|
|
private $apiParams = array();
|
|
|
|
private $commodityCode;
|
|
|
|
private $invQty;
|
|
|
|
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 getInvQty() {
|
|
return $this->invQty;
|
|
}
|
|
|
|
public function setInvQty($invQty) {
|
|
$this->invQty = $invQty;
|
|
$this->apiParams["invQty"] = $invQty;
|
|
}
|
|
|
|
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;
|
|
}
|
|
|
|
}
|
|
|
|
?>
|