@voyantjs/finance 0.19.0 → 0.21.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/dist/index.d.ts +8 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +14 -4
- package/dist/payment-policy.d.ts +113 -0
- package/dist/payment-policy.d.ts.map +1 -0
- package/dist/payment-policy.js +193 -0
- package/dist/routes-documents.d.ts +2 -2
- package/dist/routes-public.d.ts +28 -20
- package/dist/routes-public.d.ts.map +1 -1
- package/dist/routes.d.ts +542 -43
- package/dist/routes.d.ts.map +1 -1
- package/dist/routes.js +120 -5
- package/dist/schema.d.ts +541 -9
- package/dist/schema.d.ts.map +1 -1
- package/dist/schema.js +85 -0
- package/dist/service-documents.d.ts +1 -1
- package/dist/service-documents.d.ts.map +1 -1
- package/dist/service-issue.d.ts +108 -0
- package/dist/service-issue.d.ts.map +1 -0
- package/dist/service-issue.js +57 -0
- package/dist/service-public.d.ts +13 -9
- package/dist/service-public.d.ts.map +1 -1
- package/dist/service-public.js +1 -0
- package/dist/service.d.ts +269 -49
- package/dist/service.d.ts.map +1 -1
- package/dist/service.js +278 -20
- package/dist/validation-billing.d.ts +109 -0
- package/dist/validation-billing.d.ts.map +1 -1
- package/dist/validation-billing.js +58 -0
- package/dist/validation-payments.d.ts +19 -16
- package/dist/validation-payments.d.ts.map +1 -1
- package/dist/validation-public.d.ts +5 -3
- package/dist/validation-public.d.ts.map +1 -1
- package/dist/validation-public.js +7 -0
- package/dist/validation-shared.d.ts +6 -5
- package/dist/validation-shared.d.ts.map +1 -1
- package/dist/validation-shared.js +1 -0
- package/package.json +7 -7
package/dist/routes-public.d.ts
CHANGED
|
@@ -221,7 +221,7 @@ export declare function createPublicFinanceRoutes(options?: PublicFinanceRouteOp
|
|
|
221
221
|
invoiceId: string;
|
|
222
222
|
invoiceNumber: string;
|
|
223
223
|
invoiceType: "invoice" | "proforma" | "credit_note";
|
|
224
|
-
status: "pending" | "
|
|
224
|
+
status: "pending" | "failed" | "completed" | "refunded";
|
|
225
225
|
paymentMethod: "other" | "voucher" | "wallet" | "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "direct_bill";
|
|
226
226
|
amountCents: number;
|
|
227
227
|
currency: string;
|
|
@@ -282,7 +282,7 @@ export declare function createPublicFinanceRoutes(options?: PublicFinanceRouteOp
|
|
|
282
282
|
id: string;
|
|
283
283
|
bookingPaymentScheduleId: string | null;
|
|
284
284
|
guaranteeType: "other" | "voucher" | "bank_transfer" | "credit_card" | "deposit" | "preauth" | "card_on_file" | "agency_letter";
|
|
285
|
-
status: "pending" | "active" | "
|
|
285
|
+
status: "pending" | "active" | "failed" | "expired" | "cancelled" | "released";
|
|
286
286
|
currency: string | null;
|
|
287
287
|
amountCents: number | null;
|
|
288
288
|
provider: string | null;
|
|
@@ -322,13 +322,13 @@ export declare function createPublicFinanceRoutes(options?: PublicFinanceRouteOp
|
|
|
322
322
|
output: {
|
|
323
323
|
data: {
|
|
324
324
|
id: string;
|
|
325
|
-
targetType: "other" | "booking" | "order" | "invoice" | "booking_payment_schedule" | "booking_guarantee";
|
|
325
|
+
targetType: "other" | "booking" | "order" | "invoice" | "booking_payment_schedule" | "booking_guarantee" | "flight_order";
|
|
326
326
|
targetId: string | null;
|
|
327
327
|
bookingId: string | null;
|
|
328
328
|
invoiceId: string | null;
|
|
329
329
|
bookingPaymentScheduleId: string | null;
|
|
330
330
|
bookingGuaranteeId: string | null;
|
|
331
|
-
status: "pending" | "
|
|
331
|
+
status: "pending" | "failed" | "expired" | "cancelled" | "paid" | "requires_redirect" | "processing" | "authorized";
|
|
332
332
|
provider: string | null;
|
|
333
333
|
providerSessionId: string | null;
|
|
334
334
|
providerPaymentId: string | null;
|
|
@@ -346,6 +346,7 @@ export declare function createPublicFinanceRoutes(options?: PublicFinanceRouteOp
|
|
|
346
346
|
completedAt: string | null;
|
|
347
347
|
failureCode: string | null;
|
|
348
348
|
failureMessage: string | null;
|
|
349
|
+
notes: string | null;
|
|
349
350
|
};
|
|
350
351
|
};
|
|
351
352
|
outputFormat: "json";
|
|
@@ -378,13 +379,13 @@ export declare function createPublicFinanceRoutes(options?: PublicFinanceRouteOp
|
|
|
378
379
|
output: {
|
|
379
380
|
data: {
|
|
380
381
|
id: string;
|
|
381
|
-
targetType: "other" | "booking" | "order" | "invoice" | "booking_payment_schedule" | "booking_guarantee";
|
|
382
|
+
targetType: "other" | "booking" | "order" | "invoice" | "booking_payment_schedule" | "booking_guarantee" | "flight_order";
|
|
382
383
|
targetId: string | null;
|
|
383
384
|
bookingId: string | null;
|
|
384
385
|
invoiceId: string | null;
|
|
385
386
|
bookingPaymentScheduleId: string | null;
|
|
386
387
|
bookingGuaranteeId: string | null;
|
|
387
|
-
status: "pending" | "
|
|
388
|
+
status: "pending" | "failed" | "expired" | "cancelled" | "paid" | "requires_redirect" | "processing" | "authorized";
|
|
388
389
|
provider: string | null;
|
|
389
390
|
providerSessionId: string | null;
|
|
390
391
|
providerPaymentId: string | null;
|
|
@@ -402,6 +403,7 @@ export declare function createPublicFinanceRoutes(options?: PublicFinanceRouteOp
|
|
|
402
403
|
completedAt: string | null;
|
|
403
404
|
failureCode: string | null;
|
|
404
405
|
failureMessage: string | null;
|
|
406
|
+
notes: string | null;
|
|
405
407
|
};
|
|
406
408
|
};
|
|
407
409
|
outputFormat: "json";
|
|
@@ -447,13 +449,13 @@ export declare function createPublicFinanceRoutes(options?: PublicFinanceRouteOp
|
|
|
447
449
|
output: {
|
|
448
450
|
data: {
|
|
449
451
|
id: string;
|
|
450
|
-
targetType: "other" | "booking" | "order" | "invoice" | "booking_payment_schedule" | "booking_guarantee";
|
|
452
|
+
targetType: "other" | "booking" | "order" | "invoice" | "booking_payment_schedule" | "booking_guarantee" | "flight_order";
|
|
451
453
|
targetId: string | null;
|
|
452
454
|
bookingId: string | null;
|
|
453
455
|
invoiceId: string | null;
|
|
454
456
|
bookingPaymentScheduleId: string | null;
|
|
455
457
|
bookingGuaranteeId: string | null;
|
|
456
|
-
status: "pending" | "
|
|
458
|
+
status: "pending" | "failed" | "expired" | "cancelled" | "paid" | "requires_redirect" | "processing" | "authorized";
|
|
457
459
|
provider: string | null;
|
|
458
460
|
providerSessionId: string | null;
|
|
459
461
|
providerPaymentId: string | null;
|
|
@@ -471,6 +473,7 @@ export declare function createPublicFinanceRoutes(options?: PublicFinanceRouteOp
|
|
|
471
473
|
completedAt: string | null;
|
|
472
474
|
failureCode: string | null;
|
|
473
475
|
failureMessage: string | null;
|
|
476
|
+
notes: string | null;
|
|
474
477
|
};
|
|
475
478
|
};
|
|
476
479
|
outputFormat: "json";
|
|
@@ -512,13 +515,13 @@ export declare function createPublicFinanceRoutes(options?: PublicFinanceRouteOp
|
|
|
512
515
|
output: {
|
|
513
516
|
data: {
|
|
514
517
|
id: string;
|
|
515
|
-
targetType: "other" | "booking" | "order" | "invoice" | "booking_payment_schedule" | "booking_guarantee";
|
|
518
|
+
targetType: "other" | "booking" | "order" | "invoice" | "booking_payment_schedule" | "booking_guarantee" | "flight_order";
|
|
516
519
|
targetId: string | null;
|
|
517
520
|
bookingId: string | null;
|
|
518
521
|
invoiceId: string | null;
|
|
519
522
|
bookingPaymentScheduleId: string | null;
|
|
520
523
|
bookingGuaranteeId: string | null;
|
|
521
|
-
status: "pending" | "
|
|
524
|
+
status: "pending" | "failed" | "expired" | "cancelled" | "paid" | "requires_redirect" | "processing" | "authorized";
|
|
522
525
|
provider: string | null;
|
|
523
526
|
providerSessionId: string | null;
|
|
524
527
|
providerPaymentId: string | null;
|
|
@@ -536,6 +539,7 @@ export declare function createPublicFinanceRoutes(options?: PublicFinanceRouteOp
|
|
|
536
539
|
completedAt: string | null;
|
|
537
540
|
failureCode: string | null;
|
|
538
541
|
failureMessage: string | null;
|
|
542
|
+
notes: string | null;
|
|
539
543
|
};
|
|
540
544
|
};
|
|
541
545
|
outputFormat: "json";
|
|
@@ -773,7 +777,7 @@ export declare const publicFinanceRoutes: import("hono/hono-base").HonoBase<Env,
|
|
|
773
777
|
invoiceId: string;
|
|
774
778
|
invoiceNumber: string;
|
|
775
779
|
invoiceType: "invoice" | "proforma" | "credit_note";
|
|
776
|
-
status: "pending" | "
|
|
780
|
+
status: "pending" | "failed" | "completed" | "refunded";
|
|
777
781
|
paymentMethod: "other" | "voucher" | "wallet" | "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "direct_bill";
|
|
778
782
|
amountCents: number;
|
|
779
783
|
currency: string;
|
|
@@ -834,7 +838,7 @@ export declare const publicFinanceRoutes: import("hono/hono-base").HonoBase<Env,
|
|
|
834
838
|
id: string;
|
|
835
839
|
bookingPaymentScheduleId: string | null;
|
|
836
840
|
guaranteeType: "other" | "voucher" | "bank_transfer" | "credit_card" | "deposit" | "preauth" | "card_on_file" | "agency_letter";
|
|
837
|
-
status: "pending" | "active" | "
|
|
841
|
+
status: "pending" | "active" | "failed" | "expired" | "cancelled" | "released";
|
|
838
842
|
currency: string | null;
|
|
839
843
|
amountCents: number | null;
|
|
840
844
|
provider: string | null;
|
|
@@ -874,13 +878,13 @@ export declare const publicFinanceRoutes: import("hono/hono-base").HonoBase<Env,
|
|
|
874
878
|
output: {
|
|
875
879
|
data: {
|
|
876
880
|
id: string;
|
|
877
|
-
targetType: "other" | "booking" | "order" | "invoice" | "booking_payment_schedule" | "booking_guarantee";
|
|
881
|
+
targetType: "other" | "booking" | "order" | "invoice" | "booking_payment_schedule" | "booking_guarantee" | "flight_order";
|
|
878
882
|
targetId: string | null;
|
|
879
883
|
bookingId: string | null;
|
|
880
884
|
invoiceId: string | null;
|
|
881
885
|
bookingPaymentScheduleId: string | null;
|
|
882
886
|
bookingGuaranteeId: string | null;
|
|
883
|
-
status: "pending" | "
|
|
887
|
+
status: "pending" | "failed" | "expired" | "cancelled" | "paid" | "requires_redirect" | "processing" | "authorized";
|
|
884
888
|
provider: string | null;
|
|
885
889
|
providerSessionId: string | null;
|
|
886
890
|
providerPaymentId: string | null;
|
|
@@ -898,6 +902,7 @@ export declare const publicFinanceRoutes: import("hono/hono-base").HonoBase<Env,
|
|
|
898
902
|
completedAt: string | null;
|
|
899
903
|
failureCode: string | null;
|
|
900
904
|
failureMessage: string | null;
|
|
905
|
+
notes: string | null;
|
|
901
906
|
};
|
|
902
907
|
};
|
|
903
908
|
outputFormat: "json";
|
|
@@ -930,13 +935,13 @@ export declare const publicFinanceRoutes: import("hono/hono-base").HonoBase<Env,
|
|
|
930
935
|
output: {
|
|
931
936
|
data: {
|
|
932
937
|
id: string;
|
|
933
|
-
targetType: "other" | "booking" | "order" | "invoice" | "booking_payment_schedule" | "booking_guarantee";
|
|
938
|
+
targetType: "other" | "booking" | "order" | "invoice" | "booking_payment_schedule" | "booking_guarantee" | "flight_order";
|
|
934
939
|
targetId: string | null;
|
|
935
940
|
bookingId: string | null;
|
|
936
941
|
invoiceId: string | null;
|
|
937
942
|
bookingPaymentScheduleId: string | null;
|
|
938
943
|
bookingGuaranteeId: string | null;
|
|
939
|
-
status: "pending" | "
|
|
944
|
+
status: "pending" | "failed" | "expired" | "cancelled" | "paid" | "requires_redirect" | "processing" | "authorized";
|
|
940
945
|
provider: string | null;
|
|
941
946
|
providerSessionId: string | null;
|
|
942
947
|
providerPaymentId: string | null;
|
|
@@ -954,6 +959,7 @@ export declare const publicFinanceRoutes: import("hono/hono-base").HonoBase<Env,
|
|
|
954
959
|
completedAt: string | null;
|
|
955
960
|
failureCode: string | null;
|
|
956
961
|
failureMessage: string | null;
|
|
962
|
+
notes: string | null;
|
|
957
963
|
};
|
|
958
964
|
};
|
|
959
965
|
outputFormat: "json";
|
|
@@ -999,13 +1005,13 @@ export declare const publicFinanceRoutes: import("hono/hono-base").HonoBase<Env,
|
|
|
999
1005
|
output: {
|
|
1000
1006
|
data: {
|
|
1001
1007
|
id: string;
|
|
1002
|
-
targetType: "other" | "booking" | "order" | "invoice" | "booking_payment_schedule" | "booking_guarantee";
|
|
1008
|
+
targetType: "other" | "booking" | "order" | "invoice" | "booking_payment_schedule" | "booking_guarantee" | "flight_order";
|
|
1003
1009
|
targetId: string | null;
|
|
1004
1010
|
bookingId: string | null;
|
|
1005
1011
|
invoiceId: string | null;
|
|
1006
1012
|
bookingPaymentScheduleId: string | null;
|
|
1007
1013
|
bookingGuaranteeId: string | null;
|
|
1008
|
-
status: "pending" | "
|
|
1014
|
+
status: "pending" | "failed" | "expired" | "cancelled" | "paid" | "requires_redirect" | "processing" | "authorized";
|
|
1009
1015
|
provider: string | null;
|
|
1010
1016
|
providerSessionId: string | null;
|
|
1011
1017
|
providerPaymentId: string | null;
|
|
@@ -1023,6 +1029,7 @@ export declare const publicFinanceRoutes: import("hono/hono-base").HonoBase<Env,
|
|
|
1023
1029
|
completedAt: string | null;
|
|
1024
1030
|
failureCode: string | null;
|
|
1025
1031
|
failureMessage: string | null;
|
|
1032
|
+
notes: string | null;
|
|
1026
1033
|
};
|
|
1027
1034
|
};
|
|
1028
1035
|
outputFormat: "json";
|
|
@@ -1064,13 +1071,13 @@ export declare const publicFinanceRoutes: import("hono/hono-base").HonoBase<Env,
|
|
|
1064
1071
|
output: {
|
|
1065
1072
|
data: {
|
|
1066
1073
|
id: string;
|
|
1067
|
-
targetType: "other" | "booking" | "order" | "invoice" | "booking_payment_schedule" | "booking_guarantee";
|
|
1074
|
+
targetType: "other" | "booking" | "order" | "invoice" | "booking_payment_schedule" | "booking_guarantee" | "flight_order";
|
|
1068
1075
|
targetId: string | null;
|
|
1069
1076
|
bookingId: string | null;
|
|
1070
1077
|
invoiceId: string | null;
|
|
1071
1078
|
bookingPaymentScheduleId: string | null;
|
|
1072
1079
|
bookingGuaranteeId: string | null;
|
|
1073
|
-
status: "pending" | "
|
|
1080
|
+
status: "pending" | "failed" | "expired" | "cancelled" | "paid" | "requires_redirect" | "processing" | "authorized";
|
|
1074
1081
|
provider: string | null;
|
|
1075
1082
|
providerSessionId: string | null;
|
|
1076
1083
|
providerPaymentId: string | null;
|
|
@@ -1088,6 +1095,7 @@ export declare const publicFinanceRoutes: import("hono/hono-base").HonoBase<Env,
|
|
|
1088
1095
|
completedAt: string | null;
|
|
1089
1096
|
failureCode: string | null;
|
|
1090
1097
|
failureMessage: string | null;
|
|
1098
|
+
notes: string | null;
|
|
1091
1099
|
};
|
|
1092
1100
|
};
|
|
1093
1101
|
outputFormat: "json";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"routes-public.d.ts","sourceRoot":"","sources":["../src/routes-public.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,GAAG,EAAY,MAAM,oBAAoB,CAAA;AASvD,MAAM,WAAW,yBAAyB;IACxC,0BAA0B,CAAC,EAAE,CAC3B,QAAQ,EAAE,OAAO,EACjB,UAAU,EAAE,MAAM,KACf,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,GAAG,MAAM,GAAG,IAAI,CAAA;CAC5C;AAUD,wBAAgB,yBAAyB,CAAC,OAAO,GAAE,yBAA8B
|
|
1
|
+
{"version":3,"file":"routes-public.d.ts","sourceRoot":"","sources":["../src/routes-public.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,GAAG,EAAY,MAAM,oBAAoB,CAAA;AASvD,MAAM,WAAW,yBAAyB;IACxC,0BAA0B,CAAC,EAAE,CAC3B,QAAQ,EAAE,OAAO,EACjB,UAAU,EAAE,MAAM,KACf,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,GAAG,MAAM,GAAG,IAAI,CAAA;CAC5C;AAUD,wBAAgB,yBAAyB,CAAC,OAAO,GAAE,yBAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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