@uqpay/cli 0.3.1 → 2.0.0
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/README.md +32 -0
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -32,6 +32,9 @@ The official [UQPAY](https://www.uqpay.com/) CLI tool — built for humans and A
|
|
|
32
32
|
|
|
33
33
|
### From npm (recommended)
|
|
34
34
|
|
|
35
|
+
Requires Node.js 22+ for the npm installer. The installed `uqpay` binary does
|
|
36
|
+
not require Node.js at runtime.
|
|
37
|
+
|
|
35
38
|
```bash
|
|
36
39
|
# Install CLI
|
|
37
40
|
npm install -g @uqpay/cli
|
|
@@ -74,6 +77,35 @@ uqpay issuing card list
|
|
|
74
77
|
uqpay payment intent list
|
|
75
78
|
```
|
|
76
79
|
|
|
80
|
+
Virtual Account applications are tracked separately from issued bank details:
|
|
81
|
+
|
|
82
|
+
```bash
|
|
83
|
+
# Submit one application. Omit payment_method to evaluate LOCAL and SWIFT.
|
|
84
|
+
uqpay banking virtual-account create \
|
|
85
|
+
--idempotency-key va-application-001 \
|
|
86
|
+
-d country=SG -d currency=USD -d nickname=Collections
|
|
87
|
+
|
|
88
|
+
# List application summaries, then retrieve the complete current application.
|
|
89
|
+
uqpay banking virtual-account application list --page-num 1 --page-size 50
|
|
90
|
+
uqpay banking virtual-account application retrieve <application-id> -o json
|
|
91
|
+
|
|
92
|
+
# Existing command: list issued Virtual Account bank details, not applications.
|
|
93
|
+
uqpay banking virtual-account list --page-num 1 --page-size 50
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
For connected accounts, add `--on-behalf-of <account-id>` to all three flows.
|
|
97
|
+
Reuse an idempotency key only for the same normalized Create request. Create
|
|
98
|
+
returns HTTP 200 application data; usable bank details arrive asynchronously.
|
|
99
|
+
|
|
100
|
+
Successful Gateway Create and Retrieve application data and each List summary
|
|
101
|
+
include required `account_id` and `direct_id` fields. `account_id` is the UUID of
|
|
102
|
+
the account that owns the application. `direct_id` is an ordinary string: `"0"`
|
|
103
|
+
for a main account and the main account ID for a connected account. The CLI does
|
|
104
|
+
not validate or transform either field; `-o json` preserves them as received.
|
|
105
|
+
|
|
106
|
+
The CLI does not parse or type webhook deliveries. Use a customer webhook
|
|
107
|
+
handler or an SDK verifier for that flow.
|
|
108
|
+
|
|
77
109
|
Or inline without config file:
|
|
78
110
|
|
|
79
111
|
```bash
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uqpay/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"description": "UQPAY command-line tool for banking, issuing, and payment APIs",
|
|
5
5
|
"bin": {
|
|
6
6
|
"uqpay": "scripts/run.js"
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"arm64"
|
|
19
19
|
],
|
|
20
20
|
"engines": {
|
|
21
|
-
"node": ">=
|
|
21
|
+
"node": ">=22"
|
|
22
22
|
},
|
|
23
23
|
"repository": {
|
|
24
24
|
"type": "git",
|