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/ApplypurorderConfirmRequest...

186 lines
3.5 KiB

<?php
/**
* 苏宁开放平台接口 -
*
* @author suning
* @date 2021-7-14
*/
class ApplypurorderConfirmRequest extends SuningRequest{
/**
*
*/
private $applyCode;
/**
*
*/
private $comfirmCode;
/**
*
*/
private $comfirmTime;
/**
*
*/
private $countNum;
/**
*
*/
private $item;
/**
*
*/
private $supplierCode;
public function getApplyCode() {
return $this->applyCode;
}
public function setApplyCode($applyCode) {
$this->applyCode = $applyCode;
$this->apiParams["applyCode"] = $applyCode;
}
public function getComfirmCode() {
return $this->comfirmCode;
}
public function setComfirmCode($comfirmCode) {
$this->comfirmCode = $comfirmCode;
$this->apiParams["comfirmCode"] = $comfirmCode;
}
public function getComfirmTime() {
return $this->comfirmTime;
}
public function setComfirmTime($comfirmTime) {
$this->comfirmTime = $comfirmTime;
$this->apiParams["comfirmTime"] = $comfirmTime;
}
public function getCountNum() {
return $this->countNum;
}
public function setCountNum($countNum) {
$this->countNum = $countNum;
$this->apiParams["countNum"] = $countNum;
}
public function getItem() {
return $this->item;
}
public function setItem($item) {
$this->item = $item;
$arr = array();
foreach ($item as $temp){
array_push($arr,$temp->getApiParams());
}
$this->apiParams["item"] = $arr;
}
public function getSupplierCode() {
return $this->supplierCode;
}
public function setSupplierCode($supplierCode) {
$this->supplierCode = $supplierCode;
$this->apiParams["supplierCode"] = $supplierCode;
}
public function getApiMethodName(){
return 'suning.selfmarket.applypurorder.confirm';
}
public function getApiParams(){
return $this->apiParams;
}
public function check(){
//非空校验
RequestCheckUtil::checkNotNull($this->applyCode, 'applyCode');
RequestCheckUtil::checkNotNull($this->comfirmCode, 'comfirmCode');
RequestCheckUtil::checkNotNull($this->comfirmTime, 'comfirmTime');
RequestCheckUtil::checkNotNull($this->countNum, 'countNum');
RequestCheckUtil::checkNotNull($this->supplierCode, 'supplierCode');
}
public function getBizName(){
return "confirmApplypurorder";
}
}
class Item {
private $apiParams = array();
private $cmmdtyCode;
private $comfirmNum;
private $deliveryDate;
private $itemNo;
private $remark;
public function getCmmdtyCode() {
return $this->cmmdtyCode;
}
public function setCmmdtyCode($cmmdtyCode) {
$this->cmmdtyCode = $cmmdtyCode;
$this->apiParams["cmmdtyCode"] = $cmmdtyCode;
}
public function getComfirmNum() {
return $this->comfirmNum;
}
public function setComfirmNum($comfirmNum) {
$this->comfirmNum = $comfirmNum;
$this->apiParams["comfirmNum"] = $comfirmNum;
}
public function getDeliveryDate() {
return $this->deliveryDate;
}
public function setDeliveryDate($deliveryDate) {
$this->deliveryDate = $deliveryDate;
$this->apiParams["deliveryDate"] = $deliveryDate;
}
public function getItemNo() {
return $this->itemNo;
}
public function setItemNo($itemNo) {
$this->itemNo = $itemNo;
$this->apiParams["itemNo"] = $itemNo;
}
public function getRemark() {
return $this->remark;
}
public function setRemark($remark) {
$this->remark = $remark;
$this->apiParams["remark"] = $remark;
}
public function getApiParams(){
return $this->apiParams;
}
}
?>