> ## Documentation Index
> Fetch the complete documentation index at: https://docs.subotiz.com/llms.txt
> Use this file to discover all available pages before exploring further.

# 业务对象

支付流水（Payment）业务对象字段说明

| 属性名                      | 类型                   | 描述                    |
| ------------------------ | -------------------- | --------------------- |
| id                       | string               | 数据库主键ID（雪花ID，字符串格式）   |
| out\_trans\_id           | string               | 支付流水ID                |
| trade\_id                | string               | 订单ID / 交易ID           |
| merchant\_id             | string               | 商户ID                  |
| payment\_method          | string               | 支付方式                  |
| payment\_channel         | string               | 支付渠道                  |
| status                   | string               | 支付状态                  |
| amount                   | string               | 支付金额，截断到两位小数          |
| currency                 | string               | 币种                    |
| channel\_trade\_id       | string               | 渠道交易ID                |
| order\_trans\_id         | string               | 订单交易ID（全局唯一，代表一次支付尝试） |
| channel\_payment\_method | ChannelPaymentMethod | 支付方式信息                |
| created\_at              | string               | 创建时间                  |
| channel\_ret\_code       | string               | 渠道返回码                 |
| channel\_ret\_msg        | string               | 渠道返回消息                |

## ChannelPaymentMethod

| 属性名  | 类型       | 描述            |
| ---- | -------- | ------------- |
| type | string   | 类型，固定值 "card" |
| card | CardInfo | 卡片信息          |

## CardInfo

| 属性名     | 类型     | 描述            |
| ------- | ------ | ------------- |
| brand   | string | 卡片品牌          |
| country | string | 发卡国家          |
| last4   | string | 卡号后4位         |
| funding | string | 卡片类型（信用卡/借记卡） |
