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/store/OrderdiscountModifyRequest.php

163 lines
3.0 KiB

<?php
/**
* 苏宁开放平台接口 -
*
* @author suning
* @date 2019-3-21
*/
class OrderdiscountModifyRequest extends SuningRequest{
/**
*
*/
private $activityCode;
/**
*
*/
private $activityName;
/**
*
*/
private $appStoreCode;
/**
*
*/
private $endTime;
/**
*
*/
private $productList;
/**
*
*/
private $startTime;
/**
*
*/
private $storeCode;
public function getActivityCode() {
return $this->activityCode;
}
public function setActivityCode($activityCode) {
$this->activityCode = $activityCode;
$this->apiParams["activityCode"] = $activityCode;
}
public function getActivityName() {
return $this->activityName;
}
public function setActivityName($activityName) {
$this->activityName = $activityName;
$this->apiParams["activityName"] = $activityName;
}
public function getAppStoreCode() {
return $this->appStoreCode;
}
public function setAppStoreCode($appStoreCode) {
$this->appStoreCode = $appStoreCode;
$this->apiParams["appStoreCode"] = $appStoreCode;
}
public function getEndTime() {
return $this->endTime;
}
public function setEndTime($endTime) {
$this->endTime = $endTime;
$this->apiParams["endTime"] = $endTime;
}
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 getStartTime() {
return $this->startTime;
}
public function setStartTime($startTime) {
$this->startTime = $startTime;
$this->apiParams["startTime"] = $startTime;
}
public function getStoreCode() {
return $this->storeCode;
}
public function setStoreCode($storeCode) {
$this->storeCode = $storeCode;
$this->apiParams["storeCode"] = $storeCode;
}
public function getApiMethodName(){
return 'suning.store.orderdiscount.modify';
}
public function getApiParams(){
return $this->apiParams;
}
public function check(){
//非空校验
RequestCheckUtil::checkNotNull($this->activityCode, 'activityCode');
}
public function getBizName(){
return "modifyOrderdiscount";
}
}
class ProductList {
private $apiParams = array();
private $operationType;
private $productCode;
public function getOperationType() {
return $this->operationType;
}
public function setOperationType($operationType) {
$this->operationType = $operationType;
$this->apiParams["operationType"] = $operationType;
}
public function getProductCode() {
return $this->productCode;
}
public function setProductCode($productCode) {
$this->productCode = $productCode;
$this->apiParams["productCode"] = $productCode;
}
public function getApiParams(){
return $this->apiParams;
}
}
?>