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.
145 lines
2.8 KiB
145 lines
2.8 KiB
<?php
|
|
/**
|
|
* 苏宁开放平台接口 -
|
|
*
|
|
* @author suning
|
|
* @date 2019-1-28
|
|
*/
|
|
class CaronecangetcouponQueryRequest extends SuningRequest{
|
|
|
|
/**
|
|
*
|
|
*/
|
|
private $channelId;
|
|
|
|
/**
|
|
*
|
|
*/
|
|
private $city;
|
|
|
|
/**
|
|
*
|
|
*/
|
|
private $memberId;
|
|
|
|
/**
|
|
*
|
|
*/
|
|
private $productList;
|
|
|
|
public function getChannelId() {
|
|
return $this->channelId;
|
|
}
|
|
|
|
public function setChannelId($channelId) {
|
|
$this->channelId = $channelId;
|
|
$this->apiParams["channelId"] = $channelId;
|
|
}
|
|
|
|
public function getCity() {
|
|
return $this->city;
|
|
}
|
|
|
|
public function setCity($city) {
|
|
$this->city = $city;
|
|
$this->apiParams["city"] = $city;
|
|
}
|
|
|
|
public function getMemberId() {
|
|
return $this->memberId;
|
|
}
|
|
|
|
public function setMemberId($memberId) {
|
|
$this->memberId = $memberId;
|
|
$this->apiParams["memberId"] = $memberId;
|
|
}
|
|
|
|
public function getProductList() {
|
|
return $this->productList;
|
|
}
|
|
|
|
public function setProductList($productList) {
|
|
$this->productList = $productList;
|
|
$arr = array();
|
|
foreach ($productList as $temp){
|
|
array_push($arr,$temp->getApiParams());
|
|
}
|
|
$this->apiParams["productList"] = $arr;
|
|
}
|
|
|
|
public function getApiMethodName(){
|
|
return 'suning.online.caronecangetcoupon.query';
|
|
}
|
|
|
|
public function getApiParams(){
|
|
return $this->apiParams;
|
|
}
|
|
|
|
public function check(){
|
|
//非空校验
|
|
RequestCheckUtil::checkNotNull($this->channelId, 'channelId');
|
|
RequestCheckUtil::checkNotNull($this->city, 'city');
|
|
RequestCheckUtil::checkNotNull($this->memberId, 'memberId');
|
|
}
|
|
|
|
public function getBizName(){
|
|
return "queryCaronecangetcoupon";
|
|
}
|
|
|
|
}
|
|
|
|
class ProductList {
|
|
|
|
private $apiParams = array();
|
|
|
|
private $businessSign;
|
|
|
|
private $marketingActivityType;
|
|
|
|
private $productId;
|
|
|
|
private $storeType;
|
|
|
|
public function getBusinessSign() {
|
|
return $this->businessSign;
|
|
}
|
|
|
|
public function setBusinessSign($businessSign) {
|
|
$this->businessSign = $businessSign;
|
|
$this->apiParams["businessSign"] = $businessSign;
|
|
}
|
|
|
|
public function getMarketingActivityType() {
|
|
return $this->marketingActivityType;
|
|
}
|
|
|
|
public function setMarketingActivityType($marketingActivityType) {
|
|
$this->marketingActivityType = $marketingActivityType;
|
|
$this->apiParams["marketingActivityType"] = $marketingActivityType;
|
|
}
|
|
|
|
public function getProductId() {
|
|
return $this->productId;
|
|
}
|
|
|
|
public function setProductId($productId) {
|
|
$this->productId = $productId;
|
|
$this->apiParams["productId"] = $productId;
|
|
}
|
|
|
|
public function getStoreType() {
|
|
return $this->storeType;
|
|
}
|
|
|
|
public function setStoreType($storeType) {
|
|
$this->storeType = $storeType;
|
|
$this->apiParams["storeType"] = $storeType;
|
|
}
|
|
|
|
public function getApiParams(){
|
|
return $this->apiParams;
|
|
}
|
|
|
|
}
|
|
|
|
?>
|