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.
130 lines
2.5 KiB
130 lines
2.5 KiB
<?php
|
|
|
|
/**
|
|
* 苏宁开放平台接口 - 退货及退款API - 退款信息处理(延期)
|
|
*
|
|
* $pack suning.custom.delayrefund.modify
|
|
* @author jerry(14033184@cnsuning.com)
|
|
* @date 2014-06-03
|
|
*/
|
|
class DelayrefundModifyRequest extends SuningRequest {
|
|
|
|
private $refundHead;
|
|
|
|
private $refundDetail;
|
|
|
|
public function getRefundHead() {
|
|
return $this -> refundHead;
|
|
}
|
|
|
|
public function getRefundDetail() {
|
|
return $this -> refundDetail;
|
|
}
|
|
|
|
public function setRefundHead($refundHead) {
|
|
$this -> refundHead = $refundHead;
|
|
$this->apiParams["refundHead"] = $refundHead->getApiParams();
|
|
}
|
|
|
|
public function setRefundDetail($refundDetail) {
|
|
$this -> refundDetail = $refundDetail;
|
|
$arr = array();
|
|
foreach ($refundDetail as $temp){
|
|
array_push($arr,$temp->getApiParams());
|
|
}
|
|
$this->apiParams["refundDetail"] = $arr;
|
|
}
|
|
|
|
public function getApiMethodName() {
|
|
return 'suning.custom.delayrefund.modify';
|
|
}
|
|
|
|
public function getApiParams() {
|
|
return $this->apiParams;
|
|
}
|
|
|
|
public function check() {
|
|
}
|
|
|
|
public function getBizName(){
|
|
return "delayRefund";
|
|
}
|
|
}
|
|
|
|
class RefundHead {
|
|
|
|
private $apiParams = array();
|
|
/**
|
|
* 苏宁B2C订单号
|
|
*/
|
|
private $orderCode;
|
|
|
|
public function getOrderCode() {
|
|
return $this -> orderCode;
|
|
}
|
|
|
|
public function setOrderCode($orderCode) {
|
|
$this -> orderCode = $orderCode;
|
|
$this->apiParams["orderCode"] = $orderCode;
|
|
}
|
|
|
|
public function getApiParams()
|
|
{
|
|
return $this->apiParams;
|
|
}
|
|
}
|
|
|
|
/**
|
|
* 退货信息
|
|
*/
|
|
class RefundDetail {
|
|
private $apiParams = array();
|
|
|
|
/**
|
|
* 苏宁商品编码
|
|
*/
|
|
private $productCode;
|
|
|
|
/**
|
|
* 订单行项目号
|
|
*/
|
|
private $orderLineNumber;
|
|
|
|
/**
|
|
* 状态。不同意退货,固定值C055
|
|
*/
|
|
private $state;
|
|
|
|
public function setProductCode($productCode) {
|
|
$this -> productCode = $productCode;
|
|
$this->apiParams["productCode"] = $productCode;
|
|
}
|
|
|
|
public function getProductCode() {
|
|
return $this -> productCode;
|
|
}
|
|
|
|
public function setOrderLineNumber($orderLineNumber) {
|
|
$this -> orderLineNumber = $orderLineNumber;
|
|
$this->apiParams["orderLineNumber"] = $orderLineNumber;
|
|
}
|
|
|
|
public function getOrderLineNumber() {
|
|
return $this -> orderLineNumber;
|
|
}
|
|
|
|
public function setState($state) {
|
|
$this -> state = $state;
|
|
$this->apiParams["state"] = $state;
|
|
}
|
|
|
|
public function getState() {
|
|
return $this -> state;
|
|
}
|
|
|
|
public function getApiParams()
|
|
{
|
|
return $this->apiParams;
|
|
}
|
|
}
|
|
?>
|