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

115 lines
2.0 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
/**
* TOP API: taobao.refund.messages.get request
*
* @author auto create
* @since 1.0, 2022.08.26
*/
class RefundMessagesGetRequest
{
/**
* 需返回的字段列表。可选值RefundMessage结构体中的所有字段以半角逗号(,)分隔。
**/
private $fields;
/**
* 页码
**/
private $pageNo;
/**
* 每页条数
**/
private $pageSize;
/**
* 退款单号
**/
private $refundId;
/**
* 退款阶段可选值onsale售中aftersale售后天猫退款为必传。
**/
private $refundPhase;
private $apiParas = array();
public function setFields($fields)
{
$this->fields = $fields;
$this->apiParas["fields"] = $fields;
}
public function getFields()
{
return $this->fields;
}
public function setPageNo($pageNo)
{
$this->pageNo = $pageNo;
$this->apiParas["page_no"] = $pageNo;
}
public function getPageNo()
{
return $this->pageNo;
}
public function setPageSize($pageSize)
{
$this->pageSize = $pageSize;
$this->apiParas["page_size"] = $pageSize;
}
public function getPageSize()
{
return $this->pageSize;
}
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.messages.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;
}
}