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

67 lines
1.4 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.get request
*
* @author auto create
* @since 1.0, 2023.10.12
*/
class RefundGetRequest
{
/**
* 需要返回的字段。目前支持有refund_id, alipay_no, tid, oid, buyer_nick, seller_nick, total_fee, status, created, refund_fee, good_status, has_good_return, payment, reason, desc, num_iid, title, price, num, good_return_time, company_name, sid, address, shipping_type, refund_remind_timeout, refund_phase, refund_version, operation_contraint, attribute, outer_id,dispute_type,sku,end_time
**/
private $fields;
/**
* 退款单号
**/
private $refundId;
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 getApiMethodName()
{
return "taobao.refund.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;
}
}