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.
235 lines
4.4 KiB
235 lines
4.4 KiB
8 months ago
|
<?php
|
||
|
/**
|
||
|
* 苏宁开放平台接口 -
|
||
|
*
|
||
|
* @author suning
|
||
|
* @date 2016-8-24
|
||
|
*/
|
||
|
class PriceExclusiveModifyRequest extends SuningRequest{
|
||
|
|
||
|
/**
|
||
|
*
|
||
|
*/
|
||
|
private $activityCode;
|
||
|
|
||
|
/**
|
||
|
*
|
||
|
*/
|
||
|
private $createWay;
|
||
|
|
||
|
/**
|
||
|
*
|
||
|
*/
|
||
|
private $activityName;
|
||
|
|
||
|
/**
|
||
|
*
|
||
|
*/
|
||
|
private $startTime;
|
||
|
|
||
|
/**
|
||
|
*
|
||
|
*/
|
||
|
private $endTime;
|
||
|
|
||
|
/**
|
||
|
*
|
||
|
*/
|
||
|
private $channelInfo;
|
||
|
|
||
|
/**
|
||
|
*
|
||
|
*/
|
||
|
private $priceType;
|
||
|
|
||
|
/**
|
||
|
*
|
||
|
*/
|
||
|
private $productList;
|
||
|
|
||
|
public function getActivityCode() {
|
||
|
return $this->activityCode;
|
||
|
}
|
||
|
|
||
|
public function setActivityCode($activityCode) {
|
||
|
$this->activityCode = $activityCode;
|
||
|
$this->apiParams["activityCode"] = $activityCode;
|
||
|
}
|
||
|
|
||
|
public function getCreateWay() {
|
||
|
return $this->createWay;
|
||
|
}
|
||
|
|
||
|
public function setCreateWay($createWay) {
|
||
|
$this->createWay = $createWay;
|
||
|
$this->apiParams["createWay"] = $createWay;
|
||
|
}
|
||
|
|
||
|
public function getActivityName() {
|
||
|
return $this->activityName;
|
||
|
}
|
||
|
|
||
|
public function setActivityName($activityName) {
|
||
|
$this->activityName = $activityName;
|
||
|
$this->apiParams["activityName"] = $activityName;
|
||
|
}
|
||
|
|
||
|
public function getStartTime() {
|
||
|
return $this->startTime;
|
||
|
}
|
||
|
|
||
|
public function setStartTime($startTime) {
|
||
|
$this->startTime = $startTime;
|
||
|
$this->apiParams["startTime"] = $startTime;
|
||
|
}
|
||
|
|
||
|
public function getEndTime() {
|
||
|
return $this->endTime;
|
||
|
}
|
||
|
|
||
|
public function setEndTime($endTime) {
|
||
|
$this->endTime = $endTime;
|
||
|
$this->apiParams["endTime"] = $endTime;
|
||
|
}
|
||
|
|
||
|
public function getChannelInfo() {
|
||
|
return $this->channelInfo;
|
||
|
}
|
||
|
|
||
|
public function setChannelInfo($channelInfo) {
|
||
|
$this->channelInfo = $channelInfo;
|
||
|
$this->apiParams["channelInfo"] = $channelInfo;
|
||
|
}
|
||
|
|
||
|
public function getPriceType() {
|
||
|
return $this->priceType;
|
||
|
}
|
||
|
|
||
|
public function setPriceType($priceType) {
|
||
|
$this->priceType = $priceType;
|
||
|
$this->apiParams["priceType"] = $priceType;
|
||
|
}
|
||
|
|
||
|
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.custom.priceexclusive.modify';
|
||
|
}
|
||
|
|
||
|
public function getApiParams(){
|
||
|
return $this->apiParams;
|
||
|
}
|
||
|
|
||
|
public function check(){
|
||
|
//非空校验
|
||
|
RequestCheckUtil::checkNotNull($this->activityCode, 'activityCode');
|
||
|
}
|
||
|
|
||
|
public function getBizName(){
|
||
|
return "modifyPriceExclusive";
|
||
|
}
|
||
|
|
||
|
}
|
||
|
|
||
|
class ProductList {
|
||
|
|
||
|
private $apiParams = array();
|
||
|
|
||
|
private $cmType;
|
||
|
|
||
|
private $productCode;
|
||
|
|
||
|
private $childList;
|
||
|
|
||
|
public function getCmType() {
|
||
|
return $this->cmType;
|
||
|
}
|
||
|
|
||
|
public function setCmType($cmType) {
|
||
|
$this->cmType = $cmType;
|
||
|
$this->apiParams["cmType"] = $cmType;
|
||
|
}
|
||
|
|
||
|
public function getProductCode() {
|
||
|
return $this->productCode;
|
||
|
}
|
||
|
|
||
|
public function setProductCode($productCode) {
|
||
|
$this->productCode = $productCode;
|
||
|
$this->apiParams["productCode"] = $productCode;
|
||
|
}
|
||
|
|
||
|
public function getChildList() {
|
||
|
return $this->childList;
|
||
|
}
|
||
|
|
||
|
public function setChildList($childList) {
|
||
|
$this->childList = $childList;
|
||
|
$arr = array();
|
||
|
foreach ($childList as $temp){
|
||
|
array_push($arr,$temp->getApiParams());
|
||
|
}
|
||
|
$this->apiParams["childList"] = $arr;
|
||
|
}
|
||
|
|
||
|
public function getApiParams(){
|
||
|
return $this->apiParams;
|
||
|
}
|
||
|
|
||
|
}
|
||
|
|
||
|
class ChildList {
|
||
|
|
||
|
private $apiParams = array();
|
||
|
|
||
|
private $subProductCode;
|
||
|
|
||
|
private $priceAmount;
|
||
|
|
||
|
private $operationType;
|
||
|
|
||
|
public function getSubProductCode() {
|
||
|
return $this->subProductCode;
|
||
|
}
|
||
|
|
||
|
public function setSubProductCode($subProductCode) {
|
||
|
$this->subProductCode = $subProductCode;
|
||
|
$this->apiParams["subProductCode"] = $subProductCode;
|
||
|
}
|
||
|
|
||
|
public function getPriceAmount() {
|
||
|
return $this->priceAmount;
|
||
|
}
|
||
|
|
||
|
public function setPriceAmount($priceAmount) {
|
||
|
$this->priceAmount = $priceAmount;
|
||
|
$this->apiParams["priceAmount"] = $priceAmount;
|
||
|
}
|
||
|
|
||
|
public function getOperationType() {
|
||
|
return $this->operationType;
|
||
|
}
|
||
|
|
||
|
public function setOperationType($operationType) {
|
||
|
$this->operationType = $operationType;
|
||
|
$this->apiParams["operationType"] = $operationType;
|
||
|
}
|
||
|
|
||
|
public function getApiParams(){
|
||
|
return $this->apiParams;
|
||
|
}
|
||
|
|
||
|
}
|
||
|
|
||
|
?>
|