66 lines
1.1 KiB
PHP
66 lines
1.1 KiB
PHP
<?php
|
||
/**
|
||
* TOP API: taobao.refund.detail.get request
|
||
*
|
||
* @author auto create
|
||
* @since 1.0, 2022.08.24
|
||
*/
|
||
class RefundDetailGetRequest
|
||
{
|
||
/**
|
||
* 需要返回的字段。目前支持有:allowedOperations,refund_version
|
||
**/
|
||
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.refund.detail.get";
|
||
}
|
||
|
||
public function getApiParas()
|
||
{
|
||
return $this->apiParas;
|
||
}
|
||
|
||
public function check()
|
||
{
|
||
|
||
RequestCheckUtil::checkNotNull($this->fields,"fields");
|
||
RequestCheckUtil::checkNotNull($this->refundId,"refundId");
|
||
}
|
||
|
||
public function putOtherTextParam($key, $value) {
|
||
$this->apiParas[$key] = $value;
|
||
$this->$key = $value;
|
||
}
|
||
}
|