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.
137 lines
2.7 KiB
137 lines
2.7 KiB
<?php
|
|
/**
|
|
* 苏宁开放平台接口 -
|
|
*
|
|
* @author suning
|
|
* @date 2023-1-3
|
|
*/
|
|
class LsyrebateCreateRequest extends SuningRequest{
|
|
|
|
/**
|
|
*
|
|
*/
|
|
private $activityDesc;
|
|
|
|
/**
|
|
*
|
|
*/
|
|
private $activityTitle;
|
|
|
|
/**
|
|
*
|
|
*/
|
|
private $detailList;
|
|
|
|
/**
|
|
*
|
|
*/
|
|
private $supplierApplyCode;
|
|
|
|
/**
|
|
*
|
|
*/
|
|
private $supplierCode;
|
|
|
|
public function getActivityDesc() {
|
|
return $this->activityDesc;
|
|
}
|
|
|
|
public function setActivityDesc($activityDesc) {
|
|
$this->activityDesc = $activityDesc;
|
|
$this->apiParams["activityDesc"] = $activityDesc;
|
|
}
|
|
|
|
public function getActivityTitle() {
|
|
return $this->activityTitle;
|
|
}
|
|
|
|
public function setActivityTitle($activityTitle) {
|
|
$this->activityTitle = $activityTitle;
|
|
$this->apiParams["activityTitle"] = $activityTitle;
|
|
}
|
|
|
|
public function getDetailList() {
|
|
return $this->detailList;
|
|
}
|
|
|
|
public function setDetailList($detailList) {
|
|
$this->detailList = $detailList;
|
|
$arr = array();
|
|
foreach ($detailList as $temp){
|
|
array_push($arr,$temp->getApiParams());
|
|
}
|
|
$this->apiParams["detailList"] = $arr;
|
|
}
|
|
|
|
public function getSupplierApplyCode() {
|
|
return $this->supplierApplyCode;
|
|
}
|
|
|
|
public function setSupplierApplyCode($supplierApplyCode) {
|
|
$this->supplierApplyCode = $supplierApplyCode;
|
|
$this->apiParams["supplierApplyCode"] = $supplierApplyCode;
|
|
}
|
|
|
|
public function getSupplierCode() {
|
|
return $this->supplierCode;
|
|
}
|
|
|
|
public function setSupplierCode($supplierCode) {
|
|
$this->supplierCode = $supplierCode;
|
|
$this->apiParams["supplierCode"] = $supplierCode;
|
|
}
|
|
|
|
public function getApiMethodName(){
|
|
return 'suning.custom.lsyrebate.create';
|
|
}
|
|
|
|
public function getApiParams(){
|
|
return $this->apiParams;
|
|
}
|
|
|
|
public function check(){
|
|
//非空校验
|
|
RequestCheckUtil::checkNotNull($this->activityTitle, 'activityTitle');
|
|
RequestCheckUtil::checkNotNull($this->supplierApplyCode, 'supplierApplyCode');
|
|
RequestCheckUtil::checkNotNull($this->supplierCode, 'supplierCode');
|
|
}
|
|
|
|
public function getBizName(){
|
|
return "createLsyrebate";
|
|
}
|
|
|
|
}
|
|
|
|
class DetailList {
|
|
|
|
private $apiParams = array();
|
|
|
|
private $rebateAmount;
|
|
|
|
private $shopCode;
|
|
|
|
public function getRebateAmount() {
|
|
return $this->rebateAmount;
|
|
}
|
|
|
|
public function setRebateAmount($rebateAmount) {
|
|
$this->rebateAmount = $rebateAmount;
|
|
$this->apiParams["rebateAmount"] = $rebateAmount;
|
|
}
|
|
|
|
public function getShopCode() {
|
|
return $this->shopCode;
|
|
}
|
|
|
|
public function setShopCode($shopCode) {
|
|
$this->shopCode = $shopCode;
|
|
$this->apiParams["shopCode"] = $shopCode;
|
|
}
|
|
|
|
public function getApiParams(){
|
|
return $this->apiParams;
|
|
}
|
|
|
|
}
|
|
|
|
?>
|