@voyantjs/checkout 0.19.0 → 0.20.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/routes.d.ts CHANGED
@@ -253,7 +253,7 @@ export declare function createCheckoutRoutes(options?: CheckoutRoutesOptions): i
253
253
  completedAt: string | null;
254
254
  paymentId: string | null;
255
255
  amountCents: number;
256
- targetType: "other" | "booking" | "order" | "invoice" | "booking_payment_schedule" | "booking_guarantee";
256
+ targetType: "other" | "booking" | "order" | "invoice" | "booking_payment_schedule" | "booking_guarantee" | "flight_order";
257
257
  targetId: string | null;
258
258
  orderId: string | null;
259
259
  invoiceId: string | null;
@@ -517,7 +517,7 @@ export declare function createCheckoutRoutes(options?: CheckoutRoutesOptions): i
517
517
  completedAt: string | null;
518
518
  paymentId: string | null;
519
519
  amountCents: number;
520
- targetType: "other" | "booking" | "order" | "invoice" | "booking_payment_schedule" | "booking_guarantee";
520
+ targetType: "other" | "booking" | "order" | "invoice" | "booking_payment_schedule" | "booking_guarantee" | "flight_order";
521
521
  targetId: string | null;
522
522
  orderId: string | null;
523
523
  invoiceId: string | null;
@@ -650,9 +650,20 @@ export declare function createCheckoutRoutes(options?: CheckoutRoutesOptions): i
650
650
  };
651
651
  };
652
652
  }, "/", "/collections/bootstrap">;
