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.
73 lines
1.6 KiB
73 lines
1.6 KiB
<?php
|
|
/**
|
|
* 苏宁开放平台接口 - 商品订单取消
|
|
*
|
|
* @author suning
|
|
* @date 2015-11-18
|
|
*/
|
|
class OrderDeleteRequest extends SuningRequest{
|
|
|
|
/**
|
|
* 订单来源。201 淘宝,214 京东,203苏宁,204 亚马逊中国,205 当当, 206 ebay,207 VIP,208 一号店,209 国美 210 拍拍,211 聚美,212 乐蜂 202 1688,301 其他
|
|
*/
|
|
private $orderSource;
|
|
|
|
/**
|
|
* 取消类型。1. 取消发货2. 取消退货
|
|
*/
|
|
private $cancelType;
|
|
|
|
/**
|
|
* 外部订单编号。
|
|
*/
|
|
private $outOrderId;
|
|
|
|
public function getOrderSource() {
|
|
return $this->orderSource;
|
|
}
|
|
|
|
public function setOrderSource($orderSource) {
|
|
$this->orderSource = $orderSource;
|
|
$this->apiParams["orderSource"] = $orderSource;
|
|
}
|
|
|
|
public function getCancelType() {
|
|
return $this->cancelType;
|
|
}
|
|
|
|
public function setCancelType($cancelType) {
|
|
$this->cancelType = $cancelType;
|
|
$this->apiParams["cancelType"] = $cancelType;
|
|
}
|
|
|
|
public function getOutOrderId() {
|
|
return $this->outOrderId;
|
|
}
|
|
|
|
public function setOutOrderId($outOrderId) {
|
|
$this->outOrderId = $outOrderId;
|
|
$this->apiParams["outOrderId"] = $outOrderId;
|
|
}
|
|
|
|
public function getApiMethodName(){
|
|
return 'suning.fourps.order.delete';
|
|
}
|
|
|
|
public function getApiParams(){
|
|
return $this->apiParams;
|
|
}
|
|
|
|
public function check(){
|
|
//非空校验
|
|
RequestCheckUtil::checkNotNull($this->orderSource, 'orderSource');
|
|
RequestCheckUtil::checkNotNull($this->cancelType, 'cancelType');
|
|
RequestCheckUtil::checkNotNull($this->outOrderId, 'outOrderId');
|
|
}
|
|
|
|
public function getBizName(){
|
|
return "deleteOrder";
|
|
}
|
|
|
|
}
|
|
|
|
?>
|