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/PurchaseOrderAddRequest.php

199 lines
4.0 KiB

<?php
/**
* 苏宁开放平台接口 -
*
* @author suning
* @date 2022-10-10
*/
class PurchaseOrderAddRequest extends SuningRequest{
/**
*
*/
private $confirmDeliveryDate;
/**
*
*/
private $confirmList;
/**
*
*/
private $confirmQty;
/**
*
*/
private $confirmType;
/**
*
*/
private $itemNo;
/**
*
*/
private $orderCode;
/**
*
*/
private $supplierCode;
public function getConfirmDeliveryDate() {
return $this->confirmDeliveryDate;
}
public function setConfirmDeliveryDate($confirmDeliveryDate) {
$this->confirmDeliveryDate = $confirmDeliveryDate;
$this->apiParams["confirmDeliveryDate"] = $confirmDeliveryDate;
}
public function getConfirmList() {
return $this->confirmList;
}
public function setConfirmList($confirmList) {
$this->confirmList = $confirmList;
$arr = array();
foreach ($confirmList as $temp){
array_push($arr,$temp->getApiParams());
}
$this->apiParams["confirmList"] = $arr;
}
public function getConfirmQty() {
return $this->confirmQty;
}
public function setConfirmQty($confirmQty) {
$this->confirmQty = $confirmQty;
$this->apiParams["confirmQty"] = $confirmQty;
}
public function getConfirmType() {
return $this->confirmType;
}
public function setConfirmType($confirmType) {
$this->confirmType = $confirmType;
$this->apiParams["confirmType"] = $confirmType;
}
public function getItemNo() {
return $this->itemNo;
}
public function setItemNo($itemNo) {
$this->itemNo = $itemNo;
$this->apiParams["itemNo"] = $itemNo;
}
public function getOrderCode() {
return $this->orderCode;
}
public function setOrderCode($orderCode) {
$this->orderCode = $orderCode;
$this->apiParams["orderCode"] = $orderCode;
}
public function getSupplierCode() {
return $this->supplierCode;
}
public function setSupplierCode($supplierCode) {
$this->supplierCode = $supplierCode;
$this->apiParams["supplierCode"] = $supplierCode;
}
public function getApiMethodName(){
return 'suning.selfmarket.purchaseorder.add';
}
public function getApiParams(){
return $this->apiParams;
}
public function check(){
//非空校验
RequestCheckUtil::checkNotNull($this->confirmType, 'confirmType');
RequestCheckUtil::checkNotNull($this->itemNo, 'itemNo');
RequestCheckUtil::checkNotNull($this->orderCode, 'orderCode');
RequestCheckUtil::checkNotNull($this->supplierCode, 'supplierCode');
}
public function getBizName(){
return "purchaseOrderConfirm";
}
}
class ConfirmList {
private $apiParams = array();
private $supplierItemCode;
private $supplierItemQty;
private $supplierOrderCode;
private $supplyDate;
private $supplyType;
public function getSupplierItemCode() {
return $this->supplierItemCode;
}
public function setSupplierItemCode($supplierItemCode) {
$this->supplierItemCode = $supplierItemCode;
$this->apiParams["supplierItemCode"] = $supplierItemCode;
}
public function getSupplierItemQty() {
return $this->supplierItemQty;
}
public function setSupplierItemQty($supplierItemQty) {
$this->supplierItemQty = $supplierItemQty;
$this->apiParams["supplierItemQty"] = $supplierItemQty;
}
public function getSupplierOrderCode() {
return $this->supplierOrderCode;
}
public function setSupplierOrderCode($supplierOrderCode) {
$this->supplierOrderCode = $supplierOrderCode;
$this->apiParams["supplierOrderCode"] = $supplierOrderCode;
}
public function getSupplyDate() {
return $this->supplyDate;
}
public function setSupplyDate($supplyDate) {
$this->supplyDate = $supplyDate;
$this->apiParams["supplyDate"] = $supplyDate;
}
public function getSupplyType() {
return $this->supplyType;
}
public function setSupplyType($supplyType) {
$this->supplyType = $supplyType;
$this->apiParams["supplyType"] = $supplyType;
}
public function getApiParams(){
return $this->apiParams;
}
}
?>