@tbox.cn/app-module-parking 0.10.6 → 0.10.8
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/AGENTS.md +4 -3
- package/dist/{chunk-PGSDWF4M.js → chunk-BYN4OF6Z.js} +21 -14
- package/dist/index.js +1 -1
- package/dist/server/index.d.ts +104 -104
- package/dist/server/index.js +1 -1
- package/package.json +4 -4
- package/src/server/cards/parking-payment/meta.ts +2 -0
- package/src/server/cards/parking-payment/samples.ts +1 -0
- package/src/server/cards/parking-payment-records/meta.ts +1 -1
- package/src/server/cards/parking-payment-records/samples.ts +6 -6
- package/src/server/cards/parking-payment-result/meta.ts +3 -0
- package/src/server/cards/parking-payment-result/samples.ts +9 -6
- package/tests/cards-render.test.tsx +22 -0
- package/tests/samples.test.ts +62 -0
package/AGENTS.md
CHANGED
|
@@ -5,10 +5,11 @@
|
|
|
5
5
|
|
|
6
6
|
## 自定义 API 对接(AI 集成)
|
|
7
7
|
|
|
8
|
-
见本包 `INTEGRATION.md
|
|
9
|
-
|
|
8
|
+
见本包 `INTEGRATION.md`(接入语义真源);实施落点与流程见
|
|
9
|
+
`npx --yes @tbox.cn/app-cli skills get integration`(任务路由/材料清单)与
|
|
10
|
+
`npx --yes @tbox.cn/app-cli skills get provider-custom`(adapter 实施)。
|
|
10
11
|
|
|
11
12
|
## 真实厂商接入
|
|
12
13
|
|
|
13
|
-
见本包 `INTEGRATION.md`;官方 provider 包形态:应用态 `tbox-
|
|
14
|
+
见本包 `INTEGRATION.md`;官方 provider 包形态:应用态 `npx --yes @tbox.cn/app-cli new provider <name>`(`packages/provider-<id>`
|
|
14
15
|
local 形态)/ 仓内发布源 `tbox-app-dev new provider <name>`(`modules/provider-<id>` 发布形态)。
|
|
@@ -424,6 +424,8 @@ var samples = [
|
|
|
424
424
|
quoteRef: "b_free",
|
|
425
425
|
plateNo: "\u6D59A12345",
|
|
426
426
|
revision: 1,
|
|
427
|
+
entryAtText: "08-12 09:00",
|
|
428
|
+
durationText: "28 \u5206",
|
|
427
429
|
feeItems: [{ name: "\u505C\u8F66\u8D39\uFF080.5 \u5C0F\u65F6\uFF09", amountText: "0.00 \u5143" }],
|
|
428
430
|
totalText: "0.00 \u5143",
|
|
429
431
|
payableText: "0.00 \u5143",
|
|
@@ -750,6 +752,8 @@ var meta = {
|
|
|
750
752
|
sampleData: {
|
|
751
753
|
quoteRef: "q_demo",
|
|
752
754
|
plateNo: "\u6D59A12345",
|
|
755
|
+
entryAtText: "08-14 07:12",
|
|
756
|
+
durationText: "3 \u5C0F\u65F6 05 \u5206",
|
|
753
757
|
feeItems: [{ name: "\u505C\u8F66\u8D39\uFF083 \u5C0F\u65F6\uFF09", amountText: "15.00 \u5143" }],
|
|
754
758
|
totalText: "15.00 \u5143",
|
|
755
759
|
discountText: "5.75 \u5143",
|
|
@@ -782,13 +786,13 @@ var samples2 = [
|
|
|
782
786
|
paymentRef: "PO12345678",
|
|
783
787
|
plateNo: "\u6D59A12345",
|
|
784
788
|
status: "PAID",
|
|
785
|
-
amountText: "
|
|
789
|
+
amountText: "9.25 \u5143",
|
|
786
790
|
message: "\u7F34\u8D39\u6210\u529F\uFF0C\u795D\u60A8\u51FA\u573A\u987A\u5229",
|
|
787
791
|
leaveNotice: "\u8BF7\u5728 15 \u5206\u949F\u5185\u79BB\u573A\uFF0C\u8D85\u65F6\u5C06\u91CD\u65B0\u8BA1\u8D39",
|
|
788
792
|
details: [
|
|
789
793
|
{ label: "\u8F66\u724C", value: "\u6D59A12345" },
|
|
790
|
-
{ label: "\u505C\u8F66\u65F6\u957F", value: "
|
|
791
|
-
{ label: "\u7F34\u8D39\u65F6\u95F4", value: "\u4ECA\u5929
|
|
794
|
+
{ label: "\u505C\u8F66\u65F6\u957F", value: "3 \u5C0F\u65F6 08 \u5206" },
|
|
795
|
+
{ label: "\u7F34\u8D39\u65F6\u95F4", value: "\u4ECA\u5929 10:20" }
|
|
792
796
|
]
|
|
793
797
|
}
|
|
794
798
|
},
|
|
@@ -804,8 +808,8 @@ var samples2 = [
|
|
|
804
808
|
message: "\u652F\u4ED8\u5DF2\u53D6\u6D88\uFF0C\u53EF\u91CD\u65B0\u53D1\u8D77\u7F34\u8D39",
|
|
805
809
|
details: [
|
|
806
810
|
{ label: "\u8F66\u724C", value: "\u6D59A12345" },
|
|
807
|
-
{ label: "\u505C\u8F66\u65F6\u957F", value: "
|
|
808
|
-
{ label: "\u7F34\u8D39\u65F6\u95F4", value: "\u4ECA\u5929
|
|
811
|
+
{ label: "\u505C\u8F66\u65F6\u957F", value: "3 \u5C0F\u65F6 10 \u5206" },
|
|
812
|
+
{ label: "\u7F34\u8D39\u65F6\u95F4", value: "\u4ECA\u5929 10:22" }
|
|
809
813
|
]
|
|
810
814
|
},
|
|
811
815
|
hidden: true
|
|
@@ -823,7 +827,7 @@ var samples2 = [
|
|
|
823
827
|
retryable: true,
|
|
824
828
|
details: [
|
|
825
829
|
{ label: "\u8F66\u724C", value: "\u6D59A12345" },
|
|
826
|
-
{ label: "\u505C\u8F66\u65F6\u957F", value: "3 \u5C0F\u65F6
|
|
830
|
+
{ label: "\u505C\u8F66\u65F6\u957F", value: "3 \u5C0F\u65F6 19 \u5206" },
|
|
827
831
|
{ label: "\u7F34\u8D39\u65F6\u95F4", value: "\u4ECA\u5929 10:31" }
|
|
828
832
|
]
|
|
829
833
|
},
|
|
@@ -890,7 +894,10 @@ var meta2 = {
|
|
|
890
894
|
},
|
|
891
895
|
samples: samples2,
|
|
892
896
|
schemaVersion: 1,
|
|
893
|
-
order: 4
|
|
897
|
+
order: 4,
|
|
898
|
+
// 降噪型预览隐藏(活跃出卡保留——queryParkingPaymentStatus/reconcile 收口链路照常出卡;2026-10-19 裁决):
|
|
899
|
+
// 仅 dev 预览目录默认过滤,恢复 = 删本标记
|
|
900
|
+
hidden: true
|
|
894
901
|
};
|
|
895
902
|
var meta_default2 = meta2;
|
|
896
903
|
|
|
@@ -913,7 +920,7 @@ var samples3 = [
|
|
|
913
920
|
group: RECORDS,
|
|
914
921
|
data: {
|
|
915
922
|
items: [
|
|
916
|
-
{ recordRef: "r_1", plateNo: "\u6D59A12345", amountText: "9.25 \u5143", paidAtText: "08-14 10:
|
|
923
|
+
{ recordRef: "r_1", plateNo: "\u6D59A12345", amountText: "9.25 \u5143", paidAtText: "08-14 10:20", status: "PAID", orderCompleted: true, invoiceEligible: true, invoiceIssued: false },
|
|
917
924
|
{ recordRef: "r_2", plateNo: "\u6D59A12345", amountText: "150.00 \u5143", paidAtText: "08-12 22:31", status: "PAID", orderCompleted: true, invoiceEligible: true, invoiceIssued: true }
|
|
918
925
|
],
|
|
919
926
|
total: 2,
|
|
@@ -927,7 +934,7 @@ var samples3 = [
|
|
|
927
934
|
group: RECORDS,
|
|
928
935
|
data: {
|
|
929
936
|
items: [
|
|
930
|
-
{ recordRef: "r_1", plateNo: "\u6D59A12345", amountText: "9.25 \u5143", paidAtText: "08-14 10:
|
|
937
|
+
{ recordRef: "r_1", plateNo: "\u6D59A12345", amountText: "9.25 \u5143", paidAtText: "08-14 10:20", status: "PAID" },
|
|
931
938
|
{ recordRef: "r_2", plateNo: "\u6D59A12345", amountText: "15.00 \u5143", paidAtText: "08-13 19:20", status: "REFUNDED" },
|
|
932
939
|
{ recordRef: "r_3", plateNo: "\u6D59AD98765", amountText: "6.00 \u5143", paidAtText: "08-12 08:05", status: "UNKNOWN" }
|
|
933
940
|
],
|
|
@@ -945,7 +952,7 @@ var samples3 = [
|
|
|
945
952
|
recordRef: `r_${i}`,
|
|
946
953
|
plateNo: i % 2 ? "\u6D59AD98765" : "\u6D59A12345",
|
|
947
954
|
amountText: `${(i + 1) * 5}.00 \u5143`,
|
|
948
|
-
paidAtText: `08-${
|
|
955
|
+
paidAtText: `08-${13 - i} 10:00`,
|
|
949
956
|
status: "PAID",
|
|
950
957
|
parkName: "\u793A\u4F8B\u5E7F\u573A\u5730\u4E0B\u505C\u8F66\u573A"
|
|
951
958
|
})),
|
|
@@ -963,11 +970,11 @@ var samples3 = [
|
|
|
963
970
|
recordRef: "r_1",
|
|
964
971
|
plateNo: "\u6D59A12345",
|
|
965
972
|
amountText: "9.25 \u5143",
|
|
966
|
-
paidAtText: "08-14 10:
|
|
973
|
+
paidAtText: "08-14 10:20",
|
|
967
974
|
status: "PAID",
|
|
968
975
|
parkName: "\u793A\u4F8B\u5E7F\u573A\u5730\u4E0B\u505C\u8F66\u573A",
|
|
969
976
|
entryAtText: "08-14 07:12",
|
|
970
|
-
exitAtText: "08-14 10:
|
|
977
|
+
exitAtText: "08-14 10:25",
|
|
971
978
|
payOrderNoMasked: "2026****8891",
|
|
972
979
|
orderCompleted: true,
|
|
973
980
|
invoiceEligible: true,
|
|
@@ -987,7 +994,7 @@ var samples3 = [
|
|
|
987
994
|
group: RECORDS,
|
|
988
995
|
data: {
|
|
989
996
|
items: [
|
|
990
|
-
{ recordRef: "r_1", plateNo: "\u6D59A12345", amountText: "9.25 \u5143", paidAtText: "08-14 10:
|
|
997
|
+
{ recordRef: "r_1", plateNo: "\u6D59A12345", amountText: "9.25 \u5143", paidAtText: "08-14 10:20", status: "PAID", invoiceEligible: true, invoiceIssued: false }
|
|
991
998
|
],
|
|
992
999
|
total: 1,
|
|
993
1000
|
hasMore: false,
|
|
@@ -1010,7 +1017,7 @@ var meta3 = {
|
|
|
1010
1017
|
recordRef: "r_1",
|
|
1011
1018
|
plateNo: "\u6D59A12345",
|
|
1012
1019
|
amountText: "9.25 \u5143",
|
|
1013
|
-
paidAtText: "08-14 10:
|
|
1020
|
+
paidAtText: "08-14 10:20",
|
|
1014
1021
|
status: "PAID",
|
|
1015
1022
|
orderCompleted: true,
|
|
1016
1023
|
invoiceEligible: true,
|
package/dist/index.js
CHANGED
package/dist/server/index.d.ts
CHANGED
|
@@ -107,9 +107,9 @@ declare const parkingCards: {
|
|
|
107
107
|
membership: zod.ZodOptional<zod.ZodObject<{
|
|
108
108
|
state: zod.ZodEnum<["unauthenticated", "unknown", "active", "not_enrolled", "closed", "unavailable"]>;
|
|
109
109
|
}, "strip", zod.ZodTypeAny, {
|
|
110
|
-
state: "unknown" | "
|
|
110
|
+
state: "unknown" | "unavailable" | "unauthenticated" | "active" | "not_enrolled" | "closed";
|
|
111
111
|
}, {
|
|
112
|
-
state: "unknown" | "
|
|
112
|
+
state: "unknown" | "unavailable" | "unauthenticated" | "active" | "not_enrolled" | "closed";
|
|
113
113
|
}>>;
|
|
114
114
|
}, "strip", zod.ZodTypeAny, {
|
|
115
115
|
bound: {
|
|
@@ -119,7 +119,7 @@ declare const parkingCards: {
|
|
|
119
119
|
}[];
|
|
120
120
|
message?: string | undefined;
|
|
121
121
|
membership?: {
|
|
122
|
-
state: "unknown" | "
|
|
122
|
+
state: "unknown" | "unavailable" | "unauthenticated" | "active" | "not_enrolled" | "closed";
|
|
123
123
|
} | undefined;
|
|
124
124
|
}, {
|
|
125
125
|
bound: {
|
|
@@ -129,7 +129,7 @@ declare const parkingCards: {
|
|
|
129
129
|
}[];
|
|
130
130
|
message?: string | undefined;
|
|
131
131
|
membership?: {
|
|
132
|
-
state: "unknown" | "
|
|
132
|
+
state: "unknown" | "unavailable" | "unauthenticated" | "active" | "not_enrolled" | "closed";
|
|
133
133
|
} | undefined;
|
|
134
134
|
}>>;
|
|
135
135
|
readonly 'parking-info': _tbox_cn_app_contracts.CardMeta<zod.ZodObject<{
|
|
@@ -169,11 +169,11 @@ declare const parkingCards: {
|
|
|
169
169
|
name: zod.ZodString;
|
|
170
170
|
amountText: zod.ZodString;
|
|
171
171
|
}, "strip", zod.ZodTypeAny, {
|
|
172
|
-
amountText: string;
|
|
173
172
|
name: string;
|
|
174
|
-
}, {
|
|
175
173
|
amountText: string;
|
|
174
|
+
}, {
|
|
176
175
|
name: string;
|
|
176
|
+
amountText: string;
|
|
177
177
|
}>, "many">;
|
|
178
178
|
totalText: zod.ZodString;
|
|
179
179
|
discountText: zod.ZodOptional<zod.ZodString>;
|
|
@@ -182,10 +182,10 @@ declare const parkingCards: {
|
|
|
182
182
|
state: zod.ZodEnum<["unauthenticated", "unknown", "active", "not_enrolled", "closed", "unavailable"]>;
|
|
183
183
|
availablePoints: zod.ZodOptional<zod.ZodNumber>;
|
|
184
184
|
}, "strip", zod.ZodTypeAny, {
|
|
185
|
-
state: "unknown" | "
|
|
185
|
+
state: "unknown" | "unavailable" | "unauthenticated" | "active" | "not_enrolled" | "closed";
|
|
186
186
|
availablePoints?: number | undefined;
|
|
187
187
|
}, {
|
|
188
|
-
state: "unknown" | "
|
|
188
|
+
state: "unknown" | "unavailable" | "unauthenticated" | "active" | "not_enrolled" | "closed";
|
|
189
189
|
availablePoints?: number | undefined;
|
|
190
190
|
}>>;
|
|
191
191
|
paymentOptions: zod.ZodOptional<zod.ZodObject<{
|
|
@@ -284,7 +284,7 @@ declare const parkingCards: {
|
|
|
284
284
|
benefitRef: string;
|
|
285
285
|
autoSelected: boolean;
|
|
286
286
|
description?: string | undefined;
|
|
287
|
-
kind?: "
|
|
287
|
+
kind?: "other" | "points" | "discount" | "coupon" | undefined;
|
|
288
288
|
discountText?: string | undefined;
|
|
289
289
|
exclusiveWithKinds?: ("points" | "discount" | "coupon")[] | undefined;
|
|
290
290
|
}, {
|
|
@@ -292,7 +292,7 @@ declare const parkingCards: {
|
|
|
292
292
|
benefitRef: string;
|
|
293
293
|
autoSelected: boolean;
|
|
294
294
|
description?: string | undefined;
|
|
295
|
-
kind?: "
|
|
295
|
+
kind?: "other" | "points" | "discount" | "coupon" | undefined;
|
|
296
296
|
discountText?: string | undefined;
|
|
297
297
|
exclusiveWithKinds?: ("points" | "discount" | "coupon")[] | undefined;
|
|
298
298
|
}>, "many">;
|
|
@@ -335,7 +335,6 @@ declare const parkingCards: {
|
|
|
335
335
|
orderNo: zod.ZodOptional<zod.ZodString>;
|
|
336
336
|
}, "strip", zod.ZodTypeAny, {
|
|
337
337
|
kind: "pay" | "unpaid";
|
|
338
|
-
parkingStoreId?: string | undefined;
|
|
339
338
|
orderInfo?: {
|
|
340
339
|
orderType: number;
|
|
341
340
|
parkingId: string;
|
|
@@ -347,10 +346,10 @@ declare const parkingCards: {
|
|
|
347
346
|
entranceTime?: string | undefined;
|
|
348
347
|
supportDiscount?: string | undefined;
|
|
349
348
|
} | undefined;
|
|
349
|
+
parkingStoreId?: string | undefined;
|
|
350
350
|
orderNo?: string | undefined;
|
|
351
351
|
}, {
|
|
352
352
|
kind: "pay" | "unpaid";
|
|
353
|
-
parkingStoreId?: string | undefined;
|
|
354
353
|
orderInfo?: {
|
|
355
354
|
orderType: number;
|
|
356
355
|
parkingId: string;
|
|
@@ -362,6 +361,7 @@ declare const parkingCards: {
|
|
|
362
361
|
entranceTime?: string | undefined;
|
|
363
362
|
supportDiscount?: string | undefined;
|
|
364
363
|
} | undefined;
|
|
364
|
+
parkingStoreId?: string | undefined;
|
|
365
365
|
orderNo?: string | undefined;
|
|
366
366
|
}>>;
|
|
367
367
|
settlement: zod.ZodOptional<zod.ZodObject<{
|
|
@@ -369,18 +369,19 @@ declare const parkingCards: {
|
|
|
369
369
|
text: zod.ZodString;
|
|
370
370
|
}, "strip", zod.ZodTypeAny, {
|
|
371
371
|
text: string;
|
|
372
|
-
state: "
|
|
372
|
+
state: "failed" | "paying" | "paid";
|
|
373
373
|
}, {
|
|
374
374
|
text: string;
|
|
375
|
-
state: "
|
|
375
|
+
state: "failed" | "paying" | "paid";
|
|
376
376
|
}>>;
|
|
377
377
|
}, "strip", zod.ZodTypeAny, {
|
|
378
|
-
|
|
378
|
+
revision: number;
|
|
379
379
|
caveats: string[];
|
|
380
380
|
quoteRef: string;
|
|
381
|
+
plateNo: string;
|
|
381
382
|
feeItems: {
|
|
382
|
-
amountText: string;
|
|
383
383
|
name: string;
|
|
384
|
+
amountText: string;
|
|
384
385
|
}[];
|
|
385
386
|
totalText: string;
|
|
386
387
|
payableText: string;
|
|
@@ -394,18 +395,17 @@ declare const parkingCards: {
|
|
|
394
395
|
benefitRef: string;
|
|
395
396
|
autoSelected: boolean;
|
|
396
397
|
description?: string | undefined;
|
|
397
|
-
kind?: "
|
|
398
|
+
kind?: "other" | "points" | "discount" | "coupon" | undefined;
|
|
398
399
|
discountText?: string | undefined;
|
|
399
400
|
exclusiveWithKinds?: ("points" | "discount" | "coupon")[] | undefined;
|
|
400
401
|
}[];
|
|
401
|
-
revision: number;
|
|
402
|
-
membership?: {
|
|
403
|
-
state: "unknown" | "unauthenticated" | "active" | "not_enrolled" | "closed" | "unavailable";
|
|
404
|
-
availablePoints?: number | undefined;
|
|
405
|
-
} | undefined;
|
|
406
402
|
entryAtText?: string | undefined;
|
|
407
403
|
durationText?: string | undefined;
|
|
408
404
|
discountText?: string | undefined;
|
|
405
|
+
membership?: {
|
|
406
|
+
state: "unknown" | "unavailable" | "unauthenticated" | "active" | "not_enrolled" | "closed";
|
|
407
|
+
availablePoints?: number | undefined;
|
|
408
|
+
} | undefined;
|
|
409
409
|
paymentOptions?: {
|
|
410
410
|
direct: {
|
|
411
411
|
benefitRefs: string[];
|
|
@@ -424,7 +424,6 @@ declare const parkingCards: {
|
|
|
424
424
|
} | undefined;
|
|
425
425
|
payHandoff?: {
|
|
426
426
|
kind: "pay" | "unpaid";
|
|
427
|
-
parkingStoreId?: string | undefined;
|
|
428
427
|
orderInfo?: {
|
|
429
428
|
orderType: number;
|
|
430
429
|
parkingId: string;
|
|
@@ -436,19 +435,21 @@ declare const parkingCards: {
|
|
|
436
435
|
entranceTime?: string | undefined;
|
|
437
436
|
supportDiscount?: string | undefined;
|
|
438
437
|
} | undefined;
|
|
438
|
+
parkingStoreId?: string | undefined;
|
|
439
439
|
orderNo?: string | undefined;
|
|
440
440
|
} | undefined;
|
|
441
441
|
settlement?: {
|
|
442
442
|
text: string;
|
|
443
|
-
state: "
|
|
443
|
+
state: "failed" | "paying" | "paid";
|
|
444
444
|
} | undefined;
|
|
445
445
|
}, {
|
|
446
|
-
|
|
446
|
+
revision: number;
|
|
447
447
|
caveats: string[];
|
|
448
448
|
quoteRef: string;
|
|
449
|
+
plateNo: string;
|
|
449
450
|
feeItems: {
|
|
450
|
-
amountText: string;
|
|
451
451
|
name: string;
|
|
452
|
+
amountText: string;
|
|
452
453
|
}[];
|
|
453
454
|
totalText: string;
|
|
454
455
|
payableText: string;
|
|
@@ -462,18 +463,17 @@ declare const parkingCards: {
|
|
|
462
463
|
benefitRef: string;
|
|
463
464
|
autoSelected: boolean;
|
|
464
465
|
description?: string | undefined;
|
|
465
|
-
kind?: "
|
|
466
|
+
kind?: "other" | "points" | "discount" | "coupon" | undefined;
|
|
466
467
|
discountText?: string | undefined;
|
|
467
468
|
exclusiveWithKinds?: ("points" | "discount" | "coupon")[] | undefined;
|
|
468
469
|
}[];
|
|
469
|
-
revision: number;
|
|
470
|
-
membership?: {
|
|
471
|
-
state: "unknown" | "unauthenticated" | "active" | "not_enrolled" | "closed" | "unavailable";
|
|
472
|
-
availablePoints?: number | undefined;
|
|
473
|
-
} | undefined;
|
|
474
470
|
entryAtText?: string | undefined;
|
|
475
471
|
durationText?: string | undefined;
|
|
476
472
|
discountText?: string | undefined;
|
|
473
|
+
membership?: {
|
|
474
|
+
state: "unknown" | "unavailable" | "unauthenticated" | "active" | "not_enrolled" | "closed";
|
|
475
|
+
availablePoints?: number | undefined;
|
|
476
|
+
} | undefined;
|
|
477
477
|
paymentOptions?: {
|
|
478
478
|
direct: {
|
|
479
479
|
benefitRefs: string[];
|
|
@@ -492,7 +492,6 @@ declare const parkingCards: {
|
|
|
492
492
|
} | undefined;
|
|
493
493
|
payHandoff?: {
|
|
494
494
|
kind: "pay" | "unpaid";
|
|
495
|
-
parkingStoreId?: string | undefined;
|
|
496
495
|
orderInfo?: {
|
|
497
496
|
orderType: number;
|
|
498
497
|
parkingId: string;
|
|
@@ -504,11 +503,12 @@ declare const parkingCards: {
|
|
|
504
503
|
entranceTime?: string | undefined;
|
|
505
504
|
supportDiscount?: string | undefined;
|
|
506
505
|
} | undefined;
|
|
506
|
+
parkingStoreId?: string | undefined;
|
|
507
507
|
orderNo?: string | undefined;
|
|
508
508
|
} | undefined;
|
|
509
509
|
settlement?: {
|
|
510
510
|
text: string;
|
|
511
|
-
state: "
|
|
511
|
+
state: "failed" | "paying" | "paid";
|
|
512
512
|
} | undefined;
|
|
513
513
|
}>>;
|
|
514
514
|
readonly 'parking-payment-result': _tbox_cn_app_contracts.CardMeta<zod.ZodObject<{
|
|
@@ -531,28 +531,28 @@ declare const parkingCards: {
|
|
|
531
531
|
}>, "many">>;
|
|
532
532
|
}, "strip", zod.ZodTypeAny, {
|
|
533
533
|
message: string;
|
|
534
|
-
status: "
|
|
535
|
-
plateNo: string;
|
|
534
|
+
status: "UNKNOWN" | "PAID" | "CANCELLED";
|
|
536
535
|
paymentRef: string;
|
|
536
|
+
plateNo: string;
|
|
537
537
|
amountText?: string | undefined;
|
|
538
538
|
retryable?: boolean | undefined;
|
|
539
|
+
leaveNotice?: string | undefined;
|
|
539
540
|
details?: {
|
|
540
541
|
value: string;
|
|
541
542
|
label: string;
|
|
542
543
|
}[] | undefined;
|
|
543
|
-
leaveNotice?: string | undefined;
|
|
544
544
|
}, {
|
|
545
545
|
message: string;
|
|
546
|
-
status: "
|
|
547
|
-
plateNo: string;
|
|
546
|
+
status: "UNKNOWN" | "PAID" | "CANCELLED";
|
|
548
547
|
paymentRef: string;
|
|
548
|
+
plateNo: string;
|
|
549
549
|
amountText?: string | undefined;
|
|
550
550
|
retryable?: boolean | undefined;
|
|
551
|
+
leaveNotice?: string | undefined;
|
|
551
552
|
details?: {
|
|
552
553
|
value: string;
|
|
553
554
|
label: string;
|
|
554
555
|
}[] | undefined;
|
|
555
|
-
leaveNotice?: string | undefined;
|
|
556
556
|
}>>;
|
|
557
557
|
readonly 'parking-payment-records': _tbox_cn_app_contracts.CardMeta<zod.ZodObject<{
|
|
558
558
|
items: zod.ZodArray<zod.ZodObject<{
|
|
@@ -571,30 +571,30 @@ declare const parkingCards: {
|
|
|
571
571
|
invoiceEligible: zod.ZodOptional<zod.ZodBoolean>;
|
|
572
572
|
invoiceIssued: zod.ZodOptional<zod.ZodBoolean>;
|
|
573
573
|
}, "strip", zod.ZodTypeAny, {
|
|
574
|
-
status: "
|
|
574
|
+
status: "UNKNOWN" | "PAID" | "REFUNDED" | "CLOSED";
|
|
575
575
|
plateNo: string;
|
|
576
576
|
amountText: string;
|
|
577
577
|
recordRef: string;
|
|
578
578
|
paidAtText: string;
|
|
579
579
|
statusText?: string | undefined;
|
|
580
|
+
entryAtText?: string | undefined;
|
|
580
581
|
parkName?: string | undefined;
|
|
581
582
|
plazaName?: string | undefined;
|
|
582
|
-
entryAtText?: string | undefined;
|
|
583
583
|
exitAtText?: string | undefined;
|
|
584
584
|
payOrderNoMasked?: string | undefined;
|
|
585
585
|
orderCompleted?: boolean | undefined;
|
|
586
586
|
invoiceEligible?: boolean | undefined;
|
|
587
587
|
invoiceIssued?: boolean | undefined;
|
|
588
588
|
}, {
|
|
589
|
-
status: "
|
|
589
|
+
status: "UNKNOWN" | "PAID" | "REFUNDED" | "CLOSED";
|
|
590
590
|
plateNo: string;
|
|
591
591
|
amountText: string;
|
|
592
592
|
recordRef: string;
|
|
593
593
|
paidAtText: string;
|
|
594
594
|
statusText?: string | undefined;
|
|
595
|
+
entryAtText?: string | undefined;
|
|
595
596
|
parkName?: string | undefined;
|
|
596
597
|
plazaName?: string | undefined;
|
|
597
|
-
entryAtText?: string | undefined;
|
|
598
598
|
exitAtText?: string | undefined;
|
|
599
599
|
payOrderNoMasked?: string | undefined;
|
|
600
600
|
orderCompleted?: boolean | undefined;
|
|
@@ -606,45 +606,45 @@ declare const parkingCards: {
|
|
|
606
606
|
caveats: zod.ZodArray<zod.ZodString, "many">;
|
|
607
607
|
message: zod.ZodOptional<zod.ZodString>;
|
|
608
608
|
}, "strip", zod.ZodTypeAny, {
|
|
609
|
+
total: number;
|
|
610
|
+
hasMore: boolean;
|
|
609
611
|
items: {
|
|
610
|
-
status: "
|
|
612
|
+
status: "UNKNOWN" | "PAID" | "REFUNDED" | "CLOSED";
|
|
611
613
|
plateNo: string;
|
|
612
614
|
amountText: string;
|
|
613
615
|
recordRef: string;
|
|
614
616
|
paidAtText: string;
|
|
615
617
|
statusText?: string | undefined;
|
|
618
|
+
entryAtText?: string | undefined;
|
|
616
619
|
parkName?: string | undefined;
|
|
617
620
|
plazaName?: string | undefined;
|
|
618
|
-
entryAtText?: string | undefined;
|
|
619
621
|
exitAtText?: string | undefined;
|
|
620
622
|
payOrderNoMasked?: string | undefined;
|
|
621
623
|
orderCompleted?: boolean | undefined;
|
|
622
624
|
invoiceEligible?: boolean | undefined;
|
|
623
625
|
invoiceIssued?: boolean | undefined;
|
|
624
626
|
}[];
|
|
625
|
-
total: number;
|
|
626
|
-
hasMore: boolean;
|
|
627
627
|
caveats: string[];
|
|
628
628
|
message?: string | undefined;
|
|
629
629
|
}, {
|
|
630
|
+
total: number;
|
|
631
|
+
hasMore: boolean;
|
|
630
632
|
items: {
|
|
631
|
-
status: "
|
|
633
|
+
status: "UNKNOWN" | "PAID" | "REFUNDED" | "CLOSED";
|
|
632
634
|
plateNo: string;
|
|
633
635
|
amountText: string;
|
|
634
636
|
recordRef: string;
|
|
635
637
|
paidAtText: string;
|
|
636
638
|
statusText?: string | undefined;
|
|
639
|
+
entryAtText?: string | undefined;
|
|
637
640
|
parkName?: string | undefined;
|
|
638
641
|
plazaName?: string | undefined;
|
|
639
|
-
entryAtText?: string | undefined;
|
|
640
642
|
exitAtText?: string | undefined;
|
|
641
643
|
payOrderNoMasked?: string | undefined;
|
|
642
644
|
orderCompleted?: boolean | undefined;
|
|
643
645
|
invoiceEligible?: boolean | undefined;
|
|
644
646
|
invoiceIssued?: boolean | undefined;
|
|
645
647
|
}[];
|
|
646
|
-
total: number;
|
|
647
|
-
hasMore: boolean;
|
|
648
648
|
caveats: string[];
|
|
649
649
|
message?: string | undefined;
|
|
650
650
|
}>>;
|
|
@@ -665,11 +665,11 @@ declare const serverModule: {
|
|
|
665
665
|
name: zod.ZodString;
|
|
666
666
|
amountText: zod.ZodString;
|
|
667
667
|
}, "strip", zod.ZodTypeAny, {
|
|
668
|
-
amountText: string;
|
|
669
668
|
name: string;
|
|
670
|
-
}, {
|
|
671
669
|
amountText: string;
|
|
670
|
+
}, {
|
|
672
671
|
name: string;
|
|
672
|
+
amountText: string;
|
|
673
673
|
}>, "many">;
|
|
674
674
|
totalText: zod.ZodString;
|
|
675
675
|
discountText: zod.ZodOptional<zod.ZodString>;
|
|
@@ -678,10 +678,10 @@ declare const serverModule: {
|
|
|
678
678
|
state: zod.ZodEnum<["unauthenticated", "unknown", "active", "not_enrolled", "closed", "unavailable"]>;
|
|
679
679
|
availablePoints: zod.ZodOptional<zod.ZodNumber>;
|
|
680
680
|
}, "strip", zod.ZodTypeAny, {
|
|
681
|
-
state: "unknown" | "
|
|
681
|
+
state: "unknown" | "unavailable" | "unauthenticated" | "active" | "not_enrolled" | "closed";
|
|
682
682
|
availablePoints?: number | undefined;
|
|
683
683
|
}, {
|
|
684
|
-
state: "unknown" | "
|
|
684
|
+
state: "unknown" | "unavailable" | "unauthenticated" | "active" | "not_enrolled" | "closed";
|
|
685
685
|
availablePoints?: number | undefined;
|
|
686
686
|
}>>;
|
|
687
687
|
paymentOptions: zod.ZodOptional<zod.ZodObject<{
|
|
@@ -780,7 +780,7 @@ declare const serverModule: {
|
|
|
780
780
|
benefitRef: string;
|
|
781
781
|
autoSelected: boolean;
|
|
782
782
|
description?: string | undefined;
|
|
783
|
-
kind?: "
|
|
783
|
+
kind?: "other" | "points" | "discount" | "coupon" | undefined;
|
|
784
784
|
discountText?: string | undefined;
|
|
785
785
|
exclusiveWithKinds?: ("points" | "discount" | "coupon")[] | undefined;
|
|
786
786
|
}, {
|
|
@@ -788,7 +788,7 @@ declare const serverModule: {
|
|
|
788
788
|
benefitRef: string;
|
|
789
789
|
autoSelected: boolean;
|
|
790
790
|
description?: string | undefined;
|
|
791
|
-
kind?: "
|
|
791
|
+
kind?: "other" | "points" | "discount" | "coupon" | undefined;
|
|
792
792
|
discountText?: string | undefined;
|
|
793
793
|
exclusiveWithKinds?: ("points" | "discount" | "coupon")[] | undefined;
|
|
794
794
|
}>, "many">;
|
|
@@ -831,7 +831,6 @@ declare const serverModule: {
|
|
|
831
831
|
orderNo: zod.ZodOptional<zod.ZodString>;
|
|
832
832
|
}, "strip", zod.ZodTypeAny, {
|
|
833
833
|
kind: "pay" | "unpaid";
|
|
834
|
-
parkingStoreId?: string | undefined;
|
|
835
834
|
orderInfo?: {
|
|
836
835
|
orderType: number;
|
|
837
836
|
parkingId: string;
|
|
@@ -843,10 +842,10 @@ declare const serverModule: {
|
|
|
843
842
|
entranceTime?: string | undefined;
|
|
844
843
|
supportDiscount?: string | undefined;
|
|
845
844
|
} | undefined;
|
|
845
|
+
parkingStoreId?: string | undefined;
|
|
846
846
|
orderNo?: string | undefined;
|
|
847
847
|
}, {
|
|
848
848
|
kind: "pay" | "unpaid";
|
|
849
|
-
parkingStoreId?: string | undefined;
|
|
850
849
|
orderInfo?: {
|
|
851
850
|
orderType: number;
|
|
852
851
|
parkingId: string;
|
|
@@ -858,6 +857,7 @@ declare const serverModule: {
|
|
|
858
857
|
entranceTime?: string | undefined;
|
|
859
858
|
supportDiscount?: string | undefined;
|
|
860
859
|
} | undefined;
|
|
860
|
+
parkingStoreId?: string | undefined;
|
|
861
861
|
orderNo?: string | undefined;
|
|
862
862
|
}>>;
|
|
863
863
|
settlement: zod.ZodOptional<zod.ZodObject<{
|
|
@@ -865,18 +865,19 @@ declare const serverModule: {
|
|
|
865
865
|
text: zod.ZodString;
|
|
866
866
|
}, "strip", zod.ZodTypeAny, {
|
|
867
867
|
text: string;
|
|
868
|
-
state: "
|
|
868
|
+
state: "failed" | "paying" | "paid";
|
|
869
869
|
}, {
|
|
870
870
|
text: string;
|
|
871
|
-
state: "
|
|
871
|
+
state: "failed" | "paying" | "paid";
|
|
872
872
|
}>>;
|
|
873
873
|
}, "strip", zod.ZodTypeAny, {
|
|
874
|
-
|
|
874
|
+
revision: number;
|
|
875
875
|
caveats: string[];
|
|
876
876
|
quoteRef: string;
|
|
877
|
+
plateNo: string;
|
|
877
878
|
feeItems: {
|
|
878
|
-
amountText: string;
|
|
879
879
|
name: string;
|
|
880
|
+
amountText: string;
|
|
880
881
|
}[];
|
|
881
882
|
totalText: string;
|
|
882
883
|
payableText: string;
|
|
@@ -890,18 +891,17 @@ declare const serverModule: {
|
|
|
890
891
|
benefitRef: string;
|
|
891
892
|
autoSelected: boolean;
|
|
892
893
|
description?: string | undefined;
|
|
893
|
-
kind?: "
|
|
894
|
+
kind?: "other" | "points" | "discount" | "coupon" | undefined;
|
|
894
895
|
discountText?: string | undefined;
|
|
895
896
|
exclusiveWithKinds?: ("points" | "discount" | "coupon")[] | undefined;
|
|
896
897
|
}[];
|
|
897
|
-
revision: number;
|
|
898
|
-
membership?: {
|
|
899
|
-
state: "unknown" | "unauthenticated" | "active" | "not_enrolled" | "closed" | "unavailable";
|
|
900
|
-
availablePoints?: number | undefined;
|
|
901
|
-
} | undefined;
|
|
902
898
|
entryAtText?: string | undefined;
|
|
903
899
|
durationText?: string | undefined;
|
|
904
900
|
discountText?: string | undefined;
|
|
901
|
+
membership?: {
|
|
902
|
+
state: "unknown" | "unavailable" | "unauthenticated" | "active" | "not_enrolled" | "closed";
|
|
903
|
+
availablePoints?: number | undefined;
|
|
904
|
+
} | undefined;
|
|
905
905
|
paymentOptions?: {
|
|
906
906
|
direct: {
|
|
907
907
|
benefitRefs: string[];
|
|
@@ -920,7 +920,6 @@ declare const serverModule: {
|
|
|
920
920
|
} | undefined;
|
|
921
921
|
payHandoff?: {
|
|
922
922
|
kind: "pay" | "unpaid";
|
|
923
|
-
parkingStoreId?: string | undefined;
|
|
924
923
|
orderInfo?: {
|
|
925
924
|
orderType: number;
|
|
926
925
|
parkingId: string;
|
|
@@ -932,19 +931,21 @@ declare const serverModule: {
|
|
|
932
931
|
entranceTime?: string | undefined;
|
|
933
932
|
supportDiscount?: string | undefined;
|
|
934
933
|
} | undefined;
|
|
934
|
+
parkingStoreId?: string | undefined;
|
|
935
935
|
orderNo?: string | undefined;
|
|
936
936
|
} | undefined;
|
|
937
937
|
settlement?: {
|
|
938
938
|
text: string;
|
|
939
|
-
state: "
|
|
939
|
+
state: "failed" | "paying" | "paid";
|
|
940
940
|
} | undefined;
|
|
941
941
|
}, {
|
|
942
|
-
|
|
942
|
+
revision: number;
|
|
943
943
|
caveats: string[];
|
|
944
944
|
quoteRef: string;
|
|
945
|
+
plateNo: string;
|
|
945
946
|
feeItems: {
|
|
946
|
-
amountText: string;
|
|
947
947
|
name: string;
|
|
948
|
+
amountText: string;
|
|
948
949
|
}[];
|
|
949
950
|
totalText: string;
|
|
950
951
|
payableText: string;
|
|
@@ -958,18 +959,17 @@ declare const serverModule: {
|
|
|
958
959
|
benefitRef: string;
|
|
959
960
|
autoSelected: boolean;
|
|
960
961
|
description?: string | undefined;
|
|
961
|
-
kind?: "
|
|
962
|
+
kind?: "other" | "points" | "discount" | "coupon" | undefined;
|
|
962
963
|
discountText?: string | undefined;
|
|
963
964
|
exclusiveWithKinds?: ("points" | "discount" | "coupon")[] | undefined;
|
|
964
965
|
}[];
|
|
965
|
-
revision: number;
|
|
966
|
-
membership?: {
|
|
967
|
-
state: "unknown" | "unauthenticated" | "active" | "not_enrolled" | "closed" | "unavailable";
|
|
968
|
-
availablePoints?: number | undefined;
|
|
969
|
-
} | undefined;
|
|
970
966
|
entryAtText?: string | undefined;
|
|
971
967
|
durationText?: string | undefined;
|
|
972
968
|
discountText?: string | undefined;
|
|
969
|
+
membership?: {
|
|
970
|
+
state: "unknown" | "unavailable" | "unauthenticated" | "active" | "not_enrolled" | "closed";
|
|
971
|
+
availablePoints?: number | undefined;
|
|
972
|
+
} | undefined;
|
|
973
973
|
paymentOptions?: {
|
|
974
974
|
direct: {
|
|
975
975
|
benefitRefs: string[];
|
|
@@ -988,7 +988,6 @@ declare const serverModule: {
|
|
|
988
988
|
} | undefined;
|
|
989
989
|
payHandoff?: {
|
|
990
990
|
kind: "pay" | "unpaid";
|
|
991
|
-
parkingStoreId?: string | undefined;
|
|
992
991
|
orderInfo?: {
|
|
993
992
|
orderType: number;
|
|
994
993
|
parkingId: string;
|
|
@@ -1000,11 +999,12 @@ declare const serverModule: {
|
|
|
1000
999
|
entranceTime?: string | undefined;
|
|
1001
1000
|
supportDiscount?: string | undefined;
|
|
1002
1001
|
} | undefined;
|
|
1002
|
+
parkingStoreId?: string | undefined;
|
|
1003
1003
|
orderNo?: string | undefined;
|
|
1004
1004
|
} | undefined;
|
|
1005
1005
|
settlement?: {
|
|
1006
1006
|
text: string;
|
|
1007
|
-
state: "
|
|
1007
|
+
state: "failed" | "paying" | "paid";
|
|
1008
1008
|
} | undefined;
|
|
1009
1009
|
}>>;
|
|
1010
1010
|
readonly 'parking-payment-result': _tbox_cn_app_contracts.CardMeta<zod.ZodObject<{
|
|
@@ -1027,28 +1027,28 @@ declare const serverModule: {
|
|
|
1027
1027
|
}>, "many">>;
|
|
1028
1028
|
}, "strip", zod.ZodTypeAny, {
|
|
1029
1029
|
message: string;
|
|
1030
|
-
status: "
|
|
1031
|
-
plateNo: string;
|
|
1030
|
+
status: "UNKNOWN" | "PAID" | "CANCELLED";
|
|
1032
1031
|
paymentRef: string;
|
|
1032
|
+
plateNo: string;
|
|
1033
1033
|
amountText?: string | undefined;
|
|
1034
1034
|
retryable?: boolean | undefined;
|
|
1035
|
+
leaveNotice?: string | undefined;
|
|
1035
1036
|
details?: {
|
|
1036
1037
|
value: string;
|
|
1037
1038
|
label: string;
|
|
1038
1039
|
}[] | undefined;
|
|
1039
|
-
leaveNotice?: string | undefined;
|
|
1040
1040
|
}, {
|
|
1041
1041
|
message: string;
|
|
1042
|
-
status: "
|
|
1043
|
-
plateNo: string;
|
|
1042
|
+
status: "UNKNOWN" | "PAID" | "CANCELLED";
|
|
1044
1043
|
paymentRef: string;
|
|
1044
|
+
plateNo: string;
|
|
1045
1045
|
amountText?: string | undefined;
|
|
1046
1046
|
retryable?: boolean | undefined;
|
|
1047
|
+
leaveNotice?: string | undefined;
|
|
1047
1048
|
details?: {
|
|
1048
1049
|
value: string;
|
|
1049
1050
|
label: string;
|
|
1050
1051
|
}[] | undefined;
|
|
1051
|
-
leaveNotice?: string | undefined;
|
|
1052
1052
|
}>>;
|
|
1053
1053
|
readonly 'parking-payment-records': _tbox_cn_app_contracts.CardMeta<zod.ZodObject<{
|
|
1054
1054
|
items: zod.ZodArray<zod.ZodObject<{
|
|
@@ -1067,30 +1067,30 @@ declare const serverModule: {
|
|
|
1067
1067
|
invoiceEligible: zod.ZodOptional<zod.ZodBoolean>;
|
|
1068
1068
|
invoiceIssued: zod.ZodOptional<zod.ZodBoolean>;
|
|
1069
1069
|
}, "strip", zod.ZodTypeAny, {
|
|
1070
|
-
status: "
|
|
1070
|
+
status: "UNKNOWN" | "PAID" | "REFUNDED" | "CLOSED";
|
|
1071
1071
|
plateNo: string;
|
|
1072
1072
|
amountText: string;
|
|
1073
1073
|
recordRef: string;
|
|
1074
1074
|
paidAtText: string;
|
|
1075
1075
|
statusText?: string | undefined;
|
|
1076
|
+
entryAtText?: string | undefined;
|
|
1076
1077
|
parkName?: string | undefined;
|
|
1077
1078
|
plazaName?: string | undefined;
|
|
1078
|
-
entryAtText?: string | undefined;
|
|
1079
1079
|
exitAtText?: string | undefined;
|
|
1080
1080
|
payOrderNoMasked?: string | undefined;
|
|
1081
1081
|
orderCompleted?: boolean | undefined;
|
|
1082
1082
|
invoiceEligible?: boolean | undefined;
|
|
1083
1083
|
invoiceIssued?: boolean | undefined;
|
|
1084
1084
|
}, {
|
|
1085
|
-
status: "
|
|
1085
|
+
status: "UNKNOWN" | "PAID" | "REFUNDED" | "CLOSED";
|
|
1086
1086
|
plateNo: string;
|
|
1087
1087
|
amountText: string;
|
|
1088
1088
|
recordRef: string;
|
|
1089
1089
|
paidAtText: string;
|
|
1090
1090
|
statusText?: string | undefined;
|
|
1091
|
+
entryAtText?: string | undefined;
|
|
1091
1092
|
parkName?: string | undefined;
|
|
1092
1093
|
plazaName?: string | undefined;
|
|
1093
|
-
entryAtText?: string | undefined;
|
|
1094
1094
|
exitAtText?: string | undefined;
|
|
1095
1095
|
payOrderNoMasked?: string | undefined;
|
|
1096
1096
|
orderCompleted?: boolean | undefined;
|
|
@@ -1102,45 +1102,45 @@ declare const serverModule: {
|
|
|
1102
1102
|
caveats: zod.ZodArray<zod.ZodString, "many">;
|
|
1103
1103
|
message: zod.ZodOptional<zod.ZodString>;
|
|
1104
1104
|
}, "strip", zod.ZodTypeAny, {
|
|
1105
|
+
total: number;
|
|
1106
|
+
hasMore: boolean;
|
|
1105
1107
|
items: {
|
|
1106
|
-
status: "
|
|
1108
|
+
status: "UNKNOWN" | "PAID" | "REFUNDED" | "CLOSED";
|
|
1107
1109
|
plateNo: string;
|
|
1108
1110
|
amountText: string;
|
|
1109
1111
|
recordRef: string;
|
|
1110
1112
|
paidAtText: string;
|
|
1111
1113
|
statusText?: string | undefined;
|
|
1114
|
+
entryAtText?: string | undefined;
|
|
1112
1115
|
parkName?: string | undefined;
|
|
1113
1116
|
plazaName?: string | undefined;
|
|
1114
|
-
entryAtText?: string | undefined;
|
|
1115
1117
|
exitAtText?: string | undefined;
|
|
1116
1118
|
payOrderNoMasked?: string | undefined;
|
|
1117
1119
|
orderCompleted?: boolean | undefined;
|
|
1118
1120
|
invoiceEligible?: boolean | undefined;
|
|
1119
1121
|
invoiceIssued?: boolean | undefined;
|
|
1120
1122
|
}[];
|
|
1121
|
-
total: number;
|
|
1122
|
-
hasMore: boolean;
|
|
1123
1123
|
caveats: string[];
|
|
1124
1124
|
message?: string | undefined;
|
|
1125
1125
|
}, {
|
|
1126
|
+
total: number;
|
|
1127
|
+
hasMore: boolean;
|
|
1126
1128
|
items: {
|
|
1127
|
-
status: "
|
|
1129
|
+
status: "UNKNOWN" | "PAID" | "REFUNDED" | "CLOSED";
|
|
1128
1130
|
plateNo: string;
|
|
1129
1131
|
amountText: string;
|
|
1130
1132
|
recordRef: string;
|
|
1131
1133
|
paidAtText: string;
|
|
1132
1134
|
statusText?: string | undefined;
|
|
1135
|
+
entryAtText?: string | undefined;
|
|
1133
1136
|
parkName?: string | undefined;
|
|
1134
1137
|
plazaName?: string | undefined;
|
|
1135
|
-
entryAtText?: string | undefined;
|
|
1136
1138
|
exitAtText?: string | undefined;
|
|
1137
1139
|
payOrderNoMasked?: string | undefined;
|
|
1138
1140
|
orderCompleted?: boolean | undefined;
|
|
1139
1141
|
invoiceEligible?: boolean | undefined;
|
|
1140
1142
|
invoiceIssued?: boolean | undefined;
|
|
1141
1143
|
}[];
|
|
1142
|
-
total: number;
|
|
1143
|
-
hasMore: boolean;
|
|
1144
1144
|
caveats: string[];
|
|
1145
1145
|
message?: string | undefined;
|
|
1146
1146
|
}>>;
|
|
@@ -1162,9 +1162,9 @@ declare const serverModule: {
|
|
|
1162
1162
|
membership: zod.ZodOptional<zod.ZodObject<{
|
|
1163
1163
|
state: zod.ZodEnum<["unauthenticated", "unknown", "active", "not_enrolled", "closed", "unavailable"]>;
|
|
1164
1164
|
}, "strip", zod.ZodTypeAny, {
|
|
1165
|
-
state: "unknown" | "
|
|
1165
|
+
state: "unknown" | "unavailable" | "unauthenticated" | "active" | "not_enrolled" | "closed";
|
|
1166
1166
|
}, {
|
|
1167
|
-
state: "unknown" | "
|
|
1167
|
+
state: "unknown" | "unavailable" | "unauthenticated" | "active" | "not_enrolled" | "closed";
|
|
1168
1168
|
}>>;
|
|
1169
1169
|
}, "strip", zod.ZodTypeAny, {
|
|
1170
1170
|
bound: {
|
|
@@ -1174,7 +1174,7 @@ declare const serverModule: {
|
|
|
1174
1174
|
}[];
|
|
1175
1175
|
message?: string | undefined;
|
|
1176
1176
|
membership?: {
|
|
1177
|
-
state: "unknown" | "
|
|
1177
|
+
state: "unknown" | "unavailable" | "unauthenticated" | "active" | "not_enrolled" | "closed";
|
|
1178
1178
|
} | undefined;
|
|
1179
1179
|
}, {
|
|
1180
1180
|
bound: {
|
|
@@ -1184,7 +1184,7 @@ declare const serverModule: {
|
|
|
1184
1184
|
}[];
|
|
1185
1185
|
message?: string | undefined;
|
|
1186
1186
|
membership?: {
|
|
1187
|
-
state: "unknown" | "
|
|
1187
|
+
state: "unknown" | "unavailable" | "unauthenticated" | "active" | "not_enrolled" | "closed";
|
|
1188
1188
|
} | undefined;
|
|
1189
1189
|
}>>;
|
|
1190
1190
|
readonly 'parking-info': _tbox_cn_app_contracts.CardMeta<zod.ZodObject<{
|
package/dist/server/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tbox.cn/app-module-parking",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.8",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "商圈停车模块:计费支付、车辆寻车、缴费记录与开票(codegen 源)。",
|
|
6
6
|
"exports": {
|
|
@@ -18,10 +18,10 @@
|
|
|
18
18
|
}
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@tbox.cn/app-contracts": "0.13.
|
|
22
|
-
"@tbox.cn/app-contracts-mall": "0.13.
|
|
21
|
+
"@tbox.cn/app-contracts": "0.13.3",
|
|
22
|
+
"@tbox.cn/app-contracts-mall": "0.13.2",
|
|
23
23
|
"@tbox.cn/app-agent-sdk-client": "0.2.0",
|
|
24
|
-
"@tbox.cn/app-agent-sdk-server": "0.3.
|
|
24
|
+
"@tbox.cn/app-agent-sdk-server": "0.3.1"
|
|
25
25
|
},
|
|
26
26
|
"peerDependencies": {
|
|
27
27
|
"zod": "3.25.76",
|
|
@@ -10,6 +10,8 @@ const meta: CardMeta<typeof parkingPaymentCardDataSchema> = {
|
|
|
10
10
|
sampleData: {
|
|
11
11
|
quoteRef: 'q_demo',
|
|
12
12
|
plateNo: '浙A12345',
|
|
13
|
+
entryAtText: '08-14 07:12',
|
|
14
|
+
durationText: '3 小时 05 分',
|
|
13
15
|
feeItems: [{ name: '停车费(3 小时)', amountText: '15.00 元' }],
|
|
14
16
|
totalText: '15.00 元',
|
|
15
17
|
discountText: '5.75 元',
|
|
@@ -83,6 +83,7 @@ export const samples: CardSample<ParkingPaymentCardData>[] = [
|
|
|
83
83
|
group: BASIC,
|
|
84
84
|
data: {
|
|
85
85
|
quoteRef: 'b_free', plateNo: '浙A12345', revision: 1,
|
|
86
|
+
entryAtText: '08-12 09:00', durationText: '28 分',
|
|
86
87
|
feeItems: [{ name: '停车费(0.5 小时)', amountText: '0.00 元' }],
|
|
87
88
|
totalText: '0.00 元', payableText: '0.00 元',
|
|
88
89
|
appliedBenefits: [], selectableBenefits: [POINTS_BENEFIT],
|
|
@@ -13,7 +13,7 @@ const meta: CardMeta<typeof parkingPaymentRecordsCardDataSchema> = {
|
|
|
13
13
|
recordRef: 'r_1',
|
|
14
14
|
plateNo: '浙A12345',
|
|
15
15
|
amountText: '9.25 元',
|
|
16
|
-
paidAtText: '08-14 10:
|
|
16
|
+
paidAtText: '08-14 10:20',
|
|
17
17
|
status: 'PAID',
|
|
18
18
|
orderCompleted: true,
|
|
19
19
|
invoiceEligible: true,
|
|
@@ -23,7 +23,7 @@ export const samples: CardSample<ParkingPaymentRecordsCardData>[] = [
|
|
|
23
23
|
group: RECORDS,
|
|
24
24
|
data: {
|
|
25
25
|
items: [
|
|
26
|
-
{ recordRef: 'r_1', plateNo: '浙A12345', amountText: '9.25 元', paidAtText: '08-14 10:
|
|
26
|
+
{ recordRef: 'r_1', plateNo: '浙A12345', amountText: '9.25 元', paidAtText: '08-14 10:20', status: 'PAID', orderCompleted: true, invoiceEligible: true, invoiceIssued: false },
|
|
27
27
|
{ recordRef: 'r_2', plateNo: '浙A12345', amountText: '150.00 元', paidAtText: '08-12 22:31', status: 'PAID', orderCompleted: true, invoiceEligible: true, invoiceIssued: true },
|
|
28
28
|
],
|
|
29
29
|
total: 2, hasMore: true, caveats: ['仅展示近 6 个月缴费记录'],
|
|
@@ -35,7 +35,7 @@ export const samples: CardSample<ParkingPaymentRecordsCardData>[] = [
|
|
|
35
35
|
group: RECORDS,
|
|
36
36
|
data: {
|
|
37
37
|
items: [
|
|
38
|
-
{ recordRef: 'r_1', plateNo: '浙A12345', amountText: '9.25 元', paidAtText: '08-14 10:
|
|
38
|
+
{ recordRef: 'r_1', plateNo: '浙A12345', amountText: '9.25 元', paidAtText: '08-14 10:20', status: 'PAID' },
|
|
39
39
|
{ recordRef: 'r_2', plateNo: '浙A12345', amountText: '15.00 元', paidAtText: '08-13 19:20', status: 'REFUNDED' },
|
|
40
40
|
{ recordRef: 'r_3', plateNo: '浙AD98765', amountText: '6.00 元', paidAtText: '08-12 08:05', status: 'UNKNOWN' },
|
|
41
41
|
],
|
|
@@ -49,7 +49,7 @@ export const samples: CardSample<ParkingPaymentRecordsCardData>[] = [
|
|
|
49
49
|
data: {
|
|
50
50
|
items: Array.from({ length: 7 }, (_, i) => ({
|
|
51
51
|
recordRef: `r_${i}`, plateNo: i % 2 ? '浙AD98765' : '浙A12345',
|
|
52
|
-
amountText: `${(i + 1) * 5}.00 元`, paidAtText: `08-${
|
|
52
|
+
amountText: `${(i + 1) * 5}.00 元`, paidAtText: `08-${13 - i} 10:00`,
|
|
53
53
|
status: 'PAID', parkName: '示例广场地下停车场',
|
|
54
54
|
})),
|
|
55
55
|
total: 7, hasMore: false, caveats: ['仅展示近 6 个月缴费记录'],
|
|
@@ -61,9 +61,9 @@ export const samples: CardSample<ParkingPaymentRecordsCardData>[] = [
|
|
|
61
61
|
group: RECORDS,
|
|
62
62
|
data: {
|
|
63
63
|
items: [{
|
|
64
|
-
recordRef: 'r_1', plateNo: '浙A12345', amountText: '9.25 元', paidAtText: '08-14 10:
|
|
64
|
+
recordRef: 'r_1', plateNo: '浙A12345', amountText: '9.25 元', paidAtText: '08-14 10:20',
|
|
65
65
|
status: 'PAID', parkName: '示例广场地下停车场',
|
|
66
|
-
entryAtText: '08-14 07:12', exitAtText: '08-14 10:
|
|
66
|
+
entryAtText: '08-14 07:12', exitAtText: '08-14 10:25', payOrderNoMasked: '2026****8891',
|
|
67
67
|
orderCompleted: true, invoiceEligible: true, invoiceIssued: false,
|
|
68
68
|
}],
|
|
69
69
|
total: 1, hasMore: false, caveats: ['仅展示近 6 个月缴费记录'],
|
|
@@ -78,7 +78,7 @@ export const samples: CardSample<ParkingPaymentRecordsCardData>[] = [
|
|
|
78
78
|
group: RECORDS,
|
|
79
79
|
data: {
|
|
80
80
|
items: [
|
|
81
|
-
{ recordRef: 'r_1', plateNo: '浙A12345', amountText: '9.25 元', paidAtText: '08-14 10:
|
|
81
|
+
{ recordRef: 'r_1', plateNo: '浙A12345', amountText: '9.25 元', paidAtText: '08-14 10:20', status: 'PAID', invoiceEligible: true, invoiceIssued: false },
|
|
82
82
|
],
|
|
83
83
|
total: 1, hasMore: false, caveats: ['仅展示近 6 个月缴费记录'],
|
|
84
84
|
},
|
|
@@ -17,6 +17,9 @@ const meta: CardMeta<typeof parkingPaymentResultCardDataSchema> = {
|
|
|
17
17
|
samples,
|
|
18
18
|
schemaVersion: 1,
|
|
19
19
|
order: 4,
|
|
20
|
+
// 降噪型预览隐藏(活跃出卡保留——queryParkingPaymentStatus/reconcile 收口链路照常出卡;2026-10-19 裁决):
|
|
21
|
+
// 仅 dev 预览目录默认过滤,恢复 = 删本标记
|
|
22
|
+
hidden: true,
|
|
20
23
|
};
|
|
21
24
|
|
|
22
25
|
export default meta;
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* parking-payment-result 附加预览样本(沉淀自 mall dev-gallery 停车场景画廊)。
|
|
3
3
|
* 方法论:见同目录 ../parking-payment/samples.ts 头注释。
|
|
4
|
+
* 叙事基线:与 ../parking-payment/samples.ts BASE 同一停车叙事——入场 08-14 07:12,
|
|
5
|
+
* 报价时已停 3 小时 05 分(10:17);三态回执 = 这张报价单的三种结局,
|
|
6
|
+
* 停车时长 = 缴费时间 − 入场时间(07:12)逐分吻合,金额对齐缴费卡应付(tests 守卫)。
|
|
4
7
|
*/
|
|
5
8
|
import type { CardSample } from '@tbox.cn/app-contracts';
|
|
6
9
|
import type { ParkingPaymentResultCardData } from '@tbox.cn/app-contracts-mall';
|
|
@@ -14,12 +17,12 @@ export const samples: CardSample<ParkingPaymentResultCardData>[] = [
|
|
|
14
17
|
group: RESULT,
|
|
15
18
|
data: {
|
|
16
19
|
paymentRef: 'PO12345678', plateNo: '浙A12345', status: 'PAID',
|
|
17
|
-
amountText: '
|
|
20
|
+
amountText: '9.25 元', message: '缴费成功,祝您出场顺利',
|
|
18
21
|
leaveNotice: '请在 15 分钟内离场,超时将重新计费',
|
|
19
22
|
details: [
|
|
20
23
|
{ label: '车牌', value: '浙A12345' },
|
|
21
|
-
{ label: '停车时长', value: '
|
|
22
|
-
{ label: '缴费时间', value: '今天
|
|
24
|
+
{ label: '停车时长', value: '3 小时 08 分' },
|
|
25
|
+
{ label: '缴费时间', value: '今天 10:20' },
|
|
23
26
|
],
|
|
24
27
|
},
|
|
25
28
|
},
|
|
@@ -32,8 +35,8 @@ export const samples: CardSample<ParkingPaymentResultCardData>[] = [
|
|
|
32
35
|
amountText: '9.25 元', message: '支付已取消,可重新发起缴费',
|
|
33
36
|
details: [
|
|
34
37
|
{ label: '车牌', value: '浙A12345' },
|
|
35
|
-
{ label: '停车时长', value: '
|
|
36
|
-
{ label: '缴费时间', value: '今天
|
|
38
|
+
{ label: '停车时长', value: '3 小时 10 分' },
|
|
39
|
+
{ label: '缴费时间', value: '今天 10:22' },
|
|
37
40
|
],
|
|
38
41
|
},
|
|
39
42
|
hidden: true,
|
|
@@ -47,7 +50,7 @@ export const samples: CardSample<ParkingPaymentResultCardData>[] = [
|
|
|
47
50
|
amountText: '15.00 元', message: '厂商对账中,请稍后再查询', retryable: true,
|
|
48
51
|
details: [
|
|
49
52
|
{ label: '车牌', value: '浙A12345' },
|
|
50
|
-
{ label: '停车时长', value: '3 小时
|
|
53
|
+
{ label: '停车时长', value: '3 小时 19 分' },
|
|
51
54
|
{ label: '缴费时间', value: '今天 10:31' },
|
|
52
55
|
],
|
|
53
56
|
},
|
|
@@ -84,6 +84,28 @@ describe('ParkingPaymentCard(范式卡)', () => {
|
|
|
84
84
|
expect(host.querySelector('.parking-payment__vehicle')).toBeNull();
|
|
85
85
|
});
|
|
86
86
|
|
|
87
|
+
it('时长与入场双缺省:hero 出兜底文案、摘要时长位显示 —(厂商缺 entryAt 的可达分支)', () => {
|
|
88
|
+
// 预览样本叙事基线化后(样本恒带入场/时长),该分支的覆盖归渲染测试承担
|
|
89
|
+
const withoutTiming = { ...baseData } as Partial<typeof baseData>;
|
|
90
|
+
delete withoutTiming.durationText;
|
|
91
|
+
delete withoutTiming.entryAtText;
|
|
92
|
+
const { host } = render(
|
|
93
|
+
<ParkingPaymentCard
|
|
94
|
+
data={withoutTiming as never}
|
|
95
|
+
cardId="c1"
|
|
96
|
+
isHistory={false}
|
|
97
|
+
actionTokens={{
|
|
98
|
+
'parking.confirm-payment': 'tok',
|
|
99
|
+
'parking.reprice': 'tok',
|
|
100
|
+
}}
|
|
101
|
+
/>,
|
|
102
|
+
);
|
|
103
|
+
expect(host.querySelector('.parking-payment__hero-main')?.textContent).toContain(
|
|
104
|
+
'停车费用以商场系统实时结果为准',
|
|
105
|
+
);
|
|
106
|
+
expect(host.querySelector('.parking-payment__summary')?.textContent).toContain('—');
|
|
107
|
+
});
|
|
108
|
+
|
|
87
109
|
it('按钮金额取当前报价,不读服务端投影的 paymentOptions', () => {
|
|
88
110
|
const { host } = render(
|
|
89
111
|
<ParkingPaymentCard
|
package/tests/samples.test.ts
CHANGED
|
@@ -72,3 +72,65 @@ describe('parking samples 双断言(样本即契约)', () => {
|
|
|
72
72
|
]);
|
|
73
73
|
});
|
|
74
74
|
});
|
|
75
|
+
|
|
76
|
+
describe('样本叙事自洽(回执 × 缴费卡 × 缴费记录同一停车叙事)', () => {
|
|
77
|
+
/** 基线入场时刻 08-14 07:12(真源 ../src/server/cards/parking-payment/samples.ts BASE)。 */
|
|
78
|
+
const ENTRY_MIN = 7 * 60 + 12;
|
|
79
|
+
/** 「X 小时 Y 分」→ 分钟。 */
|
|
80
|
+
const durationMinutes = (text: string) => {
|
|
81
|
+
const [h = '0', m = '0'] = text.match(/\d+/g) ?? [];
|
|
82
|
+
return Number(h) * 60 + Number(m);
|
|
83
|
+
};
|
|
84
|
+
/** 「今天 HH:mm」→ 当日分钟数。 */
|
|
85
|
+
const clockMinutes = (text: string) => {
|
|
86
|
+
const [hh = '0', mm = '0'] = text.match(/\d+/g) ?? [];
|
|
87
|
+
return Number(hh) * 60 + Number(mm);
|
|
88
|
+
};
|
|
89
|
+
|
|
90
|
+
it('回执三态:时长 = 缴费时间 − 入场(07:12)逐分吻合,金额对齐缴费卡应付', () => {
|
|
91
|
+
const cases = [
|
|
92
|
+
{ label: '缴费成功', amountText: '9.25 元', paidAtText: '今天 10:20' },
|
|
93
|
+
{ label: '支付取消', amountText: '9.25 元', paidAtText: '今天 10:22' },
|
|
94
|
+
{ label: '厂商确认中', amountText: '15.00 元', paidAtText: '今天 10:31' },
|
|
95
|
+
] as const;
|
|
96
|
+
for (const expected of cases) {
|
|
97
|
+
const sample = (resultMeta.samples ?? []).find((s) => s.label === expected.label);
|
|
98
|
+
expect(sample?.label, expected.label).toBe(expected.label);
|
|
99
|
+
expect(sample?.data.amountText, `${expected.label} 金额对齐缴费卡应付`).toBe(expected.amountText);
|
|
100
|
+
const duration = sample?.data.details?.find((d) => d.label === '停车时长')?.value ?? '';
|
|
101
|
+
expect(duration, `${expected.label} 时长须落在 3 小时档(与停车费(3 小时)同叙事)`).toMatch(
|
|
102
|
+
/^3 小时 \d{2} 分$/,
|
|
103
|
+
);
|
|
104
|
+
expect(durationMinutes(duration), `${expected.label} 时长 = 缴费时间 − 入场`).toBe(
|
|
105
|
+
clockMinutes(expected.paidAtText) - ENTRY_MIN,
|
|
106
|
+
);
|
|
107
|
+
expect(
|
|
108
|
+
sample?.data.details?.find((d) => d.label === '缴费时间')?.value,
|
|
109
|
+
`${expected.label} 缴费时间`,
|
|
110
|
+
).toBe(expected.paidAtText);
|
|
111
|
+
}
|
|
112
|
+
});
|
|
113
|
+
|
|
114
|
+
it('缴费记录 9.25 元样本与回执「缴费成功」为同一笔支付(08-14 10:20)', () => {
|
|
115
|
+
const initial = recordsMeta.sampleData.items.find((item) => item.amountText === '9.25 元');
|
|
116
|
+
expect(initial?.paidAtText, '初始态(sampleData)r_1 paidAtText').toBe('08-14 10:20');
|
|
117
|
+
for (const label of ['开票两态', '状态三色', '授权已过期', '历史卡·全量展开']) {
|
|
118
|
+
const sample = (recordsMeta.samples ?? []).find((s) => s.label === label);
|
|
119
|
+
const record = sample?.data.items.find((item) => item.amountText === '9.25 元');
|
|
120
|
+
expect(record?.paidAtText, `${label}/9.25 元记录 paidAtText`).toBe('08-14 10:20');
|
|
121
|
+
}
|
|
122
|
+
});
|
|
123
|
+
});
|
|
124
|
+
|
|
125
|
+
describe('卡级 hidden 标记守卫(预览策展)', () => {
|
|
126
|
+
it('支付结果卡降噪型(2026-10-19 裁决——出卡链路照常,恢复 = 删标记)', () => {
|
|
127
|
+
expect(resultMeta.hidden).toBe(true);
|
|
128
|
+
});
|
|
129
|
+
|
|
130
|
+
it('其余四卡不打卡级标(预览可见)', () => {
|
|
131
|
+
expect(paymentMeta.hidden).toBeUndefined();
|
|
132
|
+
expect(infoMeta.hidden).toBeUndefined();
|
|
133
|
+
expect(recordsMeta.hidden).toBeUndefined();
|
|
134
|
+
expect(vehicleMeta.hidden).toBeUndefined();
|
|
135
|
+
});
|
|
136
|
+
});
|