taiwan-logistics-skill 1.4.8 → 1.4.9

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.
@@ -147,7 +147,7 @@ POST https://api.pchomepay.com.tw/v1/token
147
147
 
148
148
  ```bash
149
149
  curl --location --request POST 'https://api.pchomepay.com.tw/v1/token' \
150
- --header 'Authorization: Basic RTIzNjc5QkY2NEFFNDU0RjRDQjY3MTFGQUMzNjp4UGdWTmdXb2I4YkdnRVQyZUJSc25pX3lYRW10cXV0bHhVa19VVXVo' \
150
+ --header 'Authorization: Basic <base64(APP_ID:SECRET)>' \
151
151
  --header 'Content-Type: application/json'
152
152
  ```
153
153
 
@@ -180,7 +180,7 @@ function getPcpayToken(string $appId, string $secret): array
180
180
 
181
181
  // 範例回應
182
182
  // {
183
- // "token": "zHm67sQRuPSO__eiuy2h_lEgtPlS12aVqrcVz3Kc",
183
+ // "token": "YOUR_PCPAY_TOKEN",
184
184
  // "expired_in": 28800,
185
185
  // "expired_timestamp": 1474470110
186
186
  // }
@@ -314,7 +314,7 @@ POST https://api.pchomepay.com.tw/v1/logistic/batch
314
314
  ```bash
315
315
  curl --location 'https://api.pchomepay.com.tw/v1/logistic/batch' \
316
316
  --header 'Content-Type: application/json' \
317
- --header 'pcpay-token: __kJw1OMKTkwwssWPsAnGNtIzMYFIZ5ymmkq8nCd' \
317
+ --header 'pcpay-token: YOUR_PCPAY_TOKEN' \
318
318
  --data '{
319
319
  "order_id": ["B2C1702640091"]
320
320
  }'
@@ -437,7 +437,7 @@ GET https://api.pchomepay.com.tw/v1/logistic/query/{order_id}/history
437
437
  ```bash
438
438
  curl --location 'https://api.pchomepay.com.tw/v1/logistic/query/B2C1723815435/history' \
439
439
  --header 'Content-Type: application/json' \
440
- --header 'pcpay-token: 0BZyFozlvqFtlwJoL5HQstTbNW_gNrNmsPQ4upc7'
440
+ --header 'pcpay-token: YOUR_PCPAY_TOKEN'
441
441
  ```
442
442
 
443
443
  ### 回應欄位
@@ -535,7 +535,7 @@ GET https://api.pchomepay.com.tw/v1/logistic/query/{order_id}/history-page
535
535
  ```bash
536
536
  curl --location 'https://api.pchomepay.com.tw/v1/logistic/query/B2C1723815435/history-page' \
537
537
  --header 'Content-Type: application/json' \
538
- --header 'pcpay-token: e0A_XRsPMDgCKvRnrikpdMTfEJzvIGuveJsn_695'
538
+ --header 'pcpay-token: YOUR_PCPAY_TOKEN'
539
539
  ```
540
540
 
541
541
  ### 回應欄位
@@ -583,7 +583,7 @@ GET https://api.pchomepay.com.tw/v1/logistic/yet
583
583
  ```bash
584
584
  curl --location 'https://api.pchomepay.com.tw/v1/logistic/yet' \
585
585
  --header 'Content-Type: application/json' \
586
- --header 'pcpay-token: F6uG0pXXTPTHDMRkIj_HGnzrWJvom_m_HhPxf296'
586
+ --header 'pcpay-token: YOUR_PCPAY_TOKEN'
587
587
  ```
588
588
 
589
589
  #### 回應欄位 (Array)
@@ -642,7 +642,7 @@ GET https://api.pchomepay.com.tw/v1/logistic/store_return/{date}
642
642
 
643
643
  ```bash
644
644
  curl --location 'https://api.pchomepay.com.tw/v1/logistic/store_return/20250409' \
645
- --header 'pcpay-token: F6uG0pXXTPTHDMRkIj_HGnzrWJvom_m_HhPxf296'
645
+ --header 'pcpay-token: YOUR_PCPAY_TOKEN'
646
646
  ```
647
647
 
648
648
  #### 回應欄位 (Array)
@@ -694,7 +694,7 @@ GET https://api.pchomepay.com.tw/v1/logistic/accounting/{date}
694
694
 
695
695
  ```bash
696
696
  curl --location 'https://api.pchomepay.com.tw/v1/logistic/accounting/20240816' \
697
- --header 'pcpay-token: fGVWZrMrYEVLHbj1joxn7CpdjsygFYYN8vLaygGM'
697
+ --header 'pcpay-token: YOUR_PCPAY_TOKEN'
698
698
  ```
699
699
 
700
700
  ### 回應格式
@@ -778,7 +778,7 @@ GET https://api.pchomepay.com.tw/v1/logistic/compensation/{date}
778
778
 
779
779
  ```bash
780
780
  curl --location 'https://api.pchomepay.com.tw/v1/logistic/compensation/202408' \
781
- --header 'pcpay-token: fGVWZrMrYEVLHbj1joxn7CpdjsygFYYN8vLaygGM'
781
+ --header 'pcpay-token: YOUR_PCPAY_TOKEN'
782
782
  ```
783
783
 
784
784
  ### 回應格式
package/dist/index.js CHANGED
@@ -16364,7 +16364,7 @@ async function listCommand() {
16364
16364
  var import_chalk5 = __toESM(require_source());
16365
16365
 
16366
16366
  // src/version.ts
16367
- var VERSION = "1.4.8";
16367
+ var VERSION = "1.4.9";
16368
16368
 
16369
16369
  // src/commands/info.ts
16370
16370
  async function infoCommand() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "taiwan-logistics-skill",
3
- "version": "1.4.8",
3
+ "version": "1.4.9",
4
4
  "description": "AI-powered Taiwan Logistics toolkit. Supports 7 aggregators (ECPay, NewebPay, PAYUNi, SmilePay, PChomePay, PayNow, ezShip), HCT direct carrier API, and on-demand delivery (Lalamove, pandago).",
5
5
  "bin": {
6
6
  "taiwan-logistics": "./dist/index.js"