cbs-4px-merchant-cli 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.js +486 -9
- package/dist/cli.js.map +1 -1
- package/dist/commands/address.d.ts +2 -0
- package/dist/commands/address.js +59 -0
- package/dist/commands/address.js.map +1 -0
- package/dist/commands/claim.js +8 -2
- package/dist/commands/claim.js.map +1 -1
- package/dist/commands/config.js +333 -0
- package/dist/commands/config.js.map +1 -1
- package/dist/commands/country.d.ts +5 -0
- package/dist/commands/country.js +50 -0
- package/dist/commands/country.js.map +1 -0
- package/dist/commands/customs.d.ts +23 -0
- package/dist/commands/customs.js +176 -0
- package/dist/commands/customs.js.map +1 -0
- package/dist/commands/finance.d.ts +62 -0
- package/dist/commands/finance.js +509 -0
- package/dist/commands/finance.js.map +1 -0
- package/dist/commands/label.js +7 -1
- package/dist/commands/label.js.map +1 -1
- package/dist/commands/notice.d.ts +18 -0
- package/dist/commands/notice.js +210 -0
- package/dist/commands/notice.js.map +1 -0
- package/dist/commands/order.d.ts +12 -0
- package/dist/commands/order.js +76 -1
- package/dist/commands/order.js.map +1 -1
- package/dist/commands/pickup.d.ts +21 -0
- package/dist/commands/pickup.js +249 -0
- package/dist/commands/pickup.js.map +1 -0
- package/dist/commands/problem.d.ts +41 -0
- package/dist/commands/problem.js +371 -0
- package/dist/commands/problem.js.map +1 -0
- package/dist/commands/product.d.ts +28 -0
- package/dist/commands/product.js +249 -1
- package/dist/commands/product.js.map +1 -1
- package/dist/commands/service.d.ts +41 -0
- package/dist/commands/service.js +395 -0
- package/dist/commands/service.js.map +1 -0
- package/dist/commands/track.d.ts +13 -0
- package/dist/commands/track.js +92 -1
- package/dist/commands/track.js.map +1 -1
- package/dist/services/api-client.d.ts +49 -2
- package/dist/services/api-client.js +464 -6
- package/dist/services/api-client.js.map +1 -1
- package/dist/types/index.d.ts +609 -0
- package/package.json +2 -2
- package/skill/SKILL.md +67 -8
- package/skill/reference/customs.md +220 -0
- package/skill/reference/finance.md +337 -0
- package/skill/reference/index.md +56 -6
- package/skill/reference/notice.md +238 -0
- package/skill/reference/order.md +172 -0
- package/skill/reference/pickup.md +222 -0
- package/skill/reference/problem.md +318 -0
- package/skill/reference/product.md +203 -0
- package/skill/reference/service.md +406 -0
- package/skill/reference/track.md +105 -0
- package/skill/reference/claim.md +0 -66
package/skill/SKILL.md
CHANGED
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
name: cbs-4px-merchant-cli
|
|
3
3
|
description: >-
|
|
4
4
|
BPortal Merchant CLI (`fmc`) — 跨境物流商家命令行工具。
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
支持物流轨迹查询、面单打印、订单管理、产品推荐与报价、理赔查询、
|
|
6
|
+
异常件管理、服务中心、财务管理、揽收管理、系统公告。
|
|
7
7
|
完整命令参考: `reference/index.md` + `reference/<group>.md`。
|
|
8
8
|
---
|
|
9
9
|
|
|
10
10
|
# BPortal Merchant CLI (`fmc`)
|
|
11
11
|
|
|
12
|
-
>
|
|
12
|
+
> 跨境物流商家命令行工具,提供物流轨迹查询、面单打印、订单管理、产品推荐与报价、理赔查询、异常件管理、服务中心、财务管理、揽收管理、系统公告等功能。
|
|
13
13
|
|
|
14
14
|
## 严格禁止 (NEVER DO)
|
|
15
15
|
|
|
@@ -34,8 +34,15 @@ description: >-
|
|
|
34
34
|
| 查询物流轨迹 | [`reference/track.md`](reference/track.md) | 确认参数格式 |
|
|
35
35
|
| 获取面单 | [`reference/label.md`](reference/label.md) | 确认参数格式 |
|
|
36
36
|
| 查看订单详情 | [`reference/order.md`](reference/order.md) | 确认参数和输出字段 |
|
|
37
|
+
| 地址簿 | [`reference/order.md`](reference/order.md) | 确认参数格式 |
|
|
38
|
+
| 国家查询 | [`reference/order.md`](reference/order.md) | 确认参数格式 |
|
|
37
39
|
| 产品推荐 | [`reference/product.md`](reference/product.md) | 参数多(国家/重量/电池/邮编等),必须确认 |
|
|
38
40
|
| 理赔查询 | [`reference/claim.md`](reference/claim.md) | 参数多(单号/时间/状态/分页),必须确认 |
|
|
41
|
+
| 异常件管理 | [`reference/problem.md`](reference/problem.md) | 确认子命令和参数格式 |
|
|
42
|
+
| 服务中心 | [`reference/service.md`](reference/service.md) | 确认子命令和参数格式 |
|
|
43
|
+
| 财务管理 | [`reference/finance.md`](reference/finance.md) | 确认子命令和参数格式 |
|
|
44
|
+
| 揽收管理 | [`reference/pickup.md`](reference/pickup.md) | 确认参数格式 |
|
|
45
|
+
| 系统公告 | [`reference/notice.md`](reference/notice.md) | 确认参数格式 |
|
|
39
46
|
| 认证相关 / 首次使用 | [`reference/auth.md`](reference/auth.md) | 了解认证方式和 API Key 获取地址 |
|
|
40
47
|
| 配置管理 | [`reference/config.md`](reference/config.md) | 了解可配置项 |
|
|
41
48
|
| 升级 CLI / skill | [`reference/update.md`](reference/update.md) | 了解升级流程和选项 |
|
|
@@ -50,11 +57,16 @@ description: >-
|
|
|
50
57
|
|------|------|----------|
|
|
51
58
|
| `auth` | 认证管理:配置 API Key、查看认证状态 | [`reference/auth.md`](reference/auth.md) |
|
|
52
59
|
| `config` | 配置管理:查看/设置配置项、导出 tool schema | [`reference/config.md`](reference/config.md) |
|
|
53
|
-
| `track` |
|
|
60
|
+
| `track` | 物流轨迹:按单号查询物流全程轨迹、轨迹订阅管理 | [`reference/track.md`](reference/track.md) |
|
|
54
61
|
| `label` | 面单打印:获取面单 PDF 链接 | [`reference/label.md`](reference/label.md) |
|
|
55
|
-
| `order` |
|
|
56
|
-
| `product` |
|
|
62
|
+
| `order` | 订单管理:查看订单详情、订单列表、地址簿、目的国搜索 | [`reference/order.md`](reference/order.md) |
|
|
63
|
+
| `product` | 产品推荐:推荐产品、产品列表、产品详情、时效查询、搜索产品 | [`reference/product.md`](reference/product.md) |
|
|
57
64
|
| `claim` | 理赔查询:按单号/时间/状态查询理赔列表 | [`reference/claim.md`](reference/claim.md) |
|
|
65
|
+
| `problem` | 异常件管理:问题件列表、AI处理建议、通知件、尾程异常、欠费件、拦截件 | [`reference/problem.md`](reference/problem.md) |
|
|
66
|
+
| `service` | 服务中心:售后工单、查件、投诉、服务单详情、处理记录、理赔详情 | [`reference/service.md`](reference/service.md) |
|
|
67
|
+
| `finance` | 财务管理:账户余额、账单、每日费用、未出账汇总及明细、充值记录(在线及线下)、计费明细 | [`reference/finance.md`](reference/finance.md) |
|
|
68
|
+
| `pickup` | 揽收管理:物料申请单查询 | [`reference/pickup.md`](reference/pickup.md) |
|
|
69
|
+
| `notice` | 系统公告:公告列表、公告详情 | [`reference/notice.md`](reference/notice.md) |
|
|
58
70
|
| `update` | 升级:检查并升级 CLI 及 skill 到最新版本 | [`reference/update.md`](reference/update.md) |
|
|
59
71
|
|
|
60
72
|
运行 `fmc <command> --help` 查看命令帮助。
|
|
@@ -64,10 +76,37 @@ description: >-
|
|
|
64
76
|
## 意图判断决策树
|
|
65
77
|
|
|
66
78
|
用户提到"包裹到哪了/物流状态/轨迹/在途" → `fmc track get`
|
|
79
|
+
用户提到"轨迹订阅/订阅" → `fmc track sub-order`
|
|
67
80
|
用户提到"面单/运单/打印/标签/label" → `fmc label get`
|
|
68
81
|
用户提到"订单详情/收件人/费用明细/订单信息" → `fmc order get`
|
|
82
|
+
用户提到"订单列表/最近订单/我的订单" → `fmc order list`
|
|
69
83
|
用户提到"推荐产品/选什么物流/报价/寄到XX国" → `fmc product recommend`
|
|
84
|
+
用户提到"可用产品/产品列表" → `fmc product list`
|
|
85
|
+
用户提到"产品详情/产品属性" → `fmc product detail`
|
|
86
|
+
用户提到"试算运费/运费计算" → `fmc product recommend`
|
|
87
|
+
用户提到"时效/预估时效" → `fmc product eta`
|
|
88
|
+
用户提到"搜索产品/找产品" → `fmc product search`
|
|
70
89
|
用户提到"理赔/索赔/赔偿/丢件赔付" → `fmc claim list`
|
|
90
|
+
用户提到"异常件/问题件/异常单/异常订单" → `fmc problem list`
|
|
91
|
+
用户提到"处理建议/异常建议/AI建议" → `fmc problem suggest`
|
|
92
|
+
用户提到"通知件" → `fmc problem notify`
|
|
93
|
+
用户提到"尾程异常" → `fmc problem lastmile`
|
|
94
|
+
用户提到"欠费/欠费件" → `fmc problem arrear`
|
|
95
|
+
用户提到"拦截/拦截件" → `fmc problem intercepted`
|
|
96
|
+
用户提到"工单/售后/报修" → `fmc service repair`
|
|
97
|
+
用户提到"查件/查件进度" → `fmc service check`
|
|
98
|
+
用户提到"投诉" → `fmc service complaint`
|
|
99
|
+
用户提到"服务单详情" → `fmc service detail`
|
|
100
|
+
用户提到"余额/账户余额" → `fmc finance balance`
|
|
101
|
+
用户提到"账单" → `fmc finance bill`
|
|
102
|
+
用户提到"每日费用/日费" → `fmc finance daily-fee`
|
|
103
|
+
用户提到"未出账/未结算" → `fmc finance unbilled`
|
|
104
|
+
用户提到"充值记录" → `fmc finance recharge`
|
|
105
|
+
用户提到"计费明细" → `fmc finance fee-detail`
|
|
106
|
+
用户提到"地址簿/地址列表" → `fmc order address-book`
|
|
107
|
+
用户提到"目的国/国家查询/搜索国家" → `fmc order country`
|
|
108
|
+
用户提到"物料/物料申请" → `fmc pickup material`
|
|
109
|
+
用户提到"公告/通知/系统公告" → `fmc notice list`
|
|
71
110
|
用户提到"登录/配置key/认证" → `fmc auth login`
|
|
72
111
|
用户提到"升级/更新/新版本" → `fmc update`
|
|
73
112
|
|
|
@@ -80,6 +119,9 @@ description: >-
|
|
|
80
119
|
| "我的包裹丢了" | `claim list` | `track get` | 用户意图是理赔而非查轨迹 |
|
|
81
120
|
| "寄快递/发货选什么" | `product recommend` | — | 发货前选品,需要国家参数 |
|
|
82
121
|
| "运费多少" | `product recommend` | `order get` | 发货前询价用 product;已发货查费用用 order |
|
|
122
|
+
| "查理赔" | `claim list` | `service claim-detail` | 前者查列表,后者按理赔单号查详情 |
|
|
123
|
+
| "我的订单" | `order list` | `order get` | 前者是列表,后者按单号查详情 |
|
|
124
|
+
| "运费/多少钱" | `product recommend`(发货前询价) | `order get`(已发货查费用) | 发货前用 product recommend 试算;已发货查费用用 order get |
|
|
83
125
|
|
|
84
126
|
---
|
|
85
127
|
|
|
@@ -123,12 +165,24 @@ fmc label get FPX12345678
|
|
|
123
165
|
# 查看订单详情
|
|
124
166
|
fmc order get FPX12345678
|
|
125
167
|
|
|
168
|
+
# 查询订单列表
|
|
169
|
+
fmc order list --status IN_TRANSIT
|
|
170
|
+
|
|
126
171
|
# 获取推荐产品(寄美国)
|
|
127
172
|
fmc product recommend --country US
|
|
128
173
|
|
|
129
174
|
# 查询理赔列表(按单号)
|
|
130
175
|
fmc claim list --biz-no FPX12345678
|
|
131
176
|
|
|
177
|
+
# 查询异常件
|
|
178
|
+
fmc problem list
|
|
179
|
+
|
|
180
|
+
# 查询账户余额
|
|
181
|
+
fmc finance balance
|
|
182
|
+
|
|
183
|
+
# 搜索目的国家
|
|
184
|
+
fmc order country 美国
|
|
185
|
+
|
|
132
186
|
# JSON 格式输出
|
|
133
187
|
fmc track get FPX12345678 --output json
|
|
134
188
|
```
|
|
@@ -161,7 +215,12 @@ fmc config set baseUrl https://b.4px.com
|
|
|
161
215
|
- [`reference/config.md`](reference/config.md) — 配置管理详细参数
|
|
162
216
|
- [`reference/track.md`](reference/track.md) — 物流轨迹查询详细参数
|
|
163
217
|
- [`reference/label.md`](reference/label.md) — 面单打印详细参数
|
|
164
|
-
- [`reference/order.md`](reference/order.md) —
|
|
165
|
-
- [`reference/product.md`](reference/product.md) —
|
|
218
|
+
- [`reference/order.md`](reference/order.md) — 订单管理详细参数
|
|
219
|
+
- [`reference/product.md`](reference/product.md) — 产品推荐与查询详细参数
|
|
166
220
|
- [`reference/claim.md`](reference/claim.md) — 理赔查询详细参数
|
|
221
|
+
- [`reference/problem.md`](reference/problem.md) — 异常件管理详细参数
|
|
222
|
+
- [`reference/service.md`](reference/service.md) — 服务中心详细参数
|
|
223
|
+
- [`reference/finance.md`](reference/finance.md) — 财务管理详细参数
|
|
224
|
+
- [`reference/pickup.md`](reference/pickup.md) — 揽收管理详细参数
|
|
225
|
+
- [`reference/notice.md`](reference/notice.md) — 系统公告详细参数
|
|
167
226
|
- [`reference/update.md`](reference/update.md) — CLI / skill 升级详细参数
|
|
@@ -0,0 +1,220 @@
|
|
|
1
|
+
# `fmc customs` command
|
|
2
|
+
|
|
3
|
+
## Command details
|
|
4
|
+
|
|
5
|
+
### `fmc customs cargo list`
|
|
6
|
+
|
|
7
|
+
| Field | Value |
|
|
8
|
+
| --- | --- |
|
|
9
|
+
| **Name** | `customs cargo list` |
|
|
10
|
+
| **Description** | 查询申报品列表 |
|
|
11
|
+
| **Usage** | `fmc customs cargo list [flags]` |
|
|
12
|
+
|
|
13
|
+
需要 API Key 认证。
|
|
14
|
+
|
|
15
|
+
#### Options
|
|
16
|
+
|
|
17
|
+
| Flag | Type | Required | Description |
|
|
18
|
+
| --- | --- | --- | --- |
|
|
19
|
+
| `--keyword <word>` | string | no | 搜索关键词 |
|
|
20
|
+
| `--page <num>` | number | no | 页码,默认 1 |
|
|
21
|
+
| `--size <num>` | number | no | 每页数量,默认 10 |
|
|
22
|
+
|
|
23
|
+
支持全局选项: `--output`, `--verbose`, `--dry-run`
|
|
24
|
+
|
|
25
|
+
#### Examples
|
|
26
|
+
|
|
27
|
+
```bash
|
|
28
|
+
fmc customs cargo list
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
```bash
|
|
32
|
+
fmc customs cargo list --keyword 手机壳
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
```bash
|
|
36
|
+
fmc customs cargo list --page 2 --size 20 --output json
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
#### Output (text mode)
|
|
40
|
+
|
|
41
|
+
```
|
|
42
|
+
申报品列表
|
|
43
|
+
────────────────────────────────────────────────────────────
|
|
44
|
+
Phone Case
|
|
45
|
+
中文品名 手机壳
|
|
46
|
+
配货品名 手机保护壳
|
|
47
|
+
HS编码 3926909090
|
|
48
|
+
单价 2.5 USD
|
|
49
|
+
数量 100
|
|
50
|
+
|
|
51
|
+
共 1 条
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
---
|
|
55
|
+
|
|
56
|
+
### `fmc customs commodity list`
|
|
57
|
+
|
|
58
|
+
| Field | Value |
|
|
59
|
+
| --- | --- |
|
|
60
|
+
| **Name** | `customs commodity list` |
|
|
61
|
+
| **Description** | 查询商品备案列表 |
|
|
62
|
+
| **Usage** | `fmc customs commodity list [flags]` |
|
|
63
|
+
|
|
64
|
+
需要 API Key 认证。
|
|
65
|
+
|
|
66
|
+
#### Options
|
|
67
|
+
|
|
68
|
+
| Flag | Type | Required | Description |
|
|
69
|
+
| --- | --- | --- | --- |
|
|
70
|
+
| `--en-name <name>` | string | no | 英文品名 |
|
|
71
|
+
| `--cn-name <name>` | string | no | 中文品名 |
|
|
72
|
+
| `--page <num>` | number | no | 页码,默认 1 |
|
|
73
|
+
| `--size <num>` | number | no | 每页数量,默认 10 |
|
|
74
|
+
|
|
75
|
+
支持全局选项: `--output`, `--verbose`, `--dry-run`
|
|
76
|
+
|
|
77
|
+
#### Examples
|
|
78
|
+
|
|
79
|
+
```bash
|
|
80
|
+
fmc customs commodity list
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
```bash
|
|
84
|
+
fmc customs commodity list --en-name phone
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
```bash
|
|
88
|
+
fmc customs commodity list --cn-name 手机 --output json
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
#### Output (text mode)
|
|
92
|
+
|
|
93
|
+
```
|
|
94
|
+
商品备案列表
|
|
95
|
+
────────────────────────────────────────────────────────────
|
|
96
|
+
SKU001
|
|
97
|
+
英文名 Phone Case
|
|
98
|
+
中文名 手机壳
|
|
99
|
+
HS编码 3926909090 塑料制品
|
|
100
|
+
价格 2.50 USD
|
|
101
|
+
重量 50g
|
|
102
|
+
状态 已审核
|
|
103
|
+
|
|
104
|
+
共 1 条
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
---
|
|
108
|
+
|
|
109
|
+
### `fmc customs commodity detail`
|
|
110
|
+
|
|
111
|
+
| Field | Value |
|
|
112
|
+
| --- | --- |
|
|
113
|
+
| **Name** | `customs commodity detail` |
|
|
114
|
+
| **Description** | 查询商品备案详情 |
|
|
115
|
+
| **Usage** | `fmc customs commodity detail <commodityId> [flags]` |
|
|
116
|
+
|
|
117
|
+
需要 API Key 认证。
|
|
118
|
+
|
|
119
|
+
#### Options
|
|
120
|
+
|
|
121
|
+
| Flag | Type | Required | Description |
|
|
122
|
+
| --- | --- | --- | --- |
|
|
123
|
+
| `<commodityId>` | string | yes | 商品备案ID |
|
|
124
|
+
|
|
125
|
+
支持全局选项: `--output`, `--verbose`, `--dry-run`
|
|
126
|
+
|
|
127
|
+
#### Examples
|
|
128
|
+
|
|
129
|
+
```bash
|
|
130
|
+
fmc customs commodity detail 12345
|
|
131
|
+
```
|
|
132
|
+
|
|
133
|
+
```bash
|
|
134
|
+
fmc customs commodity detail 12345 --output json
|
|
135
|
+
```
|
|
136
|
+
|
|
137
|
+
---
|
|
138
|
+
|
|
139
|
+
### `fmc customs hscode search`
|
|
140
|
+
|
|
141
|
+
| Field | Value |
|
|
142
|
+
| --- | --- |
|
|
143
|
+
| **Name** | `customs hscode search` |
|
|
144
|
+
| **Description** | 查询海关编码 |
|
|
145
|
+
| **Usage** | `fmc customs hscode search [flags]` |
|
|
146
|
+
|
|
147
|
+
需要 API Key 认证。
|
|
148
|
+
|
|
149
|
+
#### Options
|
|
150
|
+
|
|
151
|
+
| Flag | Type | Required | Description |
|
|
152
|
+
| --- | --- | --- | --- |
|
|
153
|
+
| `--code <code>` | string | no | 海关编码 |
|
|
154
|
+
| `--name <name>` | string | no | 品名关键词 |
|
|
155
|
+
| `--page <num>` | number | no | 页码,默认 1 |
|
|
156
|
+
| `--size <num>` | number | no | 每页数量,默认 10 |
|
|
157
|
+
|
|
158
|
+
支持全局选项: `--output`, `--verbose`, `--dry-run`
|
|
159
|
+
|
|
160
|
+
#### Examples
|
|
161
|
+
|
|
162
|
+
```bash
|
|
163
|
+
fmc customs hscode search --name 手机
|
|
164
|
+
```
|
|
165
|
+
|
|
166
|
+
```bash
|
|
167
|
+
fmc customs hscode search --code 3926
|
|
168
|
+
```
|
|
169
|
+
|
|
170
|
+
```bash
|
|
171
|
+
fmc customs hscode search --name phone --output json
|
|
172
|
+
```
|
|
173
|
+
|
|
174
|
+
#### Output (text mode)
|
|
175
|
+
|
|
176
|
+
```
|
|
177
|
+
海关编码查询结果
|
|
178
|
+
──────────────────────────────────────────────────
|
|
179
|
+
3926909090 其他塑料制品
|
|
180
|
+
8517120000 手机及便携终端
|
|
181
|
+
|
|
182
|
+
共 2 条
|
|
183
|
+
```
|
|
184
|
+
|
|
185
|
+
---
|
|
186
|
+
|
|
187
|
+
### `fmc customs registration info`
|
|
188
|
+
|
|
189
|
+
| Field | Value |
|
|
190
|
+
| --- | --- |
|
|
191
|
+
| **Name** | `customs registration info` |
|
|
192
|
+
| **Description** | 查询客户海关备案信息 |
|
|
193
|
+
| **Usage** | `fmc customs registration info [flags]` |
|
|
194
|
+
|
|
195
|
+
需要 API Key 认证。
|
|
196
|
+
|
|
197
|
+
#### Options
|
|
198
|
+
|
|
199
|
+
无额外参数。
|
|
200
|
+
|
|
201
|
+
支持全局选项: `--output`, `--verbose`, `--dry-run`
|
|
202
|
+
|
|
203
|
+
#### Examples
|
|
204
|
+
|
|
205
|
+
```bash
|
|
206
|
+
fmc customs registration info
|
|
207
|
+
```
|
|
208
|
+
|
|
209
|
+
```bash
|
|
210
|
+
fmc customs registration info --output json
|
|
211
|
+
```
|
|
212
|
+
|
|
213
|
+
#### Output (text mode)
|
|
214
|
+
|
|
215
|
+
```
|
|
216
|
+
客户备案信息
|
|
217
|
+
────────────────────────────────────────
|
|
218
|
+
客户编码 CM001234
|
|
219
|
+
审核状态 已审核
|
|
220
|
+
```
|
|
@@ -0,0 +1,337 @@
|
|
|
1
|
+
# `fmc finance` command
|
|
2
|
+
|
|
3
|
+
## Command details
|
|
4
|
+
|
|
5
|
+
### `fmc finance balance`
|
|
6
|
+
|
|
7
|
+
| Field | Value |
|
|
8
|
+
| --- | --- |
|
|
9
|
+
| **Name** | `finance balance` |
|
|
10
|
+
| **Description** | 查询账户余额 |
|
|
11
|
+
| **Usage** | `fmc finance balance [flags]` |
|
|
12
|
+
|
|
13
|
+
需要 API Key 认证。
|
|
14
|
+
|
|
15
|
+
#### Options
|
|
16
|
+
|
|
17
|
+
| Flag | Type | Required | Description |
|
|
18
|
+
| --- | --- | --- | --- |
|
|
19
|
+
| `--business-system <system>` | string | no | 品牌(业务系统),默认 DSS |
|
|
20
|
+
|
|
21
|
+
支持全局选项: `--output`, `--verbose`, `--dry-run`
|
|
22
|
+
|
|
23
|
+
#### Examples
|
|
24
|
+
|
|
25
|
+
```bash
|
|
26
|
+
fmc finance balance
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
```bash
|
|
30
|
+
fmc finance balance --output json
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
#### Output (text mode)
|
|
34
|
+
|
|
35
|
+
```
|
|
36
|
+
账户余额
|
|
37
|
+
──────────────────────────────────────────────────
|
|
38
|
+
付费类型 预付费
|
|
39
|
+
授信额度 50,000.00
|
|
40
|
+
可用授信额度 41,800.00
|
|
41
|
+
可用余额 12,580.50
|
|
42
|
+
欠费金额 0.00
|
|
43
|
+
|
|
44
|
+
账户余额明细
|
|
45
|
+
────────────────────────────────────────
|
|
46
|
+
CNY (DSS)
|
|
47
|
+
现金余额 10,000.00
|
|
48
|
+
信用余额 2,580.50
|
|
49
|
+
账户余额 12,580.50
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
---
|
|
53
|
+
|
|
54
|
+
### `fmc finance bill list`
|
|
55
|
+
|
|
56
|
+
| Field | Value |
|
|
57
|
+
| --- | --- |
|
|
58
|
+
| **Name** | `finance bill list` |
|
|
59
|
+
| **Description** | 查询已出账单列表 |
|
|
60
|
+
| **Usage** | `fmc finance bill list [flags]` |
|
|
61
|
+
|
|
62
|
+
需要 API Key 认证。
|
|
63
|
+
|
|
64
|
+
#### Options
|
|
65
|
+
|
|
66
|
+
| Flag | Type | Required | Description |
|
|
67
|
+
| --- | --- | --- | --- |
|
|
68
|
+
| `--business-system <system>` | string | no | 品牌(业务系统),默认 GRS |
|
|
69
|
+
| `--bill-no <no>` | string | no | 账单编号 |
|
|
70
|
+
| `--bill-month <month>` | string | no | 账单月份 (yyyy-MM) |
|
|
71
|
+
| `--page <num>` | number | no | 页码,默认 1 |
|
|
72
|
+
| `--size <num>` | number | no | 每页数量,默认 10 |
|
|
73
|
+
|
|
74
|
+
支持全局选项: `--output`, `--verbose`, `--dry-run`
|
|
75
|
+
|
|
76
|
+
#### Examples
|
|
77
|
+
|
|
78
|
+
```bash
|
|
79
|
+
fmc finance bill list
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
```bash
|
|
83
|
+
fmc finance bill list --bill-month 2024-01
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
```bash
|
|
87
|
+
fmc finance bill list --page 2 --size 20 --output json
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
#### Output (text mode)
|
|
91
|
+
|
|
92
|
+
```
|
|
93
|
+
账单列表
|
|
94
|
+
──────────────────────────────────────────────────
|
|
95
|
+
共 25 条
|
|
96
|
+
|
|
97
|
+
BILL-202401 已结算
|
|
98
|
+
业务系统 GRS
|
|
99
|
+
应收金额 5,280.50 CNY
|
|
100
|
+
账单周期 2024-01-01~2024-01-31
|
|
101
|
+
还款截止 2024-02-15
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
---
|
|
105
|
+
|
|
106
|
+
### `fmc finance daily-fee list`
|
|
107
|
+
|
|
108
|
+
| Field | Value |
|
|
109
|
+
| --- | --- |
|
|
110
|
+
| **Name** | `finance daily-fee list` |
|
|
111
|
+
| **Description** | 查询每日充值/消费费用 |
|
|
112
|
+
| **Usage** | `fmc finance daily-fee list [flags]` |
|
|
113
|
+
|
|
114
|
+
需要 API Key 认证。
|
|
115
|
+
|
|
116
|
+
#### Options
|
|
117
|
+
|
|
118
|
+
| Flag | Type | Required | Description |
|
|
119
|
+
| --- | --- | --- | --- |
|
|
120
|
+
| `--business-system <system>` | string | no | 品牌(业务系统),默认 GRS |
|
|
121
|
+
| `--currency-code <code>` | string | no | 币种编码 |
|
|
122
|
+
| `--start-date <date>` | string | no | 起始日期 (yyyy-MM-dd) |
|
|
123
|
+
| `--end-date <date>` | string | no | 结束日期 (yyyy-MM-dd) |
|
|
124
|
+
| `--page <num>` | number | no | 页码,默认 1 |
|
|
125
|
+
| `--size <num>` | number | no | 每页数量,默认 10 |
|
|
126
|
+
|
|
127
|
+
支持全局选项: `--output`, `--verbose`, `--dry-run`
|
|
128
|
+
|
|
129
|
+
#### Examples
|
|
130
|
+
|
|
131
|
+
```bash
|
|
132
|
+
fmc finance daily-fee list
|
|
133
|
+
```
|
|
134
|
+
|
|
135
|
+
```bash
|
|
136
|
+
fmc finance daily-fee list --start-date 2024-01-01 --end-date 2024-01-07
|
|
137
|
+
```
|
|
138
|
+
|
|
139
|
+
```bash
|
|
140
|
+
fmc finance daily-fee list --output json
|
|
141
|
+
```
|
|
142
|
+
|
|
143
|
+
#### Output (text mode)
|
|
144
|
+
|
|
145
|
+
```
|
|
146
|
+
每日费用
|
|
147
|
+
──────────────────────────────────────────────────
|
|
148
|
+
页码 1/1 共 7 条
|
|
149
|
+
|
|
150
|
+
2024-01-07
|
|
151
|
+
费用金额 680.50
|
|
152
|
+
收款金额 520.00
|
|
153
|
+
业务系统 GRS
|
|
154
|
+
```
|
|
155
|
+
|
|
156
|
+
---
|
|
157
|
+
|
|
158
|
+
### `fmc finance unbilled list`
|
|
159
|
+
|
|
160
|
+
| Field | Value |
|
|
161
|
+
| --- | --- |
|
|
162
|
+
| **Name** | `finance unbilled list` |
|
|
163
|
+
| **Description** | 查询未出账单(传 `--business-no` 查明细,不传查列表) |
|
|
164
|
+
| **Usage** | `fmc finance unbilled list [flags]` |
|
|
165
|
+
|
|
166
|
+
需要 API Key 认证。
|
|
167
|
+
|
|
168
|
+
#### Options
|
|
169
|
+
|
|
170
|
+
| Flag | Type | Required | Description |
|
|
171
|
+
| --- | --- | --- | --- |
|
|
172
|
+
| `--business-no <no>` | string | no | 业务单号(传入则查该单计费明细) |
|
|
173
|
+
| `--currency-code <code>` | string | no | 币种编码(查明细时必填) |
|
|
174
|
+
| `--business-system <system>` | string | no | 品牌(业务系统),默认 GRS |
|
|
175
|
+
| `--bill-no <no>` | string | no | 账单编号(查列表时筛选) |
|
|
176
|
+
| `--page <num>` | number | no | 页码,默认 1 |
|
|
177
|
+
| `--size <num>` | number | no | 每页数量,默认 10 |
|
|
178
|
+
|
|
179
|
+
支持全局选项: `--output`, `--verbose`, `--dry-run`
|
|
180
|
+
|
|
181
|
+
#### Examples
|
|
182
|
+
|
|
183
|
+
```bash
|
|
184
|
+
fmc finance unbilled list
|
|
185
|
+
```
|
|
186
|
+
|
|
187
|
+
```bash
|
|
188
|
+
fmc finance unbilled list --business-no FPX12345678 --currency-code CNY
|
|
189
|
+
```
|
|
190
|
+
|
|
191
|
+
```bash
|
|
192
|
+
fmc finance unbilled list --output json
|
|
193
|
+
```
|
|
194
|
+
|
|
195
|
+
---
|
|
196
|
+
|
|
197
|
+
### `fmc finance recharge list`
|
|
198
|
+
|
|
199
|
+
| Field | Value |
|
|
200
|
+
| --- | --- |
|
|
201
|
+
| **Name** | `finance recharge list` |
|
|
202
|
+
| **Description** | 查询充值记录(加 `--offline` 查线下水单) |
|
|
203
|
+
| **Usage** | `fmc finance recharge list [flags]` |
|
|
204
|
+
|
|
205
|
+
需要 API Key 认证。
|
|
206
|
+
|
|
207
|
+
#### Options
|
|
208
|
+
|
|
209
|
+
| Flag | Type | Required | Description |
|
|
210
|
+
| --- | --- | --- | --- |
|
|
211
|
+
| `--offline` | boolean | no | 查询线下充值记录(水单) |
|
|
212
|
+
| `--business-system <system>` | string | no | 品牌(业务系统),默认 DSS |
|
|
213
|
+
| `--start-date <date>` | string | no | 起始日期 (yyyy-MM-dd) |
|
|
214
|
+
| `--end-date <date>` | string | no | 结束日期 (yyyy-MM-dd) |
|
|
215
|
+
| `--currency <code>` | string | no | 币种(仅线下) |
|
|
216
|
+
| `--trade-no <no>` | string | no | 付款凭证号(仅线下) |
|
|
217
|
+
| `--status <code>` | string | no | 水单状态(仅线下) |
|
|
218
|
+
| `--page <num>` | number | no | 页码,默认 1 |
|
|
219
|
+
| `--size <num>` | number | no | 每页数量,默认 10 |
|
|
220
|
+
|
|
221
|
+
支持全局选项: `--output`, `--verbose`, `--dry-run`
|
|
222
|
+
|
|
223
|
+
#### Examples
|
|
224
|
+
|
|
225
|
+
```bash
|
|
226
|
+
fmc finance recharge list
|
|
227
|
+
```
|
|
228
|
+
|
|
229
|
+
```bash
|
|
230
|
+
fmc finance recharge list --offline
|
|
231
|
+
```
|
|
232
|
+
|
|
233
|
+
```bash
|
|
234
|
+
fmc finance recharge list --start-date 2024-01-01 --end-date 2024-06-30
|
|
235
|
+
```
|
|
236
|
+
|
|
237
|
+
```bash
|
|
238
|
+
fmc finance recharge list --output json
|
|
239
|
+
```
|
|
240
|
+
|
|
241
|
+
---
|
|
242
|
+
|
|
243
|
+
### `fmc finance fee detail`
|
|
244
|
+
|
|
245
|
+
| Field | Value |
|
|
246
|
+
| --- | --- |
|
|
247
|
+
| **Name** | `finance fee detail` |
|
|
248
|
+
| **Description** | 查询计费明细 |
|
|
249
|
+
| **Usage** | `fmc finance fee detail <businessNo> [flags]` |
|
|
250
|
+
|
|
251
|
+
需要 API Key 认证。
|
|
252
|
+
|
|
253
|
+
#### Options
|
|
254
|
+
|
|
255
|
+
| Flag | Type | Required | Description |
|
|
256
|
+
| --- | --- | --- | --- |
|
|
257
|
+
| `<businessNo>` | string | yes | 业务单号 |
|
|
258
|
+
|
|
259
|
+
支持全局选项: `--output`, `--verbose`, `--dry-run`
|
|
260
|
+
|
|
261
|
+
#### Examples
|
|
262
|
+
|
|
263
|
+
```bash
|
|
264
|
+
fmc finance fee detail FPX12345678
|
|
265
|
+
```
|
|
266
|
+
|
|
267
|
+
```bash
|
|
268
|
+
fmc finance fee detail FPX12345678 --output json
|
|
269
|
+
```
|
|
270
|
+
|
|
271
|
+
#### Output (text mode)
|
|
272
|
+
|
|
273
|
+
```
|
|
274
|
+
费用明细
|
|
275
|
+
──────────────────────────────────────────────────
|
|
276
|
+
运费
|
|
277
|
+
计费单号 BIL001
|
|
278
|
+
应付金额 25.00 CNY
|
|
279
|
+
计费状态 已计费
|
|
280
|
+
|
|
281
|
+
燃油附加费
|
|
282
|
+
计费单号 BIL002
|
|
283
|
+
应付金额 5.00 CNY
|
|
284
|
+
计费状态 已计费
|
|
285
|
+
```
|
|
286
|
+
|
|
287
|
+
---
|
|
288
|
+
|
|
289
|
+
### `fmc finance frozen list`
|
|
290
|
+
|
|
291
|
+
| Field | Value |
|
|
292
|
+
| --- | --- |
|
|
293
|
+
| **Name** | `finance frozen list` |
|
|
294
|
+
| **Description** | 查询冻结流水 |
|
|
295
|
+
| **Usage** | `fmc finance frozen list [flags]` |
|
|
296
|
+
|
|
297
|
+
需要 API Key 认证。
|
|
298
|
+
|
|
299
|
+
#### Options
|
|
300
|
+
|
|
301
|
+
| Flag | Type | Required | Description |
|
|
302
|
+
| --- | --- | --- | --- |
|
|
303
|
+
| `--brand <brand>` | string | no | 品牌(业务系统) |
|
|
304
|
+
| `--currency <code>` | string | no | 币种编码 |
|
|
305
|
+
| `--business-no <no>` | string | no | 业务单号 |
|
|
306
|
+
| `--page <num>` | number | no | 页码,默认 1 |
|
|
307
|
+
| `--size <num>` | number | no | 每页数量,默认 10 |
|
|
308
|
+
|
|
309
|
+
支持全局选项: `--output`, `--verbose`, `--dry-run`
|
|
310
|
+
|
|
311
|
+
#### Examples
|
|
312
|
+
|
|
313
|
+
```bash
|
|
314
|
+
fmc finance frozen list
|
|
315
|
+
```
|
|
316
|
+
|
|
317
|
+
```bash
|
|
318
|
+
fmc finance frozen list --currency CNY
|
|
319
|
+
```
|
|
320
|
+
|
|
321
|
+
```bash
|
|
322
|
+
fmc finance frozen list --business-no FPX12345678 --output json
|
|
323
|
+
```
|
|
324
|
+
|
|
325
|
+
#### Output (text mode)
|
|
326
|
+
|
|
327
|
+
```
|
|
328
|
+
冻结流水列表
|
|
329
|
+
────────────────────────────────────────────────────────────
|
|
330
|
+
FPX12345678
|
|
331
|
+
品牌 DSS
|
|
332
|
+
冻结金额 25.00 CNY
|
|
333
|
+
冻结时间 2024-01-15 10:30:00
|
|
334
|
+
解冻时间 2024-01-20 09:00:00
|
|
335
|
+
|
|
336
|
+
共 1 条
|
|
337
|
+
```
|