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/sngoods/ListpagepriceQueryRequest.php

108 lines
2.0 KiB

<?php
/**
* 苏宁开放平台接口 -
*
* @author suning
* @date 2021-5-10
*/
class ListpagepriceQueryRequest extends SuningRequest{
/**
*
*/
private $channelCode;
/**
*
*/
private $cityCode;
/**
*
*/
private $cmmdtyInfoList;
public function getChannelCode() {
return $this->channelCode;
}
public function setChannelCode($channelCode) {
$this->channelCode = $channelCode;
$this->apiParams["channelCode"] = $channelCode;
}
public function getCityCode() {
return $this->cityCode;
}
public function setCityCode($cityCode) {
$this->cityCode = $cityCode;
$this->apiParams["cityCode"] = $cityCode;
}
public function getCmmdtyInfoList() {
return $this->cmmdtyInfoList;
}
public function setCmmdtyInfoList($cmmdtyInfoList) {
$this->cmmdtyInfoList = $cmmdtyInfoList;
$arr = array();
foreach ($cmmdtyInfoList as $temp){
array_push($arr,$temp->getApiParams());
}
$this->apiParams["cmmdtyInfoList"] = $arr;
}
public function getApiMethodName(){
return 'suning.sngoods.listpageprice.query';
}
public function getApiParams(){
return $this->apiParams;
}
public function check(){
//非空校验
RequestCheckUtil::checkNotNull($this->channelCode, 'channelCode');
RequestCheckUtil::checkNotNull($this->cityCode, 'cityCode');
}
public function getBizName(){
return "queryListpageprice";
}
}
class CmmdtyInfoList {
private $apiParams = array();
private $skuId;
private $supplierCode;
public function getSkuId() {
return $this->skuId;
}
public function setSkuId($skuId) {
$this->skuId = $skuId;
$this->apiParams["skuId"] = $skuId;
}
public function getSupplierCode() {
return $this->supplierCode;
}
public function setSupplierCode($supplierCode) {
$this->supplierCode = $supplierCode;
$this->apiParams["supplierCode"] = $supplierCode;
}
public function getApiParams(){
return $this->apiParams;
}
}
?>