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.
151 lines
2.7 KiB
151 lines
2.7 KiB
<?php
|
|
/**
|
|
* 苏宁开放平台接口 -
|
|
*
|
|
* @author suning
|
|
* @date 2022-11-10
|
|
*/
|
|
class LeaguerstatusAddRequest extends SuningRequest{
|
|
|
|
/**
|
|
*
|
|
*/
|
|
private $cardList;
|
|
|
|
/**
|
|
*
|
|
*/
|
|
private $failReason;
|
|
|
|
/**
|
|
*
|
|
*/
|
|
private $iqStatus;
|
|
|
|
/**
|
|
*
|
|
*/
|
|
private $orderId;
|
|
|
|
/**
|
|
*
|
|
*/
|
|
private $orderItemId;
|
|
|
|
/**
|
|
*
|
|
*/
|
|
private $supplierCode;
|
|
|
|
public function getCardList() {
|
|
return $this->cardList;
|
|
}
|
|
|
|
public function setCardList($cardList) {
|
|
$this->cardList = $cardList;
|
|
$arr = array();
|
|
foreach ($cardList as $temp){
|
|
array_push($arr,$temp->getApiParams());
|
|
}
|
|
$this->apiParams["cardList"] = $arr;
|
|
}
|
|
|
|
public function getFailReason() {
|
|
return $this->failReason;
|
|
}
|
|
|
|
public function setFailReason($failReason) {
|
|
$this->failReason = $failReason;
|
|
$this->apiParams["failReason"] = $failReason;
|
|
}
|
|
|
|
public function getIqStatus() {
|
|
return $this->iqStatus;
|
|
}
|
|
|
|
public function setIqStatus($iqStatus) {
|
|
$this->iqStatus = $iqStatus;
|
|
$this->apiParams["iqStatus"] = $iqStatus;
|
|
}
|
|
|
|
public function getOrderId() {
|
|
return $this->orderId;
|
|
}
|
|
|
|
public function setOrderId($orderId) {
|
|
$this->orderId = $orderId;
|
|
$this->apiParams["orderId"] = $orderId;
|
|
}
|
|
|
|
public function getOrderItemId() {
|
|
return $this->orderItemId;
|
|
}
|
|
|
|
public function setOrderItemId($orderItemId) {
|
|
$this->orderItemId = $orderItemId;
|
|
$this->apiParams["orderItemId"] = $orderItemId;
|
|
}
|
|
|
|
public function getSupplierCode() {
|
|
return $this->supplierCode;
|
|
}
|
|
|
|
public function setSupplierCode($supplierCode) {
|
|
$this->supplierCode = $supplierCode;
|
|
$this->apiParams["supplierCode"] = $supplierCode;
|
|
}
|
|
|
|
public function getApiMethodName(){
|
|
return 'suning.selfmarket.leaguerstatus.add';
|
|
}
|
|
|
|
public function getApiParams(){
|
|
return $this->apiParams;
|
|
}
|
|
|
|
public function check(){
|
|
//非空校验
|
|
RequestCheckUtil::checkNotNull($this->iqStatus, 'iqStatus');
|
|
RequestCheckUtil::checkNotNull($this->orderId, 'orderId');
|
|
RequestCheckUtil::checkNotNull($this->orderItemId, 'orderItemId');
|
|
}
|
|
|
|
public function getBizName(){
|
|
return "addLeaguerstatus";
|
|
}
|
|
|
|
}
|
|
|
|
class CardList {
|
|
|
|
private $apiParams = array();
|
|
|
|
private $cardCode;
|
|
|
|
private $cardSec;
|
|
|
|
public function getCardCode() {
|
|
return $this->cardCode;
|
|
}
|
|
|
|
public function setCardCode($cardCode) {
|
|
$this->cardCode = $cardCode;
|
|
$this->apiParams["cardCode"] = $cardCode;
|
|
}
|
|
|
|
public function getCardSec() {
|
|
return $this->cardSec;
|
|
}
|
|
|
|
public function setCardSec($cardSec) {
|
|
$this->cardSec = $cardSec;
|
|
$this->apiParams["cardSec"] = $cardSec;
|
|
}
|
|
|
|
public function getApiParams(){
|
|
return $this->apiParams;
|
|
}
|
|
|
|
}
|
|
|
|
?>
|