67 lines
1.4 KiB
PHP
67 lines
1.4 KiB
PHP
<?php
|
||
/**
|
||
* TOP API: taobao.special.refund.get request
|
||
*
|
||
* @author auto create
|
||
* @since 1.0, 2022.12.20
|
||
*/
|
||
class SpecialRefundGetRequest
|
||
{
|
||
/**
|
||
* 需要返回的字段。目前支持有:refund_id, alipay_no, tid, oid, buyer_nick, seller_nick, total_fee, status, created, refund_fee, good_status, has_good_return, payment, reason, desc, num_iid, title, price, num, good_return_time, company_name, sid, address, shipping_type, refund_remind_timeout, refund_phase, refund_version, operation_contraint, attribute, outer_id, sku
|
||
**/
|
||
private $fields;
|
||
|
||
/**
|
||
* 退款单号
|
||
**/
|
||
private $refundId;
|
||
|
||
private $apiParas = array();
|
||
|
||
public function setFields($fields)
|
||
{
|
||
$this->fields = $fields;
|
||
$this->apiParas["fields"] = $fields;
|
||
}
|
||
|
||
public function getFields()
|
||
{
|
||
return $this->fields;
|
||
}
|
||
|
||
public function setRefundId($refundId)
|
||
{
|
||
$this->refundId = $refundId;
|
||
$this->apiParas["refund_id"] = $refundId;
|
||
}
|
||
|
||
public function getRefundId()
|
||
{
|
||
return $this->refundId;
|
||
}
|
||
|
||
public function getApiMethodName()
|
||
{
|
||
return "taobao.special.refund.get";
|
||
}
|
||
|
||
public function getApiParas()
|
||
{
|
||
return $this->apiParas;
|
||
}
|
||
|
||
public function check()
|
||
{
|
||
|
||
RequestCheckUtil::checkNotNull($this->fields,"fields");
|
||
RequestCheckUtil::checkMaxListSize($this->fields,100,"fields");
|
||
RequestCheckUtil::checkNotNull($this->refundId,"refundId");
|
||
}
|
||
|
||
public function putOtherTextParam($key, $value) {
|
||
$this->apiParas[$key] = $value;
|
||
$this->$key = $value;
|
||
}
|
||
}
|