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/selfmarket/FactorygoodsinvModifyReques...

111 lines
2.2 KiB

<?php
/**
* 苏宁开放平台接口 -
*
* @author suning
* @date 2019-7-24
*/
class FactorygoodsinvModifyRequest 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.factorygoodsinv.modify';
}
public function getApiParams(){
return $this->apiParams;
}
public function check(){
//非空校验
}
public function getBizName(){
return "modifyFactorygoodsinv";
}
}
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;
}
}
?>