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.
119 lines
2.2 KiB
119 lines
2.2 KiB
8 months ago
|
<?php
|
||
|
/**
|
||
|
* 苏宁开放平台接口 -
|
||
|
*
|
||
|
* @author suning
|
||
|
* @date 2021-7-7
|
||
|
*/
|
||
|
class NewnessConfirmRequest extends SuningRequest{
|
||
|
|
||
|
/**
|
||
|
*
|
||
|
*/
|
||
|
private $provideId;
|
||
|
|
||
|
/**
|
||
|
*
|
||
|
*/
|
||
|
private $asomOrderId;
|
||
|
|
||
|
/**
|
||
|
*
|
||
|
*/
|
||
|
private $orderList;
|
||
|
|
||
|
public function getProvideId() {
|
||
|
return $this->provideId;
|
||
|
}
|
||
|
|
||
|
public function setProvideId($provideId) {
|
||
|
$this->provideId = $provideId;
|
||
|
$this->apiParams["provideId"] = $provideId;
|
||
|
}
|
||
|
|
||
|
public function getAsomOrderId() {
|
||
|
return $this->asomOrderId;
|
||
|
}
|
||
|
|
||
|
public function setAsomOrderId($asomOrderId) {
|
||
|
$this->asomOrderId = $asomOrderId;
|
||
|
$this->apiParams["asomOrderId"] = $asomOrderId;
|
||
|
}
|
||
|
|
||
|
public function getOrderList() {
|
||
|
return $this->orderList;
|
||
|
}
|
||
|
|
||
|
public function setOrderList($orderList) {
|
||
|
$this->orderList = $orderList;
|
||
|
$arr = array();
|
||
|
foreach ($orderList as $temp){
|
||
|
array_push($arr,$temp->getApiParams());
|
||
|
}
|
||
|
$this->apiParams["orderList"] = $arr;
|
||
|
}
|
||
|
|
||
|
public function getApiMethodName(){
|
||
|
return 'suning.offline.newness.confirm';
|
||
|
}
|
||
|
|
||
|
public function getApiParams(){
|
||
|
return $this->apiParams;
|
||
|
}
|
||
|
|
||
|
public function check(){
|
||
|
//非空校验
|
||
|
RequestCheckUtil::checkNotNull($this->provideId, 'provideId');
|
||
|
RequestCheckUtil::checkNotNull($this->asomOrderId, 'asomOrderId');
|
||
|
}
|
||
|
|
||
|
public function getBizName(){
|
||
|
return "confirmNewness";
|
||
|
}
|
||
|
|
||
|
}
|
||
|
|
||
|
class OrderList {
|
||
|
|
||
|
private $apiParams = array();
|
||
|
|
||
|
private $newOrderId;
|
||
|
|
||
|
private $newOrderItemId;
|
||
|
|
||
|
private $cityId;
|
||
|
|
||
|
public function getNewOrderId() {
|
||
|
return $this->newOrderId;
|
||
|
}
|
||
|
|
||
|
public function setNewOrderId($newOrderId) {
|
||
|
$this->newOrderId = $newOrderId;
|
||
|
$this->apiParams["newOrderId"] = $newOrderId;
|
||
|
}
|
||
|
|
||
|
public function getNewOrderItemId() {
|
||
|
return $this->newOrderItemId;
|
||
|
}
|
||
|
|
||
|
public function setNewOrderItemId($newOrderItemId) {
|
||
|
$this->newOrderItemId = $newOrderItemId;
|
||
|
$this->apiParams["newOrderItemId"] = $newOrderItemId;
|
||
|
}
|
||
|
|
||
|
public function getCityId() {
|
||
|
return $this->cityId;
|
||
|
}
|
||
|
|
||
|
public function setCityId($cityId) {
|
||
|
$this->cityId = $cityId;
|
||
|
$this->apiParams["cityId"] = $cityId;
|
||
|
}
|
||
|
|
||
|
public function getApiParams(){
|
||
|
return $this->apiParams;
|
||
|
}
|
||
|
|
||
|
}
|
||
|
|
||
|
?>
|