订单内页产品退款列表
方法概览
| 项目 | 内容 |
|---|---|
| 文档类型 | PHP 类方法 |
| 方法标识 | app\common\model\OrderItemModel::orderHostRefundList |
| 所属业务 | 订单管理 |
| 来源模块/系统 | 订单子项模型 |
功能说明
订单内页产品退款列表
调用示例
$param = ['order_id' => 1, 'keywords' => '示例关键字'];
$result = (new \app\common\model\OrderItemModel())->orderHostRefundList($param);参数
| 参数 | 类型 | 必填 | 默认值 | 校验规则 | 说明 |
|---|---|---|---|---|---|
param.order_id | int | 是 | — | require | 订单ID |
param.keywords | string | 否 | — | — | 关键字:商品名称,产品标识,备注 |
返回值
| 返回项 | 类型 | 说明 |
|---|---|---|
list[].id | int | 订单子项ID |
list[].product_id | int | 商品ID |
list[].host_id | int | 产品ID |
list[].product_name | string | 商品名称 |
list[].host_name | string | 产品标识 |
list[].ip_num | int | IP数量 |
list[].dedicate_ip | string | 主IP |
list[].assign_ip | string | 附加IP |
list[].description | string | 描述 |
list[].host_status | string | 产品状态Unpaid未付款Pending开通中Active使用中Suspended暂停Deleted删除Failed开通失败 |
list[].amount | string | 金额 |
list[].refund_credit | string | 退款余额金额 |
list[].refund_gateway | string | 退款渠道金额 |
list[].refund_total | string | 退款总金额 |
list[].refund_status | string | 退款状态(not_refund=未退款,part_refund=部分退款,all_refund=全部退款,addon_refund=插件退款) |
list[].profit | string | 利润 |
list[].agent | int | 代理订单1是0否 |
正常返回
{
"list": [
{
"id": 1,
"product_id": 1,
"host_id": 1,
"product_name": "示例名称",
"host_name": "示例名称",
"ip_num": 1,
"dedicate_ip": "192.0.2.1",
"assign_ip": "example-token",
"description": "192.0.2.1",
"host_status": "Active",
"amount": "string",
"refund_credit": "string",
"refund_gateway": "credit",
"refund_total": "string",
"refund_status": "Active",
"profit": "string",
"agent": 1
}
]
}异常情况
| 异常类型 | 说明 |
|---|---|
Throwable | 调用失败时由具体实现抛出异常,异常信息以运行时结果为准。 |