blob: ed1adb4b97b79d99d6b411f3dfcbf5a93f1b45bc [file] [log] [blame]
Tang Chengcc4299d2020-03-12 15:55:12 +08001components:
2 headers:
3 TenantId:
sijun.li2da2d5f2020-03-17 17:33:46 +08004 name: X-TENANT-ID
Tang Chengcc4299d2020-03-12 15:55:12 +08005 in: header
6 description: 租户ID
7 required: true
8 schema:
9 type: string
10
Tang Chengc1b76582020-03-20 15:44:40 +080011 responses:
12 CommonError:
13 description: 请求失败
14 content:
15 application/json:
16 schema:
17 $ref: '#/components/schemas/ErrorResponse'
18
Tang Chengcc4299d2020-03-12 15:55:12 +080019
20 schemas:
Tang Cheng3b2c8202020-03-17 08:45:40 +080021 ErrorResponse:
22 type: object
23 title: 请求错误
24 required:
25 - message
26 properties:
Tang Cheng61a10292020-03-17 11:15:30 +080027 timestamp:
28 type: string
29 format: date-time
Tang Cheng3b2c8202020-03-17 08:45:40 +080030 code:
31 type: string
32 title: 错误码
33 message:
34 type: string
35 title: 错误信息
Tang Chengcc4299d2020-03-12 15:55:12 +080036 TransDate:
37 type: string
38 title: 交易日期
39 minLength: 8
40 maxLength: 8
41 pattern: '[0-9]*'
42 TransTime:
43 type: string
44 title: 交易时间
45 minLength: 6
46 maxLength: 6
47 pattern: '[0-9]*'
48 ShopAccNo:
49 type: string
50 title: 商户号
51 pattern: '[0-9]*'
52 Refno:
53 type: string
54 title: 交易号
55 minLength: 16
56 pattern: '[0-9]*'
57 QrcodeFormat:
58 type: string
59 title: Qrcode格式
60 enum:
61 - plain
62 - base64
63 - hex
Tang Cheng3b2c8202020-03-17 08:45:40 +080064 TransResult:
65 type: string
66 enum:
67 - success
68 - failed
69 - already_success
70 - require_query
Tang Chengc1b76582020-03-20 15:44:40 +080071 UserStatus:
72 type: string
73 description: |
74 * normal 正常
75 * frozen 冻结
76 * canceled 注销
77 * closed 关闭
78 * notexists 不存在
79 enum:
80 - normal
81 - fronzen
82 - canceled
83 - closed
84 - notexists
85 SubAccountMetadata:
86 type: object
87 required:
88 - name
89 - status
90 properties:
91 name:
92 type: string
93 title: 子账户名
94 status:
95 title: 子账户状态
96 $ref: '#/components/schemas/UserStatus'
97 balance:
98 type: integer
99 title: 子账户余额
100 expire:
101 type: string
102 title: 余额有效期
103 format: date-time