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/custom/OrderdiscountactAddRequest.php

362 lines
7.6 KiB

<?php
/**
* 苏宁开放平台接口 -
*
* @author suning
* @date 2021-5-20
*/
class OrderdiscountactAddRequest extends SuningRequest{
/**
*
*/
private $activityLimitType;
/**
*
*/
private $activityName;
/**
*
*/
private $activityProductList;
/**
*
*/
private $activityProductType;
/**
*
*/
private $activityTimesLimit;
/**
*
*/
private $areaCode;
/**
*
*/
private $baseQuantifierType;
/**
*
*/
private $booleanCap;
/**
*
*/
private $endTime;
/**
*
*/
private $floorList;
/**
*
*/
private $operType;
/**
*
*/
private $peopleActivityTimesLimit;
/**
*
*/
private $peopleDayTimesLimit;
/**
*
*/
private $rewardType;
/**
*
*/
private $startTime;
public function getActivityLimitType() {
return $this->activityLimitType;
}
public function setActivityLimitType($activityLimitType) {
$this->activityLimitType = $activityLimitType;
$this->apiParams["activityLimitType"] = $activityLimitType;
}
public function getActivityName() {
return $this->activityName;
}
public function setActivityName($activityName) {
$this->activityName = $activityName;
$this->apiParams["activityName"] = $activityName;
}
public function getActivityProductList() {
return $this->activityProductList;
}
public function setActivityProductList($activityProductList) {
$this->activityProductList = $activityProductList;
$arr = array();
foreach ($activityProductList as $temp){
array_push($arr,$temp->getApiParams());
}
$this->apiParams["activityProductList"] = $arr;
}
public function getActivityProductType() {
return $this->activityProductType;
}
public function setActivityProductType($activityProductType) {
$this->activityProductType = $activityProductType;
$this->apiParams["activityProductType"] = $activityProductType;
}
public function getActivityTimesLimit() {
return $this->activityTimesLimit;
}
public function setActivityTimesLimit($activityTimesLimit) {
$this->activityTimesLimit = $activityTimesLimit;
$this->apiParams["activityTimesLimit"] = $activityTimesLimit;
}
public function getAreaCode() {
return $this->areaCode;
}
public function setAreaCode($areaCode) {
$this->areaCode = $areaCode;
$this->apiParams["areaCode"] = $areaCode;
}
public function getBaseQuantifierType() {
return $this->baseQuantifierType;
}
public function setBaseQuantifierType($baseQuantifierType) {
$this->baseQuantifierType = $baseQuantifierType;
$this->apiParams["baseQuantifierType"] = $baseQuantifierType;
}
public function getBooleanCap() {
return $this->booleanCap;
}
public function setBooleanCap($booleanCap) {
$this->booleanCap = $booleanCap;
$this->apiParams["booleanCap"] = $booleanCap;
}
public function getEndTime() {
return $this->endTime;
}
public function setEndTime($endTime) {
$this->endTime = $endTime;
$this->apiParams["endTime"] = $endTime;
}
public function getFloorList() {
return $this->floorList;
}
public function setFloorList($floorList) {
$this->floorList = $floorList;
$arr = array();
foreach ($floorList as $temp){
array_push($arr,$temp->getApiParams());
}
$this->apiParams["floorList"] = $arr;
}
public function getOperType() {
return $this->operType;
}
public function setOperType($operType) {
$this->operType = $operType;
$this->apiParams["operType"] = $operType;
}
public function getPeopleActivityTimesLimit() {
return $this->peopleActivityTimesLimit;
}
public function setPeopleActivityTimesLimit($peopleActivityTimesLimit) {
$this->peopleActivityTimesLimit = $peopleActivityTimesLimit;
$this->apiParams["peopleActivityTimesLimit"] = $peopleActivityTimesLimit;
}
public function getPeopleDayTimesLimit() {
return $this->peopleDayTimesLimit;
}
public function setPeopleDayTimesLimit($peopleDayTimesLimit) {
$this->peopleDayTimesLimit = $peopleDayTimesLimit;
$this->apiParams["peopleDayTimesLimit"] = $peopleDayTimesLimit;
}
public function getRewardType() {
return $this->rewardType;
}
public function setRewardType($rewardType) {
$this->rewardType = $rewardType;
$this->apiParams["rewardType"] = $rewardType;
}
public function getStartTime() {
return $this->startTime;
}
public function setStartTime($startTime) {
$this->startTime = $startTime;
$this->apiParams["startTime"] = $startTime;
}
public function getApiMethodName(){
return 'suning.custom.orderdiscountact.add';
}
public function getApiParams(){
return $this->apiParams;
}
public function check(){
//非空校验
RequestCheckUtil::checkNotNull($this->activityLimitType, 'activityLimitType');
RequestCheckUtil::checkNotNull($this->activityName, 'activityName');
RequestCheckUtil::checkNotNull($this->activityProductType, 'activityProductType');
RequestCheckUtil::checkNotNull($this->baseQuantifierType, 'baseQuantifierType');
RequestCheckUtil::checkNotNull($this->endTime, 'endTime');
RequestCheckUtil::checkNotNull($this->operType, 'operType');
RequestCheckUtil::checkNotNull($this->rewardType, 'rewardType');
RequestCheckUtil::checkNotNull($this->startTime, 'startTime');
}
public function getBizName(){
return "addOrderdiscountact";
}
}
class FloorList {
private $apiParams = array();
private $baseAmount;
private $cutAmount;
private $discountThreshold;
private $floor;
private $redirectLimit;
private $reduceLimit;
public function getBaseAmount() {
return $this->baseAmount;
}
public function setBaseAmount($baseAmount) {
$this->baseAmount = $baseAmount;
$this->apiParams["baseAmount"] = $baseAmount;
}
public function getCutAmount() {
return $this->cutAmount;
}
public function setCutAmount($cutAmount) {
$this->cutAmount = $cutAmount;
$this->apiParams["cutAmount"] = $cutAmount;
}
public function getDiscountThreshold() {
return $this->discountThreshold;
}
public function setDiscountThreshold($discountThreshold) {
$this->discountThreshold = $discountThreshold;
$this->apiParams["discountThreshold"] = $discountThreshold;
}
public function getFloor() {
return $this->floor;
}
public function setFloor($floor) {
$this->floor = $floor;
$this->apiParams["floor"] = $floor;
}
public function getRedirectLimit() {
return $this->redirectLimit;
}
public function setRedirectLimit($redirectLimit) {
$this->redirectLimit = $redirectLimit;
$this->apiParams["redirectLimit"] = $redirectLimit;
}
public function getReduceLimit() {
return $this->reduceLimit;
}
public function setReduceLimit($reduceLimit) {
$this->reduceLimit = $reduceLimit;
$this->apiParams["reduceLimit"] = $reduceLimit;
}
public function getApiParams(){
return $this->apiParams;
}
}
class ActivityProductList {
private $apiParams = array();
private $productCode;
private $productType;
public function getProductCode() {
return $this->productCode;
}
public function setProductCode($productCode) {
$this->productCode = $productCode;
$this->apiParams["productCode"] = $productCode;
}
public function getProductType() {
return $this->productType;
}
public function setProductType($productType) {
$this->productType = $productType;
$this->apiParams["productType"] = $productType;
}
public function getApiParams(){
return $this->apiParams;
}
}
?>