REAPI/extend/sdk/taobao/top/request/RefundRefusereasonGetRequest.php
2024-09-29 15:43:18 +08:00

83 lines
1.4 KiB
PHP

<?php
/**
* TOP API: taobao.refund.refusereason.get request
*
* @author auto create
* @since 1.0, 2022.09.29
*/
class RefundRefusereasonGetRequest
{
/**
* 返回参数
**/
private $fields;
/**
* 退款编号
**/
private $refundId;
/**
* 售中或售后
**/
private $refundPhase;
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 setRefundPhase($refundPhase)
{
$this->refundPhase = $refundPhase;
$this->apiParas["refund_phase"] = $refundPhase;
}
public function getRefundPhase()
{
return $this->refundPhase;
}
public function getApiMethodName()
{
return "taobao.refund.refusereason.get";
}
public function getApiParas()
{
return $this->apiParas;
}
public function check()
{
RequestCheckUtil::checkNotNull($this->fields,"fields");
RequestCheckUtil::checkNotNull($this->refundId,"refundId");
RequestCheckUtil::checkNotNull($this->refundPhase,"refundPhase");
}
public function putOtherTextParam($key, $value) {
$this->apiParas[$key] = $value;
$this->$key = $value;
}
}