67 lines
1.4 KiB
PHP
67 lines
1.4 KiB
PHP
<?php
|
|
/**
|
|
* TOP API: tmall.exchange.get request
|
|
*
|
|
* @author auto create
|
|
* @since 1.0, 2022.09.19
|
|
*/
|
|
class TmallExchangeGetRequest
|
|
{
|
|
/**
|
|
* 换货单号ID
|
|
**/
|
|
private $disputeId;
|
|
|
|
/**
|
|
* 返回字段。目前支持dispute_id, bizorder_id, num, buyer_nick, status, created, modified, reason, title, buyer_logistic_no, seller_logistic_no, bought_sku, exchange_sku, buyer_address, address, buyer_phone, buyer_logistic_name, seller_logistic_name, alipay_no, buyer_name, seller_nick
|
|
**/
|
|
private $fields;
|
|
|
|
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 getApiMethodName()
|
|
{
|
|
return "tmall.exchange.get";
|
|
}
|
|
|
|
public function getApiParas()
|
|
{
|
|
return $this->apiParas;
|
|
}
|
|
|
|
public function check()
|
|
{
|
|
|
|
RequestCheckUtil::checkNotNull($this->disputeId,"disputeId");
|
|
RequestCheckUtil::checkNotNull($this->fields,"fields");
|
|
RequestCheckUtil::checkMaxListSize($this->fields,100,"fields");
|
|
}
|
|
|
|
public function putOtherTextParam($key, $value) {
|
|
$this->apiParas[$key] = $value;
|
|
$this->$key = $value;
|
|
}
|
|
}
|