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

116 lines
2.1 KiB
PHP
Raw Permalink 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: tmall.exchange.messages.get request
*
* @author auto create
* @since 1.0, 2024.03.14
*/
class TmallExchangeMessagesGetRequest
{
/**
* 换货单号ID
**/
private $disputeId;
/**
* 返回的字段。具体包括id,refund_id,owner_id,owner_nick,owner_role,content,pic_urls,created,message_type
**/
private $fields;
/**
* 留言创建角色。具体包括:卖家主账户(1)、卖家子账户(2)、小二(3)、买家(4)、系统(5)、系统超时(6)
**/
private $operatorRoles;
/**
* 页码
**/
private $pageNo;
/**
* 每页条数
**/
private $pageSize;
private $apiParas = array();
public function setDisputeId($disputeId)
{
$this->disputeId = $disputeId;
$this->apiParas["dispute_id"] = $disputeId;
}
public function getDisputeId()
{
return $this->disputeId;
}
public function setFields($fields)
{
$this->fields = $fields;
$this->apiParas["fields"] = $fields;
}
public function getFields()
{
return $this->fields;
}
public function setOperatorRoles($operatorRoles)
{
$this->operatorRoles = $operatorRoles;
$this->apiParas["operator_roles"] = $operatorRoles;
}
public function getOperatorRoles()
{
return $this->operatorRoles;
}
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 getApiMethodName()
{
return "tmall.exchange.messages.get";
}
public function getApiParas()
{
return $this->apiParas;
}
public function check()
{
RequestCheckUtil::checkNotNull($this->disputeId,"disputeId");
RequestCheckUtil::checkNotNull($this->fields,"fields");
RequestCheckUtil::checkMaxListSize($this->fields,20,"fields");
RequestCheckUtil::checkMaxListSize($this->operatorRoles,20,"operatorRoles");
}
public function putOtherTextParam($key, $value) {
$this->apiParas[$key] = $value;
$this->$key = $value;
}
}