653
- export declare function createCheckoutAdminRoutes(): import("hono/hono-base").HonoBase<Env, {
654
- "/bookings/:bookingId/reminder-runs": {
655
- $get: {
653
+ export declare function createCheckoutAdminRoutes(options?: CheckoutRoutesOptions): import("hono/hono-base").HonoBase<Env, {
654
+ "/bookings/:bookingId/collection-plan": {
655
+ $post: {
656
+ input: {
657
+ param: {
658
+ bookingId: string;
659
+ };
660
+ };
661
+ output: {
662
+ error: string;
663
+ };
664
+ outputFormat: "json";
665
+ status: 404;
666
+ } | {
656
667
  input: {
657
668
  param: {
658
669
  bookingId: string;
@@ -660,35 +671,608 @@ export declare function createCheckoutAdminRoutes(): import("hono/hono-base").Ho
660
671
  };
661
672
  output: {
662
673
  data: {
663
- id: string;
664
- reminderRuleId: string;
665
- reminderRuleSlug: string | null;
666
- reminderRuleName: string | null;
667
- targetType: "booking_payment_schedule" | "invoice";
668
- targetId: string;
669
- bookingId: string | null;
670
- paymentSessionId: string | null;
671
- notificationDeliveryId: string | null;
672
- status: "queued" | "processing" | "sent" | "skipped" | "failed";
673
- deliveryStatus: "pending" | "sent" | "failed" | "cancelled" | null;
674
- channel: "email" | "sms" | null;
675
- provider: string | null;
676
- recipient: string | null;
677
- scheduledFor: string;
678
- processedAt: string;
679
- errorMessage: string | null;
680
- relativeDaysFromDueDate: number | null;
681
- createdAt: string;
682
- }[];
683
- total: number;
684
- limit: number;
685
- offset: number;
674
+ bookingId: string;
675
+ method: "card" | "bank_transfer";
676
+ stage: "initial" | "reminder" | "manual";
677
+ paymentSessionTarget: "schedule" | "invoice" | null;
678
+ documentType: "proforma" | "invoice" | null;
679
+ willCreateDefaultPaymentPlan: boolean;
680
+ selectedSchedule: {
681
+ id: string;
682
+ createdAt: string;
683
+ updatedAt: string;
684
+ status: "pending" | "expired" | "cancelled" | "paid" | "due" | "waived";
685
+ currency: string;
686
+ notes: string | null;
687
+ bookingId: string;
688
+ bookingItemId: string | null;
689
+ amountCents: number;
690
+ dueDate: string;
691
+ scheduleType: "other" | "deposit" | "installment" | "balance" | "hold";
692
+ } | null;
693
+ selectedInvoice: {
694
+ id: string;
695
+ createdAt: string;
696
+ updatedAt: string;
697
+ organizationId: string | null;
698
+ status: "void" | "draft" | "sent" | "partially_paid" | "paid" | "overdue";
699
+ issueDate: string;
700
+ currency: string;
701
+ notes: string | null;
702
+ bookingId: string;
703
+ personId: string | null;
704
+ baseCurrency: string | null;
705
+ fxRateSetId: string | null;
706
+ invoiceNumber: string;
707
+ invoiceType: "invoice" | "proforma" | "credit_note";
708
+ seriesId: string | null;
709
+ sequence: number | null;
710
+ templateId: string | null;
711
+ taxRegimeId: string | null;
712
+ language: string | null;
713
+ subtotalCents: number;
714
+ baseSubtotalCents: number | null;
715
+ taxCents: number;
716
+ baseTaxCents: number | null;
717
+ totalCents: number;
718
+ baseTotalCents: number | null;
719
+ paidCents: number;
720
+ basePaidCents: number | null;
721
+ balanceDueCents: number;
722
+ baseBalanceDueCents: number | null;
723
+ commissionPercent: number | null;
724
+ commissionAmountCents: number | null;
725
+ dueDate: string;
726
+ } | null;
727
+ amountCents: number;
728
+ currency: string;
729
+ recommendedAction: "create_bank_transfer_document" | "create_payment_session" | "create_invoice_then_payment_session" | "none";
730
+ };
686
731
  };
687
732
  outputFormat: "json";
688
733
  status: import("hono/utils/http-status").ContentfulStatusCode;
734
+ } | {
735
+ input: {
736
+ param: {
737
+ bookingId: string;
738
+ };
739
+ };
740
+ output: {
741
+ error: string;
742
+ };
743
+ outputFormat: "json";
744
+ status: 400;
689
745
  };
690
746
  };
691
- }, "/", "/bookings/:bookingId/reminder-runs">;
747
+ } & {
748
+ "/bookings/:bookingId/initiate-collection": {
749
+ $post: {
750
+ input: {
751
+ param: {
752
+ bookingId: string;
753
+ };
754
+ };
755
+ output: {
756
+ error: string;
757
+ };
758
+ outputFormat: "json";
759
+ status: 404;
760
+ } | {
761
+ input: {
762
+ param: {
763
+ bookingId: string;
764
+ };
765
+ };
766
+ output: {
767
+ data: {
768
+ plan: {
769
+ bookingId: string;
770
+ method: "card" | "bank_transfer";
771
+ stage: "initial" | "reminder" | "manual";
772
+ paymentSessionTarget: "schedule" | "invoice" | null;
773
+ documentType: "proforma" | "invoice" | null;
774
+ willCreateDefaultPaymentPlan: boolean;
775
+ selectedSchedule: {
776
+ id: string;
777
+ createdAt: string;
778
+ updatedAt: string;
779
+ status: "pending" | "expired" | "cancelled" | "paid" | "due" | "waived";
780
+ currency: string;
781
+ notes: string | null;
782
+ bookingId: string;
783
+ bookingItemId: string | null;
784
+ amountCents: number;
785
+ dueDate: string;
786
+ scheduleType: "other" | "deposit" | "installment" | "balance" | "hold";
787
+ } | null;
788
+ selectedInvoice: {
789
+ id: string;
790
+ createdAt: string;
791
+ updatedAt: string;
792
+ organizationId: string | null;
793
+ status: "void" | "draft" | "sent" | "partially_paid" | "paid" | "overdue";
794
+ issueDate: string;
795
+ currency: string;
796
+ notes: string | null;
797
+ bookingId: string;
798
+ personId: string | null;
799
+ baseCurrency: string | null;
800
+ fxRateSetId: string | null;
801
+ invoiceNumber: string;
802
+ invoiceType: "invoice" | "proforma" | "credit_note";
803
+ seriesId: string | null;
804
+ sequence: number | null;
805
+ templateId: string | null;
806
+ taxRegimeId: string | null;
807
+ language: string | null;
808
+ subtotalCents: number;
809
+ baseSubtotalCents: number | null;
810
+ taxCents: number;
811
+ baseTaxCents: number | null;
812
+ totalCents: number;
813
+ baseTotalCents: number | null;
814
+ paidCents: number;
815
+ basePaidCents: number | null;
816
+ balanceDueCents: number;
817
+ baseBalanceDueCents: number | null;
818
+ commissionPercent: number | null;
819
+ commissionAmountCents: number | null;
820
+ dueDate: string;
821
+ } | null;
822
+ amountCents: number;
823
+ currency: string;
824
+ recommendedAction: "create_bank_transfer_document" | "create_payment_session" | "create_invoice_then_payment_session" | "none";
825
+ };
826
+ invoice: {
827
+ id: string;
828
+ createdAt: string;
829
+ updatedAt: string;
830
+ organizationId: string | null;
831
+ status: "void" | "draft" | "sent" | "partially_paid" | "paid" | "overdue";
832
+ issueDate: string;
833
+ currency: string;
834
+ notes: string | null;
835
+ bookingId: string;
836
+ personId: string | null;
837
+ baseCurrency: string | null;
838
+ fxRateSetId: string | null;
839
+ invoiceNumber: string;
840
+ invoiceType: "invoice" | "proforma" | "credit_note";
841
+ seriesId: string | null;
842
+ sequence: number | null;
843
+ templateId: string | null;
844
+ taxRegimeId: string | null;
845
+ language: string | null;
846
+ subtotalCents: number;
847
+ baseSubtotalCents: number | null;
848
+ taxCents: number;
849
+ baseTaxCents: number | null;
850
+ totalCents: number;
851
+ baseTotalCents: number | null;
852
+ paidCents: number;
853
+ basePaidCents: number | null;
854
+ balanceDueCents: number;
855
+ baseBalanceDueCents: number | null;
856
+ commissionPercent: number | null;
857
+ commissionAmountCents: number | null;
858
+ dueDate: string;
859
+ } | null;
860
+ paymentSession: {
861
+ metadata: {
862
+ [x: string]: import("hono/utils/types").JSONValue;
863
+ } | null;
864
+ id: string;
865
+ createdAt: string;
866
+ updatedAt: string;
867
+ expiresAt: string | null;
868
+ status: "pending" | "expired" | "cancelled" | "failed" | "paid" | "requires_redirect" | "processing" | "authorized";
869
+ currency: string;
870
+ notes: string | null;
871
+ idempotencyKey: string | null;
872
+ provider: string | null;
873
+ bookingId: string | null;
874
+ expiredAt: string | null;
875
+ cancelledAt: string | null;
876
+ completedAt: string | null;
877
+ paymentId: string | null;
878
+ amountCents: number;
879
+ targetType: "other" | "booking" | "order" | "invoice" | "booking_payment_schedule" | "booking_guarantee" | "flight_order";
880
+ targetId: string | null;
881
+ orderId: string | null;
882
+ invoiceId: string | null;
883
+ bookingPaymentScheduleId: string | null;
884
+ paymentInstrumentId: string | null;
885
+ bookingGuaranteeId: string | null;
886
+ paymentAuthorizationId: string | null;
887
+ paymentCaptureId: string | null;
888
+ paymentMethod: "other" | "voucher" | "wallet" | "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "direct_bill" | null;
889
+ providerSessionId: string | null;
890
+ providerPaymentId: string | null;
891
+ externalReference: string | null;
892
+ clientReference: string | null;
893
+ payerPersonId: string | null;
894
+ payerOrganizationId: string | null;
895
+ payerEmail: string | null;
896
+ payerName: string | null;
897
+ redirectUrl: string | null;
898
+ returnUrl: string | null;
899
+ cancelUrl: string | null;
900
+ callbackUrl: string | null;
901
+ failedAt: string | null;
902
+ failureCode: string | null;
903
+ failureMessage: string | null;
904
+ providerPayload: {
905
+ [x: string]: import("hono/utils/types").JSONValue;
906
+ } | null;
907
+ } | null;
908
+ invoiceNotification: {
909
+ metadata: {
910
+ [x: string]: import("hono/utils/types").JSONValue;
911
+ } | null;
912
+ id: string;
913
+ createdAt: string;
914
+ updatedAt: string;
915
+ organizationId: string | null;
916
+ status: "pending" | "cancelled" | "failed" | "sent";
917
+ provider: string;
918
+ bookingId: string | null;
919
+ personId: string | null;
920
+ channel: "email" | "sms";
921
+ targetType: "organization" | "other" | "booking" | "invoice" | "booking_payment_schedule" | "booking_guarantee" | "person" | "payment_session";
922
+ targetId: string | null;
923
+ templateId: string | null;
924
+ invoiceId: string | null;
925
+ failedAt: string | null;
926
+ errorMessage: string | null;
927
+ subject: string | null;
928
+ sentAt: string | null;
929
+ fromAddress: string | null;
930
+ templateSlug: string | null;
931
+ paymentSessionId: string | null;
932
+ providerMessageId: string | null;
933
+ toAddress: string;
934
+ htmlBody: string | null;
935
+ textBody: string | null;
936
+ payloadData: {
937
+ [x: string]: import("hono/utils/types").JSONValue;
938
+ } | null;
939
+ scheduledFor: string | null;
940
+ } | null;
941
+ paymentSessionNotification: {
942
+ metadata: {
943
+ [x: string]: import("hono/utils/types").JSONValue;
944
+ } | null;
945
+ id: string;
946
+ createdAt: string;
947
+ updatedAt: string;
948
+ organizationId: string | null;
949
+ status: "pending" | "cancelled" | "failed" | "sent";
950
+ provider: string;
951
+ bookingId: string | null;
952
+ personId: string | null;
953
+ channel: "email" | "sms";
954
+ targetType: "organization" | "other" | "booking" | "invoice" | "booking_payment_schedule" | "booking_guarantee" | "person" | "payment_session";
955
+ targetId: string | null;
956
+ templateId: string | null;
957
+ invoiceId: string | null;
958
+ failedAt: string | null;
959
+ errorMessage: string | null;
960
+ subject: string | null;
961
+ sentAt: string | null;
962
+ fromAddress: string | null;
963
+ templateSlug: string | null;
964
+ paymentSessionId: string | null;
965
+ providerMessageId: string | null;
966
+ toAddress: string;
967
+ htmlBody: string | null;
968
+ textBody: string | null;
969
+ payloadData: {
970
+ [x: string]: import("hono/utils/types").JSONValue;
971
+ } | null;
972
+ scheduledFor: string | null;
973
+ } | null;
974
+ bankTransferInstructions: {
975
+ provider: string | null;
976
+ invoiceId: string;
977
+ invoiceNumber: string;
978
+ documentType: "invoice" | "proforma";
979
+ amountCents: number;
980
+ currency: string;
981
+ dueDate: string | null;
982
+ beneficiary: string;
983
+ iban: string;
984
+ bankName: string | null;
985
+ notes: string | null;
986
+ } | null;
987
+ providerStart: {
988
+ provider: string;
989
+ paymentSessionId: string;
990
+ redirectUrl: string | null;
991
+ externalReference: string | null;
992
+ providerSessionId: string | null;
993
+ providerPaymentId: string | null;
994
+ response: {
995
+ [x: string]: import("hono/utils/types").JSONValue;
996
+ } | null;
997
+ } | null;
998
+ };
999
+ };
1000
+ outputFormat: "json";
1001
+ status: 201;
1002
+ } | {
1003
+ input: {
1004
+ param: {
1005
+ bookingId: string;
1006
+ };
1007
+ };
1008
+ output: {
1009
+ error: string;
1010
+ };
1011
+ outputFormat: "json";
1012
+ status: 409;
1013
+ };
1014
+ };
1015
+ } & {
1016
+ "/collections/bootstrap": {
1017
+ $post: {
1018
+ input: {};
1019
+ output: {
1020
+ error: string;
1021
+ };
1022
+ outputFormat: "json";
1023
+ status: 404;
1024
+ } | {
1025
+ input: {};
1026
+ output: {
1027
+ data: {
1028
+ bookingId: string;
1029
+ sessionId: string;
1030
+ sourceType: "booking" | "session";
1031
+ intent: "deposit" | "balance" | "custom";
1032
+ plan: {
1033
+ bookingId: string;
1034
+ method: "card" | "bank_transfer";
1035
+ stage: "initial" | "reminder" | "manual";
1036
+ paymentSessionTarget: "schedule" | "invoice" | null;
1037
+ documentType: "proforma" | "invoice" | null;
1038
+ willCreateDefaultPaymentPlan: boolean;
1039
+ selectedSchedule: {
1040
+ id: string;
1041
+ createdAt: string;
1042
+ updatedAt: string;
1043
+ status: "pending" | "expired" | "cancelled" | "paid" | "due" | "waived";
1044
+ currency: string;
1045
+ notes: string | null;
1046
+ bookingId: string;
1047
+ bookingItemId: string | null;
1048
+ amountCents: number;
1049
+ dueDate: string;
1050
+ scheduleType: "other" | "deposit" | "installment" | "balance" | "hold";
1051
+ } | null;
1052
+ selectedInvoice: {
1053
+ id: string;
1054
+ createdAt: string;
1055
+ updatedAt: string;
1056
+ organizationId: string | null;
1057
+ status: "void" | "draft" | "sent" | "partially_paid" | "paid" | "overdue";
1058
+ issueDate: string;
1059
+ currency: string;
1060
+ notes: string | null;
1061
+ bookingId: string;
1062
+ personId: string | null;
1063
+ baseCurrency: string | null;
1064
+ fxRateSetId: string | null;
1065
+ invoiceNumber: string;
1066
+ invoiceType: "invoice" | "proforma" | "credit_note";
1067
+ seriesId: string | null;
1068
+ sequence: number | null;
1069
+ templateId: string | null;
1070
+ taxRegimeId: string | null;
1071
+ language: string | null;
1072
+ subtotalCents: number;
1073
+ baseSubtotalCents: number | null;
1074
+ taxCents: number;
1075
+ baseTaxCents: number | null;
1076
+ totalCents: number;
1077
+ baseTotalCents: number | null;
1078
+ paidCents: number;
1079
+ basePaidCents: number | null;
1080
+ balanceDueCents: number;
1081
+ baseBalanceDueCents: number | null;
1082
+ commissionPercent: number | null;
1083
+ commissionAmountCents: number | null;
1084
+ dueDate: string;
1085
+ } | null;
1086
+ amountCents: number;
1087
+ currency: string;
1088
+ recommendedAction: "create_bank_transfer_document" | "create_payment_session" | "create_invoice_then_payment_session" | "none";
1089
+ };
1090
+ invoice: {
1091
+ id: string;
1092
+ createdAt: string;
1093
+ updatedAt: string;
1094
+ organizationId: string | null;
1095
+ status: "void" | "draft" | "sent" | "partially_paid" | "paid" | "overdue";
1096
+ issueDate: string;
1097
+ currency: string;
1098
+ notes: string | null;
1099
+ bookingId: string;
1100
+ personId: string | null;
1101
+ baseCurrency: string | null;
1102
+ fxRateSetId: string | null;
1103
+ invoiceNumber: string;
1104
+ invoiceType: "invoice" | "proforma" | "credit_note";
1105
+ seriesId: string | null;
1106
+ sequence: number | null;
1107
+ templateId: string | null;
1108
+ taxRegimeId: string | null;
1109
+ language: string | null;
1110
+ subtotalCents: number;
1111
+ baseSubtotalCents: number | null;
1112
+ taxCents: number;
1113
+ baseTaxCents: number | null;
1114
+ totalCents: number;
1115
+ baseTotalCents: number | null;
1116
+ paidCents: number;
1117
+ basePaidCents: number | null;
1118
+ balanceDueCents: number;
1119
+ baseBalanceDueCents: number | null;
1120
+ commissionPercent: number | null;
1121
+ commissionAmountCents: number | null;
1122
+ dueDate: string;
1123
+ } | null;
1124
+ paymentSession: {
1125
+ metadata: {
1126
+ [x: string]: import("hono/utils/types").JSONValue;
1127
+ } | null;
1128
+ id: string;
1129
+ createdAt: string;
1130
+ updatedAt: string;
1131
+ expiresAt: string | null;
1132
+ status: "pending" | "expired" | "cancelled" | "failed" | "paid" | "requires_redirect" | "processing" | "authorized";
1133
+ currency: string;
1134
+ notes: string | null;
1135
+ idempotencyKey: string | null;
1136
+ provider: string | null;
1137
+ bookingId: string | null;
1138
+ expiredAt: string | null;
1139
+ cancelledAt: string | null;
1140
+ completedAt: string | null;
1141
+ paymentId: string | null;
1142
+ amountCents: number;
1143
+ targetType: "other" | "booking" | "order" | "invoice" | "booking_payment_schedule" | "booking_guarantee" | "flight_order";
1144
+ targetId: string | null;
1145
+ orderId: string | null;
1146
+ invoiceId: string | null;
1147
+ bookingPaymentScheduleId: string | null;
1148
+ paymentInstrumentId: string | null;
1149
+ bookingGuaranteeId: string | null;
1150
+ paymentAuthorizationId: string | null;
1151
+ paymentCaptureId: string | null;
1152
+ paymentMethod: "other" | "voucher" | "wallet" | "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "direct_bill" | null;
1153
+ providerSessionId: string | null;
1154
+ providerPaymentId: string | null;
1155
+ externalReference: string | null;
1156
+ clientReference: string | null;
1157
+ payerPersonId: string | null;
1158
+ payerOrganizationId: string | null;
1159
+ payerEmail: string | null;
1160
+ payerName: string | null;
1161
+ redirectUrl: string | null;
1162
+ returnUrl: string | null;
1163
+ cancelUrl: string | null;
1164
+ callbackUrl: string | null;
1165
+ failedAt: string | null;
1166
+ failureCode: string | null;
1167
+ failureMessage: string | null;
1168
+ providerPayload: {
1169
+ [x: string]: import("hono/utils/types").JSONValue;
1170
+ } | null;
1171
+ } | null;
1172
+ invoiceNotification: {
1173
+ metadata: {
1174
+ [x: string]: import("hono/utils/types").JSONValue;
1175
+ } | null;
1176
+ id: string;
1177
+ createdAt: string;
1178
+ updatedAt: string;
1179
+ organizationId: string | null;
1180
+ status: "pending" | "cancelled" | "failed" | "sent";
1181
+ provider: string;
1182
+ bookingId: string | null;
1183
+ personId: string | null;
1184
+ channel: "email" | "sms";
1185
+ targetType: "organization" | "other" | "booking" | "invoice" | "booking_payment_schedule" | "booking_guarantee" | "person" | "payment_session";
1186
+ targetId: string | null;
1187
+ templateId: string | null;
1188
+ invoiceId: string | null;
1189
+ failedAt: string | null;
1190
+ errorMessage: string | null;
1191
+ subject: string | null;
1192
+ sentAt: string | null;
1193
+ fromAddress: string | null;
1194
+ templateSlug: string | null;
1195
+ paymentSessionId: string | null;
1196
+ providerMessageId: string | null;
1197
+ toAddress: string;
1198
+ htmlBody: string | null;
1199
+ textBody: string | null;
1200
+ payloadData: {
1201
+ [x: string]: import("hono/utils/types").JSONValue;
1202
+ } | null;
1203
+ scheduledFor: string | null;
1204
+ } | null;
1205
+ paymentSessionNotification: {
1206
+ metadata: {
1207
+ [x: string]: import("hono/utils/types").JSONValue;
1208
+ } | null;
1209
+ id: string;
1210
+ createdAt: string;
1211
+ updatedAt: string;
1212
+ organizationId: string | null;
1213
+ status: "pending" | "cancelled" | "failed" | "sent";
1214
+ provider: string;
1215
+ bookingId: string | null;
1216
+ personId: string | null;
1217
+ channel: "email" | "sms";
1218
+ targetType: "organization" | "other" | "booking" | "invoice" | "booking_payment_schedule" | "booking_guarantee" | "person" | "payment_session";
1219
+ targetId: string | null;
1220
+ templateId: string | null;
1221
+ invoiceId: string | null;
1222
+ failedAt: string | null;
1223
+ errorMessage: string | null;
1224
+ subject: string | null;
1225
+ sentAt: string | null;
1226
+ fromAddress: string | null;
1227
+ templateSlug: string | null;
1228
+ paymentSessionId: string | null;
1229
+ providerMessageId: string | null;
1230
+ toAddress: string;
1231
+ htmlBody: string | null;
1232
+ textBody: string | null;
1233
+ payloadData: {
1234
+ [x: string]: import("hono/utils/types").JSONValue;
1235
+ } | null;
1236
+ scheduledFor: string | null;
1237
+ } | null;
1238
+ bankTransferInstructions: {
1239
+ provider: string | null;
1240
+ invoiceId: string;
1241
+ invoiceNumber: string;
1242
+ documentType: "invoice" | "proforma";
1243
+ amountCents: number;
1244
+ currency: string;
1245
+ dueDate: string | null;
1246
+ beneficiary: string;
1247
+ iban: string;
1248
+ bankName: string | null;
1249
+ notes: string | null;
1250
+ } | null;
1251
+ providerStart: {
1252
+ provider: string;
1253
+ paymentSessionId: string;
1254
+ redirectUrl: string | null;
1255
+ externalReference: string | null;
1256
+ providerSessionId: string | null;
1257
+ providerPaymentId: string | null;
1258
+ response: {
1259
+ [x: string]: import("hono/utils/types").JSONValue;
1260
+ } | null;
1261
+ } | null;
1262
+ };
1263
+ };
1264
+ outputFormat: "json";
1265
+ status: 201;
1266
+ } | {
1267
+ input: {};
1268
+ output: {
1269
+ error: string;
1270
+ };
1271
+ outputFormat: "json";
1272
+ status: 409;
1273
+ };
1274
+ };
1275
+ }, "/", "/collections/bootstrap">;
692
1276
  export declare const checkoutModule: Module;
693
1277
  export declare function createCheckoutHonoModule(options?: CheckoutRoutesOptions): HonoModule;
694
1278
  export declare function buildCheckoutRouteRuntime(bindings: Record<string, unknown>, options?: CheckoutRoutesOptions): CheckoutRouteRuntime;
@@ -1 +1 @@
1
- {"version":3,"file":"routes.d.ts","sourceRoot":"","sources":["../src/routes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAA;AAE7D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAA;AACvD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAA;AAEnE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAA;AAGjE,OAAO,EAEL,KAAK,2BAA2B,EAChC,KAAK,sBAAsB,EAC3B,KAAK,qBAAqB,EAI3B,MAAM,cAAc,CAAA;AAQrB,KAAK,G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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kCAO5E;AAED,eAAO,MAAM,cAAc,EAAE,MAE5B,CAAA;AAED,wBAAgB,wBAAwB,CAAC,OAAO,GAAE,qBAA0B,GAAG,UAAU,CAgBxF;AAED,wBAAgB,yBAAyB,CACvC,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EACjC,OAAO,GAAE,qBAA0B,GAClC,oBAAoB,CAQtB"}
package/dist/routes.js CHANGED
@@ -4,12 +4,12 @@ import { Hono } from "hono";
4
4
  import { bootstrapCheckoutCollection, initiateCheckoutCollection, listBookingReminderRuns, previewCheckoutCollection, } from "./service.js";
5
5
  import { bootstrapCheckoutCollectionSchema, checkoutReminderRunListQuerySchema, initiateCheckoutCollectionSchema, previewCheckoutCollectionSchema, } from "./validation.js";
6
6
  export const CHECKOUT_ROUTE_RUNTIME_CONTAINER_KEY = "providers.checkout.runtime";
7
- export function createCheckoutRoutes(options = {}) {
7
+ function attachCollectionRoutes(app, options) {
8
8
  function getRuntime(bindings, resolveFromContainer) {
9
9
  return (resolveFromContainer?.(CHECKOUT_ROUTE_RUNTIME_CONTAINER_KEY) ??
10
10
  buildCheckoutRouteRuntime(bindings, options));
11
11
  }
12
- return new Hono()
12
+ return app
13
13
  .post("/bookings/:bookingId/collection-plan", async (c) => {
14
14
  try {
15
15
  const plan = await previewCheckoutCollection(c.get("db"), c.req.param("bookingId"), await parseOptionalJsonBody(c, previewCheckoutCollectionSchema), options.policy);
@@ -60,11 +60,15 @@ export function createCheckoutRoutes(options = {}) {
60
60
  }
61
61
  });
62
62
  }
63
- export function createCheckoutAdminRoutes() {
64
- return new Hono().get("/bookings/:bookingId/reminder-runs", async (c) => {
63
+ export function createCheckoutRoutes(options = {}) {
64
+ return attachCollectionRoutes(new Hono(), options);
65
+ }
66
+ export function createCheckoutAdminRoutes(options = {}) {
67
+ const app = new Hono().get("/bookings/:bookingId/reminder-runs", async (c) => {
65
68
  const query = parseQuery(c, checkoutReminderRunListQuerySchema);
66
69
  return c.json(await listBookingReminderRuns(c.get("db"), c.req.param("bookingId"), query));
67
70
  });
71
+ return attachCollectionRoutes(app, options);
68
72
  }
69
73
  export const checkoutModule = {
70
74
  name: "checkout",
@@ -79,7 +83,7 @@ export function createCheckoutHonoModule(options = {}) {
79
83
  return {
80
84
  module,
81
85
  publicRoutes: createCheckoutRoutes(options),
82
- adminRoutes: createCheckoutAdminRoutes(),
86
+ adminRoutes: createCheckoutAdminRoutes(options),
83
87
  };
84
88
  }
85
89
  export function buildCheckoutRouteRuntime(bindings, options = {}) {
package/dist/service.d.ts CHANGED
@@ -34,7 +34,12 @@ export interface CheckoutBankTransferDetails {
34
34
  beneficiary: string;
35
35
  iban: string;
36
36
  bankName?: string | null;
37
- currency?: string | null;
37
+ /**
38
+ * Deploy-wide instructions appended to every bank-transfer block (e.g.
39
+ * "Please reference your invoice number in the wire memo"). Per-call
40
+ * notes from `initiateCheckoutCollection({ notes })` take precedence —
41
+ * use this slot for boilerplate, not booking-specific content.
42
+ */
38
43
  notes?: string | null;
39
44
  }
40
45
  export interface CheckoutProviderStartResult {
@@ -1 +1 @@
1
- {"version":3,"file":"service.d.ts","sourceRoot":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,QAAQ,EAAE,UAAU,GAAG,SAAS,GAAG,SAAS,EAC5C,OAAO,EAAE,qBAAqB,0BAM/B;AAmPD,wBAAsB,yBAAyB,CAC7C,EAAE,EAAE,kBAAkB,EACtB,SAAS,EAAE,MAAM,EACjB,KAAK,EAAE,8BAA8B,EACrC,OAAO,GAAE,qBAA0B,GAClC,OAAO,CAAC,sBAAsB,GAAG,IAAI,CAAC,CA4ExC;AAkED,wBAAsB,0BAA0B,CAC9C,EAAE,EAAE,kBAAkB,EACtB,SAAS,EAAE,MAAM,EACjB,KAAK,EAAE,+BAA+B,EACtC,OAAO,GAAE,qBAA0B,EACnC,UAAU,CAAC,EAAE,mBAAmB,EAChC,OAAO,GAAE,sBAA2B,GACnC,OAAO,CAAC,2BAA2B,GAAG,IAAI,CAAC,CA8I7C;AAED,wBAAsB,2BAA2B,CAC/C,EAAE,EAAE,kBAAkB,EACtB,KAAK,EAAE,gCAAgC,EACvC,OAAO,GAAE,qBAA0B,EACnC,UAAU,CAAC,EAAE,mBAAmB,EAChC,OAAO,GAAE,sBAA2B,GACnC,OAAO,CAAC,8BAA8B,GAAG,IAAI,CAAC,CAoChD;AAED,wBAAsB,uBAAuB,CAC3C,EAAE,EAAE,kBAAkB,EACtB,SAAS,EAAE,MAAM,EACjB,KAAK,EAAE,4BAA4B,GAClC,OAAO,CAAC,uBAAuB,CAAC,CAwElC"}
package/dist/service.js CHANGED
@@ -101,7 +101,7 @@ function resolveCheckoutSubject(input) {
101
101
  function toInvoiceDueDateTime(value) {
102
102
  return value ? `${value}T00:00:00.000Z` : null;
103
103
  }
104
- function buildBankTransferInstructions(invoice, details) {
104
+ function buildBankTransferInstructions(invoice, details, callNotes) {
105
105
  if (!details) {
106
106
  return null;
107
107
  }
@@ -111,12 +111,17 @@ function buildBankTransferInstructions(invoice, details) {
111
111
  invoiceNumber: invoice.invoiceNumber,
112
112
  documentType: invoice.invoiceType === "proforma" ? "proforma" : "invoice",
113
113
  amountCents: invoice.balanceDueCents,
114
- currency: details.currency ?? invoice.currency,
114
+ // Currency always tracks the invoice — the deploy-wide bank-transfer
115
+ // block can't predict what the customer is buying. EUR booking +
116
+ // RON-default env would have shown the wrong currency to the customer.
117
+ currency: invoice.currency,
115
118
  dueDate: toInvoiceDueDateTime(invoice.dueDate),
116
119
  beneficiary: details.beneficiary,
117
120
  iban: details.iban,
118
121
  bankName: details.bankName ?? null,
119
- notes: details.notes ?? null,
122
+ // Per-call notes win over deploy-wide boilerplate — the caller knows
123
+ // booking context (invoice number, due date, etc.) the env can't.
124
+ notes: callNotes ?? details.notes ?? null,
120
125
  };
121
126
  }
122
127
  async function loadBookingContext(db, bookingId) {
@@ -322,7 +327,7 @@ export async function initiateCheckoutCollection(db, bookingId, input, options =
322
327
  let providerStart = null;
323
328
  if (input.method === "bank_transfer") {
324
329
  invoice = await createCollectionInvoice(db, context, plan, input.notes ?? null);
325
- bankTransferInstructions = buildBankTransferInstructions(invoice, runtime.bankTransferDetails ?? null);
330
+ bankTransferInstructions = buildBankTransferInstructions(invoice, runtime.bankTransferDetails ?? null, input.notes ?? null);
326
331
  if (dispatcher && input.invoiceNotification) {
327
332
  invoiceNotification = await notificationsService.sendInvoiceNotification(db, dispatcher, invoice.id, input.invoiceNotification);
328
333
  }
@@ -608,6 +608,7 @@ export declare const initiatedCheckoutCollectionSchema: z.ZodObject<{
608
608
  invoice: "invoice";
609
609
  booking_payment_schedule: "booking_payment_schedule";
610
610
  booking_guarantee: "booking_guarantee";
611
+ flight_order: "flight_order";
611
612
  }>;
612
613
  targetId: z.ZodNullable<z.ZodString>;
613
614
  bookingId: z.ZodNullable<z.ZodString>;
@@ -651,6 +652,7 @@ export declare const initiatedCheckoutCollectionSchema: z.ZodObject<{
651
652
  completedAt: z.ZodNullable<z.ZodString>;
652
653
  failureCode: z.ZodNullable<z.ZodString>;
653
654
  failureMessage: z.ZodNullable<z.ZodString>;
655
+ notes: z.ZodNullable<z.ZodString>;
654
656
  }, z.core.$strip>>;
655
657
  invoiceNotification: z.ZodNullable<z.ZodObject<{
656
658
  id: z.ZodString;
@@ -804,6 +806,7 @@ export declare const bootstrappedCheckoutCollectionSchema: z.ZodObject<{
804
806
  invoice: "invoice";
805
807
  booking_payment_schedule: "booking_payment_schedule";
806
808
  booking_guarantee: "booking_guarantee";
809
+ flight_order: "flight_order";
807
810
  }>;
808
811
  targetId: z.ZodNullable<z.ZodString>;
809
812
  bookingId: z.ZodNullable<z.ZodString>;
@@ -847,6 +850,7 @@ export declare const bootstrappedCheckoutCollectionSchema: z.ZodObject<{
847
850
  completedAt: z.ZodNullable<z.ZodString>;
848
851
  failureCode: z.ZodNullable<z.ZodString>;
849
852
  failureMessage: z.ZodNullable<z.ZodString>;
853
+ notes: z.ZodNullable<z.ZodString>;
850
854
  }, z.core.$strip>>;
851
855
  invoiceNotification: z.ZodNullable<z.ZodObject<{
852
856
  id: z.ZodString;
@@ -1 +1 @@
1
- {"version":3,"file":"validation.d.ts","sourceRoot":"","sources":["../src/validation.ts"],"names":[],"mappings":"AAcA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,eAAO,MAAM,8BAA8B;;;EAAoC,CAAA;AAC/E,eAAO,MAAM,6BAA6B;;;;EAA4C,CAAA;AACtF,eAAO,MAAM,8BAA8B;;;;EAA2C,CAAA;AACtF,eAAO,MAAM,kCAAkC;;;EAAkC,CAAA;AACjF,eAAO,MAAM,iCAAiC;;;EAAkC,CAAA;AAChF,eAAO,MAAM,gCAAgC;;;iBAG3C,CAAA;AAQF,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAS1C,CAAA;AAEF,eAAO,MAAM,gCAAgC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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GAAG,CAAC,CAAC,KAAK,CACxD,OAAO,oCAAoC,CAC5C,CAAA;AACD,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gCAAgC,CAAC,CAAA;AACzF,MAAM,MAAM,sCAAsC,GAAG,CAAC,CAAC,KAAK,CAC1D,OAAO,sCAAsC,CAC9C,CAAA;AACD,MAAM,MAAM,iCAAiC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iCAAiC,CAAC,CAAA;AACjG,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kCAAkC,CAAC,CAAA;AAC7F,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@voyantjs/checkout",
3
- "version": "0.19.0",
3
+ "version": "0.20.0",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "exports": {
@@ -29,11 +29,11 @@
29
29
  "drizzle-orm": "^0.45.2",
30
30
  "hono": "^4.12.10",
31
31
  "zod": "^4.3.6",
32
- "@voyantjs/bookings": "0.19.0",
33
- "@voyantjs/core": "0.19.0",
34
- "@voyantjs/finance": "0.19.0",
35
- "@voyantjs/hono": "0.19.0",
36
- "@voyantjs/notifications": "0.19.0"
32
+ "@voyantjs/bookings": "0.20.0",
33
+ "@voyantjs/core": "0.20.0",
34
+ "@voyantjs/finance": "0.20.0",
35
+ "@voyantjs/hono": "0.20.0",
36
+ "@voyantjs/notifications": "0.20.0"
37
37
  },
38
38
  "devDependencies": {
39
39
  "typescript": "^6.0.2",