82 lines
1.3 KiB
PHP
82 lines
1.3 KiB
PHP
<?php
|
|
/**
|
|
* TOP API: taobao.trade.fullinfo.get request
|
|
*
|
|
* @author auto create
|
|
* @since 1.0, 2024.03.11
|
|
*/
|
|
class TradeFullinfoGetRequest
|
|
{
|
|
/**
|
|
* 需要返回的字段列表,多个字段用半角逗号分隔,可选值为返回示例中能看到的所有字段。
|
|
**/
|
|
private $fields;
|
|
|
|
/**
|
|
* include_oaid
|
|
**/
|
|
private $includeOaid;
|
|
|
|
/**
|
|
* 交易编号
|
|
**/
|
|
private $tid;
|
|
|
|
private $apiParas = array();
|
|
|
|
public function setFields($fields)
|
|
{
|
|
$this->fields = $fields;
|
|
$this->apiParas["fields"] = $fields;
|
|
}
|
|
|
|
public function getFields()
|
|
{
|
|
return $this->fields;
|
|
}
|
|
|
|
public function setIncludeOaid($includeOaid)
|
|
{
|
|
$this->includeOaid = $includeOaid;
|
|
$this->apiParas["include_oaid"] = $includeOaid;
|
|
}
|
|
|
|
public function getIncludeOaid()
|
|
{
|
|
return $this->includeOaid;
|
|
}
|
|
|
|
public function setTid($tid)
|
|
{
|
|
$this->tid = $tid;
|
|
$this->apiParas["tid"] = $tid;
|
|
}
|
|
|
|
public function getTid()
|
|
{
|
|
return $this->tid;
|
|
}
|
|
|
|
public function getApiMethodName()
|
|
{
|
|
return "taobao.trade.fullinfo.get";
|
|
}
|
|
|
|
public function getApiParas()
|
|
{
|
|
return $this->apiParas;
|
|
}
|
|
|
|
public function check()
|
|
{
|
|
|
|
RequestCheckUtil::checkNotNull($this->fields,"fields");
|
|
RequestCheckUtil::checkNotNull($this->tid,"tid");
|
|
}
|
|
|
|
public function putOtherTextParam($key, $value) {
|
|
$this->apiParas[$key] = $value;
|
|
$this->$key = $value;
|
|
}
|
|
}
|