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

181 lines
3.3 KiB

8 months ago
<?php
/**
* 苏宁开放平台接口 -
*
* @author suning
* @date 2021-12-3
*/
class ProtopriceAddRequest extends SuningRequest{
/**
*
*/
private $effectiveDate;
/**
*
*/
private $infoList;
/**
*
*/
private $pdfFile;
/**
*
*/
private $priceFileName;
/**
*
*/
private $signDate;
/**
*
*/
private $supplierCode;
public function getEffectiveDate() {
return $this->effectiveDate;
}
public function setEffectiveDate($effectiveDate) {
$this->effectiveDate = $effectiveDate;
$this->apiParams["effectiveDate"] = $effectiveDate;
}
public function getInfoList() {
return $this->infoList;
}
public function setInfoList($infoList) {
$this->infoList = $infoList;
$arr = array();
foreach ($infoList as $temp){
array_push($arr,$temp->getApiParams());
}
$this->apiParams["infoList"] = $arr;
}
public function getPdfFile() {
return $this->pdfFile;
}
public function setPdfFile($pdfFile) {
$this->pdfFile = $pdfFile;
$this->apiParams["pdfFile"] = $pdfFile;
}
public function getPriceFileName() {
return $this->priceFileName;
}
public function setPriceFileName($priceFileName) {
$this->priceFileName = $priceFileName;
$this->apiParams["priceFileName"] = $priceFileName;
}
public function getSignDate() {
return $this->signDate;
}
public function setSignDate($signDate) {
$this->signDate = $signDate;
$this->apiParams["signDate"] = $signDate;
}
public function getSupplierCode() {
return $this->supplierCode;
}
public function setSupplierCode($supplierCode) {
$this->supplierCode = $supplierCode;
$this->apiParams["supplierCode"] = $supplierCode;
}
public function getApiMethodName(){
return 'suning.selfmarket.protoprice.add';
}
public function getApiParams(){
return $this->apiParams;
}
public function check(){
//非空校验
}
public function getBizName(){
return "addProtoprice";
}
}
class InfoList {
private $apiParams = array();
private $comment;
private $productCode;
private $serialNumber;
private $storeCode;
private $supplyPrice;
public function getComment() {
return $this->comment;
}
public function setComment($comment) {
$this->comment = $comment;
$this->apiParams["comment"] = $comment;
}
public function getProductCode() {
return $this->productCode;
}
public function setProductCode($productCode) {
$this->productCode = $productCode;
$this->apiParams["productCode"] = $productCode;
}
public function getSerialNumber() {
return $this->serialNumber;
}
public function setSerialNumber($serialNumber) {
$this->serialNumber = $serialNumber;
$this->apiParams["serialNumber"] = $serialNumber;
}
public function getStoreCode() {
return $this->storeCode;
}
public function setStoreCode($storeCode) {
$this->storeCode = $storeCode;
$this->apiParams["storeCode"] = $storeCode;
}
public function getSupplyPrice() {
return $this->supplyPrice;
}
public function setSupplyPrice($supplyPrice) {
$this->supplyPrice = $supplyPrice;
$this->apiParams["supplyPrice"] = $supplyPrice;
}
public function getApiParams(){
return $this->apiParams;
}
}
?>