Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
85 changes: 85 additions & 0 deletions src/AlipayApp/Params/Complaint/BusinessParams.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
<?php

namespace Yurun\PaySDK\AlipayApp\Params\Complaint;

/**
* 支付宝投诉明细查询
*/
class BusinessParams
{
use \Yurun\PaySDK\Traits\JSONParams;

/**
* current_page_num ,当前页码,默认1。
*
* @var number
*/
public $current_page_num;

/**
* 分页查询每次查询的数据量,不传则默认为10,取值单位为条
*
* @var number
*/
public $page_size;

/**
* 按投诉时间范围进行查询:时间范围的下界,取值单位为秒
*
* @var string
*/
public $gmt_complaint_start;

/**
* 按投诉时间范围进行查询:时间范围的上界,取值单位为秒
*
* @var string
*/
public $gmt_complaint_end;

/**
* 交易单号
*
* @var string
*/
public $trade_no;

/**
* 投诉状态列表
* 可选值: ["DROP_COMPLAIN","OVERDUE","WAIT_PROCESS"]
*
* @var array
*/
public $status_list;

/**
* 开始处理时间
*
* @var string
*/
public $gmt_process_start;

/**
* 处理时间区间终点
*
* @var string
*/
public $gmt_process_end;

/**
* 投诉单号
* 长度限制: string(128)
*
* @var string
*/
public $task_id;

/**
* 投诉单号列表
* 长度限制: string[](256)
* 示例值: ["10243351927","10243351912","10243351234"]
*
* @var array
*/
public $task_id_list;
}
41 changes: 41 additions & 0 deletions src/AlipayApp/Params/Complaint/Request.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
<?php

namespace Yurun\PaySDK\AlipayApp\Params\Complaint;

use Yurun\PaySDK\AlipayRequestBase;

/**
* 支付宝投诉明细查询
*/
class Request extends AlipayRequestBase
{
/**
* 接口名称.
*
* @var string
*/
public $method = 'alipay.security.risk.complaint.info.batchquery';

/**
* 详见:https://opendocs.alipay.com/open/8ad1ac86_alipay.security.risk.complaint.info.batchquery
*
* @var string
*/
public $app_auth_token;

/**
* 业务请求参数
* 参考https://opendocs.alipay.com/open/8ad1ac86_alipay.security.risk.complaint.info.batchquery
*
* @var \Yurun\PaySDK\AlipayApp\Params\Complaint\BusinessParams
*/
public $businessParams;

public function __construct()
{
$this->businessParams = new BusinessParams();
$this->_method = 'GET';
$this->_isSyncVerify = true;
$this->_syncResponseName = 'alipay_security_risk_complaint_info_batchquery_response';
}
}