REAPI/extend/sdk/taobao/top/request/RpRefundsAgreeRequest.php

81 lines
1.9 KiB
PHP
Raw Normal View History

2024-09-29 15:43:18 +08:00
<?php
/**
* TOP API: taobao.rp.refunds.agree request
*
* @author auto create
* @since 1.0, 2024.03.14
*/
class RpRefundsAgreeRequest
{
/**
* 短信验证码如果退款金额达到一定的数量后端会返回调用失败并同时往卖家的手机发送一条短信验证码。接下来用收到的短信验证码再次发起API调用即可完成退款操作。
**/
private $code;
/**
* 是否不校验短信验证码如果为true则不会校验短信验证码直接对传入的退款单进行同意退款操作。
**/
private $ignoreCode;
/**
* 退款信息格式refund_id|amount|version|phase其中refund_id为退款编号amount为退款金额以分为单位version为退款最后更新时间时间戳格式phase为退款阶段可选值为onsale, aftersale天猫退款必值淘宝退款不需要传多个退款以半角逗号分隔。
**/
private $refundInfos;
private $apiParas = array();
public function setCode($code)
{
$this->code = $code;
$this->apiParas["code"] = $code;
}
public function getCode()
{
return $this->code;
}
public function setIgnoreCode($ignoreCode)
{
$this->ignoreCode = $ignoreCode;
$this->apiParas["ignore_code"] = $ignoreCode;
}
public function getIgnoreCode()
{
return $this->ignoreCode;
}
public function setRefundInfos($refundInfos)
{
$this->refundInfos = $refundInfos;
$this->apiParas["refund_infos"] = $refundInfos;
}
public function getRefundInfos()
{
return $this->refundInfos;
}
public function getApiMethodName()
{
return "taobao.rp.refunds.agree";
}
public function getApiParas()
{
return $this->apiParas;
}
public function check()
{
RequestCheckUtil::checkNotNull($this->refundInfos,"refundInfos");
}
public function putOtherTextParam($key, $value) {
$this->apiParas[$key] = $value;
$this->$key = $value;
}
}