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.
89 lines
1.6 KiB
89 lines
1.6 KiB
<?php
|
|
/**
|
|
* 苏宁开放平台接口 -
|
|
*
|
|
* @author suning
|
|
* @date 2021-5-19
|
|
*/
|
|
class SquareinventoryModifyRequest extends SuningRequest{
|
|
|
|
/**
|
|
*
|
|
*/
|
|
private $cmmdtyList;
|
|
|
|
public function getCmmdtyList() {
|
|
return $this->cmmdtyList;
|
|
}
|
|
|
|
public function setCmmdtyList($cmmdtyList) {
|
|
$this->cmmdtyList = $cmmdtyList;
|
|
$arr = array();
|
|
foreach ($cmmdtyList as $temp){
|
|
array_push($arr,$temp->getApiParams());
|
|
}
|
|
$this->apiParams["cmmdtyList"] = $arr;
|
|
}
|
|
|
|
public function getApiMethodName(){
|
|
return 'suning.custom.squareinventory.modify';
|
|
}
|
|
|
|
public function getApiParams(){
|
|
return $this->apiParams;
|
|
}
|
|
|
|
public function check(){
|
|
//非空校验
|
|
}
|
|
|
|
public function getBizName(){
|
|
return "modifySquareinventory";
|
|
}
|
|
|
|
}
|
|
|
|
class CmmdtyList {
|
|
|
|
private $apiParams = array();
|
|
|
|
private $cmmdtyCode;
|
|
|
|
private $invQty;
|
|
|
|
private $storeCode;
|
|
|
|
public function getCmmdtyCode() {
|
|
return $this->cmmdtyCode;
|
|
}
|
|
|
|
public function setCmmdtyCode($cmmdtyCode) {
|
|
$this->cmmdtyCode = $cmmdtyCode;
|
|
$this->apiParams["cmmdtyCode"] = $cmmdtyCode;
|
|
}
|
|
|
|
public function getInvQty() {
|
|
return $this->invQty;
|
|
}
|
|
|
|
public function setInvQty($invQty) {
|
|
$this->invQty = $invQty;
|
|
$this->apiParams["invQty"] = $invQty;
|
|
}
|
|
|
|
public function getStoreCode() {
|
|
return $this->storeCode;
|
|
}
|
|
|
|
public function setStoreCode($storeCode) {
|
|
$this->storeCode = $storeCode;
|
|
$this->apiParams["storeCode"] = $storeCode;
|
|
}
|
|
|
|
public function getApiParams(){
|
|
return $this->apiParams;
|
|
}
|
|
|
|
}
|
|
|
|
?>
|