@voyantjs/finance 0.28.1 → 0.29.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 +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/routes-public.d.ts +14 -14
- package/dist/routes.d.ts +123 -35
- package/dist/routes.d.ts.map +1 -1
- package/dist/routes.js +18 -1
- package/dist/schema.d.ts +6 -6
- package/dist/service-aggregates.js +2 -2
- package/dist/service-bookings-dual-create.d.ts +6 -4
- package/dist/service-bookings-dual-create.d.ts.map +1 -1
- package/dist/service-bookings-quick-create.d.ts +4 -3
- package/dist/service-bookings-quick-create.d.ts.map +1 -1
- package/dist/service-bookings-quick-create.js +8 -0
- package/dist/service-public.d.ts +6 -6
- package/dist/service.d.ts +86 -42
- package/dist/service.d.ts.map +1 -1
- package/dist/service.js +321 -2
- package/dist/validation-billing.d.ts +33 -0
- package/dist/validation-billing.d.ts.map +1 -1
- package/dist/validation-billing.js +18 -0
- package/dist/validation-payments.d.ts +106 -16
- package/dist/validation-payments.d.ts.map +1 -1
- package/dist/validation-payments.js +38 -0
- package/dist/validation-public.d.ts +5 -5
- package/dist/validation-shared.d.ts +6 -6
- package/package.json +7 -7
package/dist/index.d.ts
CHANGED
|
@@ -27,7 +27,7 @@ export { createFinanceAdminDocumentRoutes, type FinanceDocumentRouteOptions, typ
|
|
|
27
27
|
export { createFinanceAdminSettlementRoutes, type FinanceSettlementRouteOptions, type InvoiceSettlementPoller, } from "./routes-settlement.js";
|
|
28
28
|
export type { BookingGuarantee, BookingItemCommission, BookingItemTaxLine, BookingPaymentSchedule, CreditNote, CreditNoteLineItem, FinanceNote, Invoice, InvoiceExternalRef, InvoiceLineItem, InvoiceNumberSeries, InvoiceRendition, InvoiceTemplate, NewBookingGuarantee, NewBookingItemCommission, NewBookingItemTaxLine, NewBookingPaymentSchedule, NewCreditNote, NewCreditNoteLineItem, NewFinanceNote, NewInvoice, NewInvoiceExternalRef, NewInvoiceLineItem, NewInvoiceNumberSeries, NewInvoiceRendition, NewInvoiceTemplate, NewPayment, NewPaymentAuthorization, NewPaymentCapture, NewPaymentInstrument, NewPaymentSession, NewSupplierPayment, NewTaxClass, NewTaxRegime, NewVoucher, NewVoucherRedemption, Payment, PaymentAuthorization, PaymentCapture, PaymentInstrument, PaymentSession, SupplierPayment, TaxClass, TaxRegime, Voucher, VoucherRedemption, } from "./schema.js";
|
|
29
29
|
export { bookingGuarantees, bookingItemCommissions, bookingItemTaxLines, bookingPaymentSchedules, creditNoteLineItems, creditNotes, financeNotes, invoiceExternalRefs, invoiceLineItems, invoiceNumberSeries, invoiceRenditions, invoices, invoiceTemplates, paymentAuthorizations, paymentCaptures, paymentInstruments, paymentSessions, payments, supplierPayments, taxClasses, taxPolicyProfiles, taxPolicyRules, taxRegimes, voucherRedemptions, voucherSourceTypeEnum, voucherStatusEnum, vouchers, } from "./schema.js";
|
|
30
|
-
export type { CreateInvoiceFromBookingInput, InvoiceFromBookingData } from "./service.js";
|
|
30
|
+
export type { CreateInvoiceFromBookingInput, InvoiceFromBookingData, UnifiedPaymentRow, } from "./service.js";
|
|
31
31
|
export { financeService, renderInvoiceBody } from "./service.js";
|
|
32
32
|
export type { BookingDualCreatedEvent, DualCreateBookingInput, DualCreateBookingOutcome, DualCreateBookingResult, DualCreateBookingRuntime, } from "./service-bookings-dual-create.js";
|
|
33
33
|
export { dualCreateBooking, dualCreateBookingSchema, } from "./service-bookings-dual-create.js";
|
|
@@ -42,7 +42,7 @@ export { financeSettlementService } from "./service-settlement.js";
|
|
|
42
42
|
export { VoucherServiceError, vouchersService } from "./service-vouchers.js";
|
|
43
43
|
export { migrateVouchersFromPaymentInstruments, type VoucherMigrationOptions, type VoucherMigrationResult, type VoucherMigrationSkip, } from "./service-vouchers-migration.js";
|
|
44
44
|
export type { GeneratedInvoiceDocumentResult, GenerateInvoiceDocumentInput, PolledInvoiceSettlementResult, PollInvoiceSettlementInput, } from "./validation.js";
|
|
45
|
-
export { agingReportQuerySchema, allocateInvoiceNumberInputSchema, applyDefaultBookingPaymentPlanSchema, cancelPaymentSessionSchema, completePaymentSessionSchema, createPaymentSessionFromGuaranteeSchema, createPaymentSessionFromInvoiceSchema, createPaymentSessionFromScheduleSchema, expirePaymentSessionSchema, failPaymentSessionSchema, generatedInvoiceDocumentResultSchema, generateInvoiceDocumentInputSchema, insertBookingGuaranteeSchema, insertBookingItemCommissionSchema, insertBookingItemTaxLineSchema, insertBookingPaymentScheduleSchema, insertCreditNoteLineItemSchema, insertCreditNoteSchema, insertFinanceNoteSchema, insertInvoiceExternalRefSchema, insertInvoiceLineItemSchema, insertInvoiceNumberSeriesSchema, insertInvoiceRenditionSchema, insertInvoiceSchema, insertInvoiceTemplateSchema, insertPaymentAuthorizationSchema, insertPaymentCaptureSchema, insertPaymentInstrumentSchema, insertPaymentSchema, insertPaymentSessionSchema, insertSupplierPaymentSchema, insertTaxClassSchema, insertTaxPolicyProfileSchema, insertTaxPolicyRuleSchema, insertTaxRegimeSchema, invoiceFromBookingSchema, invoiceListQuerySchema, invoiceNumberSeriesListQuerySchema, invoiceTemplateListQuerySchema, markPaymentSessionRequiresRedirectSchema, paymentAuthorizationListQuerySchema, paymentCaptureListQuerySchema, paymentInstrumentListQuerySchema, paymentSessionListQuerySchema, polledInvoiceSettlementProviderResultSchema, polledInvoiceSettlementResultSchema, pollInvoiceSettlementInputSchema, profitabilityQuerySchema, renderInvoiceInputSchema, revenueReportQuerySchema, supplierPaymentListQuerySchema, taxClassListQuerySchema, taxPolicyProfileListQuerySchema, taxPolicyRuleListQuerySchema, taxRegimeListQuerySchema, updateBookingGuaranteeSchema, updateBookingItemCommissionSchema, updateBookingItemTaxLineSchema, updateBookingPaymentScheduleSchema, updateCreditNoteLineItemSchema, updateCreditNoteSchema, updateInvoiceExternalRefSchema, updateInvoiceLineItemSchema, updateInvoiceNumberSeriesSchema, updateInvoiceRenditionSchema, updateInvoiceSchema, updateInvoiceTemplateSchema, updatePaymentAuthorizationSchema, updatePaymentCaptureSchema, updatePaymentInstrumentSchema, updatePaymentSchema, updatePaymentSessionSchema, updateSupplierPaymentSchema, updateTaxClassSchema, updateTaxPolicyProfileSchema, updateTaxPolicyRuleSchema, updateTaxRegimeSchema, } from "./validation.js";
|
|
45
|
+
export { agingReportQuerySchema, allocateInvoiceNumberInputSchema, applyDefaultBookingPaymentPlanSchema, cancelPaymentSessionSchema, completePaymentSessionSchema, createPaymentSessionFromGuaranteeSchema, createPaymentSessionFromInvoiceSchema, createPaymentSessionFromScheduleSchema, expirePaymentSessionSchema, failPaymentSessionSchema, generatedInvoiceDocumentResultSchema, generateInvoiceDocumentInputSchema, insertBookingGuaranteeSchema, insertBookingItemCommissionSchema, insertBookingItemTaxLineSchema, insertBookingPaymentScheduleSchema, insertCreditNoteLineItemSchema, insertCreditNoteSchema, insertFinanceNoteSchema, insertInvoiceExternalRefSchema, insertInvoiceLineItemSchema, insertInvoiceNumberSeriesSchema, insertInvoiceRenditionSchema, insertInvoiceSchema, insertInvoiceTemplateSchema, insertPaymentAuthorizationSchema, insertPaymentCaptureSchema, insertPaymentInstrumentSchema, insertPaymentSchema, insertPaymentSessionSchema, insertSupplierPaymentSchema, insertTaxClassSchema, insertTaxPolicyProfileSchema, insertTaxPolicyRuleSchema, insertTaxRegimeSchema, invoiceFromBookingSchema, invoiceListQuerySchema, invoiceNumberSeriesListQuerySchema, invoiceTemplateListQuerySchema, markPaymentSessionRequiresRedirectSchema, paymentAuthorizationListQuerySchema, paymentCaptureListQuerySchema, paymentInstrumentListQuerySchema, paymentKindSchema, paymentListQuerySchema, paymentListSortDirSchema, paymentListSortFieldSchema, paymentSessionListQuerySchema, polledInvoiceSettlementProviderResultSchema, polledInvoiceSettlementResultSchema, pollInvoiceSettlementInputSchema, profitabilityQuerySchema, renderInvoiceInputSchema, revenueReportQuerySchema, supplierPaymentListQuerySchema, taxClassListQuerySchema, taxPolicyProfileListQuerySchema, taxPolicyRuleListQuerySchema, taxRegimeListQuerySchema, updateBookingGuaranteeSchema, updateBookingItemCommissionSchema, updateBookingItemTaxLineSchema, updateBookingPaymentScheduleSchema, updateCreditNoteLineItemSchema, updateCreditNoteSchema, updateInvoiceExternalRefSchema, updateInvoiceLineItemSchema, updateInvoiceNumberSeriesSchema, updateInvoiceRenditionSchema, updateInvoiceSchema, updateInvoiceTemplateSchema, updatePaymentAuthorizationSchema, updatePaymentCaptureSchema, updatePaymentInstrumentSchema, updatePaymentSchema, updatePaymentSessionSchema, updateSupplierPaymentSchema, updateTaxClassSchema, updateTaxPolicyProfileSchema, updateTaxPolicyRuleSchema, updateTaxRegimeSchema, } from "./validation.js";
|
|
46
46
|
export type { PublicBookingFinanceDocuments, PublicBookingFinancePayments, PublicBookingPaymentOptions, PublicFinanceBookingDocument, PublicFinanceBookingPayment, PublicFinanceDocumentLookup, PublicFinanceDocumentLookupQuery, PublicPaymentOptionsQuery, PublicPaymentSession, PublicStartPaymentSessionInput, PublicValidateVoucherInput, PublicVoucherValidationResult, } from "./validation-public.js";
|
|
47
47
|
export { publicBookingFinanceDocumentsSchema, publicBookingFinancePaymentsSchema, publicBookingPaymentOptionsSchema, publicFinanceBookingDocumentSchema, publicFinanceBookingPaymentSchema, publicFinanceDocumentAvailabilitySchema, publicFinanceDocumentFormatSchema, publicFinanceDocumentLookupQuerySchema, publicFinanceDocumentLookupSchema, publicFinanceInvoiceTypeSchema, publicPaymentOptionsQuerySchema, publicPaymentSessionSchema, publicStartPaymentSessionSchema, publicValidateVoucherSchema, publicVoucherValidationSchema, } from "./validation-public.js";
|
|
48
48
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAA;AAChE,OAAO,KAAK,EAAE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8BAA8B,EAC9B,kCAAkC,EAClC,8BAA8B,EAC9B,sBAAsB,EACtB,8BAA8B,EAC9B,2BAA2B,EAC3B,+BAA+B,EAC/B,4BAA4B,EAC5B,mBAAmB,EACnB,2BAA2B,EAC3B,gCAAgC,EAChC,0BAA0B,EAC1B,6BAA6B,EAC7B,mBAAmB,EACnB,0BAA0B,EAC1B,2BAA2B,EAC3B,oBAAoB,EACpB,4BAA4B,EAC5B,yBAAyB,EACzB,qBAAqB,GACtB,MAAM,iBAAiB,CAAA;AACxB,YAAY,EACV,6BAA6B,EAC7B,4BAA4B,EAC5B,2BAA2B,EAC3B,4BAA4B,EAC5B,2BAA2B,EAC3B,2BAA2B,EAC3B,gCAAgC,EAChC,yBAAyB,EACzB,oBAAoB,EACpB,8BAA8B,EAC9B,0BAA0B,EAC1B,6BAA6B,GAC9B,MAAM,wBAAwB,CAAA;AAC/B,OAAO,EACL,mCAAmC,EACnC,kCAAkC,EAClC,iCAAiC,EACjC,kCAAkC,EAClC,iCAAiC,EACjC,uCAAuC,EACvC,iCAAiC,EACjC,sCAAsC,EACtC,iCAAiC,EACjC,8BAA8B,EAC9B,+BAA+B,EAC/B,0BAA0B,EAC1B,+BAA+B,EAC/B,2BAA2B,EAC3B,6BAA6B,GAC9B,MAAM,wBAAwB,CAAA"}
|
package/dist/index.js
CHANGED
|
@@ -74,5 +74,5 @@ export { issueInvoiceFromBooking, issueProformaFromBooking } from "./service-iss
|
|
|
74
74
|
export { financeSettlementService } from "./service-settlement.js";
|
|
75
75
|
export { VoucherServiceError, vouchersService } from "./service-vouchers.js";
|
|
76
76
|
export { migrateVouchersFromPaymentInstruments, } from "./service-vouchers-migration.js";
|
|
77
|
-
export { agingReportQuerySchema, allocateInvoiceNumberInputSchema, applyDefaultBookingPaymentPlanSchema, cancelPaymentSessionSchema, completePaymentSessionSchema, createPaymentSessionFromGuaranteeSchema, createPaymentSessionFromInvoiceSchema, createPaymentSessionFromScheduleSchema, expirePaymentSessionSchema, failPaymentSessionSchema, generatedInvoiceDocumentResultSchema, generateInvoiceDocumentInputSchema, insertBookingGuaranteeSchema, insertBookingItemCommissionSchema, insertBookingItemTaxLineSchema, insertBookingPaymentScheduleSchema, insertCreditNoteLineItemSchema, insertCreditNoteSchema, insertFinanceNoteSchema, insertInvoiceExternalRefSchema, insertInvoiceLineItemSchema, insertInvoiceNumberSeriesSchema, insertInvoiceRenditionSchema, insertInvoiceSchema, insertInvoiceTemplateSchema, insertPaymentAuthorizationSchema, insertPaymentCaptureSchema, insertPaymentInstrumentSchema, insertPaymentSchema, insertPaymentSessionSchema, insertSupplierPaymentSchema, insertTaxClassSchema, insertTaxPolicyProfileSchema, insertTaxPolicyRuleSchema, insertTaxRegimeSchema, invoiceFromBookingSchema, invoiceListQuerySchema, invoiceNumberSeriesListQuerySchema, invoiceTemplateListQuerySchema, markPaymentSessionRequiresRedirectSchema, paymentAuthorizationListQuerySchema, paymentCaptureListQuerySchema, paymentInstrumentListQuerySchema, paymentSessionListQuerySchema, polledInvoiceSettlementProviderResultSchema, polledInvoiceSettlementResultSchema, pollInvoiceSettlementInputSchema, profitabilityQuerySchema, renderInvoiceInputSchema, revenueReportQuerySchema, supplierPaymentListQuerySchema, taxClassListQuerySchema, taxPolicyProfileListQuerySchema, taxPolicyRuleListQuerySchema, taxRegimeListQuerySchema, updateBookingGuaranteeSchema, updateBookingItemCommissionSchema, updateBookingItemTaxLineSchema, updateBookingPaymentScheduleSchema, updateCreditNoteLineItemSchema, updateCreditNoteSchema, updateInvoiceExternalRefSchema, updateInvoiceLineItemSchema, updateInvoiceNumberSeriesSchema, updateInvoiceRenditionSchema, updateInvoiceSchema, updateInvoiceTemplateSchema, updatePaymentAuthorizationSchema, updatePaymentCaptureSchema, updatePaymentInstrumentSchema, updatePaymentSchema, updatePaymentSessionSchema, updateSupplierPaymentSchema, updateTaxClassSchema, updateTaxPolicyProfileSchema, updateTaxPolicyRuleSchema, updateTaxRegimeSchema, } from "./validation.js";
|
|
77
|
+
export { agingReportQuerySchema, allocateInvoiceNumberInputSchema, applyDefaultBookingPaymentPlanSchema, cancelPaymentSessionSchema, completePaymentSessionSchema, createPaymentSessionFromGuaranteeSchema, createPaymentSessionFromInvoiceSchema, createPaymentSessionFromScheduleSchema, expirePaymentSessionSchema, failPaymentSessionSchema, generatedInvoiceDocumentResultSchema, generateInvoiceDocumentInputSchema, insertBookingGuaranteeSchema, insertBookingItemCommissionSchema, insertBookingItemTaxLineSchema, insertBookingPaymentScheduleSchema, insertCreditNoteLineItemSchema, insertCreditNoteSchema, insertFinanceNoteSchema, insertInvoiceExternalRefSchema, insertInvoiceLineItemSchema, insertInvoiceNumberSeriesSchema, insertInvoiceRenditionSchema, insertInvoiceSchema, insertInvoiceTemplateSchema, insertPaymentAuthorizationSchema, insertPaymentCaptureSchema, insertPaymentInstrumentSchema, insertPaymentSchema, insertPaymentSessionSchema, insertSupplierPaymentSchema, insertTaxClassSchema, insertTaxPolicyProfileSchema, insertTaxPolicyRuleSchema, insertTaxRegimeSchema, invoiceFromBookingSchema, invoiceListQuerySchema, invoiceNumberSeriesListQuerySchema, invoiceTemplateListQuerySchema, markPaymentSessionRequiresRedirectSchema, paymentAuthorizationListQuerySchema, paymentCaptureListQuerySchema, paymentInstrumentListQuerySchema, paymentKindSchema, paymentListQuerySchema, paymentListSortDirSchema, paymentListSortFieldSchema, paymentSessionListQuerySchema, polledInvoiceSettlementProviderResultSchema, polledInvoiceSettlementResultSchema, pollInvoiceSettlementInputSchema, profitabilityQuerySchema, renderInvoiceInputSchema, revenueReportQuerySchema, supplierPaymentListQuerySchema, taxClassListQuerySchema, taxPolicyProfileListQuerySchema, taxPolicyRuleListQuerySchema, taxRegimeListQuerySchema, updateBookingGuaranteeSchema, updateBookingItemCommissionSchema, updateBookingItemTaxLineSchema, updateBookingPaymentScheduleSchema, updateCreditNoteLineItemSchema, updateCreditNoteSchema, updateInvoiceExternalRefSchema, updateInvoiceLineItemSchema, updateInvoiceNumberSeriesSchema, updateInvoiceRenditionSchema, updateInvoiceSchema, updateInvoiceTemplateSchema, updatePaymentAuthorizationSchema, updatePaymentCaptureSchema, updatePaymentInstrumentSchema, updatePaymentSchema, updatePaymentSessionSchema, updateSupplierPaymentSchema, updateTaxClassSchema, updateTaxPolicyProfileSchema, updateTaxPolicyRuleSchema, updateTaxRegimeSchema, } from "./validation.js";
|
|
78
78
|
export { publicBookingFinanceDocumentsSchema, publicBookingFinancePaymentsSchema, publicBookingPaymentOptionsSchema, publicFinanceBookingDocumentSchema, publicFinanceBookingPaymentSchema, publicFinanceDocumentAvailabilitySchema, publicFinanceDocumentFormatSchema, publicFinanceDocumentLookupQuerySchema, publicFinanceDocumentLookupSchema, publicFinanceInvoiceTypeSchema, publicPaymentOptionsQuerySchema, publicPaymentSessionSchema, publicStartPaymentSessionSchema, publicValidateVoucherSchema, publicVoucherValidationSchema, } from "./validation-public.js";
|
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" | "completed" | "failed" | "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;
|
|
@@ -272,7 +272,7 @@ export declare function createPublicFinanceRoutes(options?: PublicFinanceRouteOp
|
|
|
272
272
|
schedules: {
|
|
273
273
|
id: string;
|
|
274
274
|
scheduleType: "other" | "deposit" | "installment" | "balance" | "hold";
|
|
275
|
-
status: "pending" | "
|
|
275
|
+
status: "pending" | "cancelled" | "expired" | "paid" | "due" | "waived";
|
|
276
276
|
dueDate: string;
|
|
277
277
|
currency: string;
|
|
278
278
|
amountCents: number;
|
|
@@ -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" | "
|
|
285
|
+
status: "pending" | "failed" | "cancelled" | "active" | "expired" | "released";
|
|
286
286
|
currency: string | null;
|
|
287
287
|
amountCents: number | null;
|
|
288
288
|
provider: string | null;
|
|
@@ -328,7 +328,7 @@ export declare function createPublicFinanceRoutes(options?: PublicFinanceRouteOp
|
|
|
328
328
|
invoiceId: string | null;
|
|
329
329
|
bookingPaymentScheduleId: string | null;
|
|
330
330
|
bookingGuaranteeId: string | null;
|
|
331
|
-
status: "pending" | "failed" | "
|
|
331
|
+
status: "pending" | "failed" | "cancelled" | "expired" | "paid" | "requires_redirect" | "processing" | "authorized";
|
|
332
332
|
provider: string | null;
|
|
333
333
|
providerSessionId: string | null;
|
|
334
334
|
providerPaymentId: string | null;
|
|
@@ -385,7 +385,7 @@ export declare function createPublicFinanceRoutes(options?: PublicFinanceRouteOp
|
|
|
385
385
|
invoiceId: string | null;
|
|
386
386
|
bookingPaymentScheduleId: string | null;
|
|
387
387
|
bookingGuaranteeId: string | null;
|
|
388
|
-
status: "pending" | "failed" | "
|
|
388
|
+
status: "pending" | "failed" | "cancelled" | "expired" | "paid" | "requires_redirect" | "processing" | "authorized";
|
|
389
389
|
provider: string | null;
|
|
390
390
|
providerSessionId: string | null;
|
|
391
391
|
providerPaymentId: string | null;
|
|
@@ -455,7 +455,7 @@ export declare function createPublicFinanceRoutes(options?: PublicFinanceRouteOp
|
|
|
455
455
|
invoiceId: string | null;
|
|
456
456
|
bookingPaymentScheduleId: string | null;
|
|
457
457
|
bookingGuaranteeId: string | null;
|
|
458
|
-
status: "pending" | "failed" | "
|
|
458
|
+
status: "pending" | "failed" | "cancelled" | "expired" | "paid" | "requires_redirect" | "processing" | "authorized";
|
|
459
459
|
provider: string | null;
|
|
460
460
|
providerSessionId: string | null;
|
|
461
461
|
providerPaymentId: string | null;
|
|
@@ -521,7 +521,7 @@ export declare function createPublicFinanceRoutes(options?: PublicFinanceRouteOp
|
|
|
521
521
|
invoiceId: string | null;
|
|
522
522
|
bookingPaymentScheduleId: string | null;
|
|
523
523
|
bookingGuaranteeId: string | null;
|
|
524
|
-
status: "pending" | "failed" | "
|
|
524
|
+
status: "pending" | "failed" | "cancelled" | "expired" | "paid" | "requires_redirect" | "processing" | "authorized";
|
|
525
525
|
provider: string | null;
|
|
526
526
|
providerSessionId: string | null;
|
|
527
527
|
providerPaymentId: string | null;
|
|
@@ -777,7 +777,7 @@ export declare const publicFinanceRoutes: import("hono/hono-base").HonoBase<Env,
|
|
|
777
777
|
invoiceId: string;
|
|
778
778
|
invoiceNumber: string;
|
|
779
779
|
invoiceType: "invoice" | "proforma" | "credit_note";
|
|
780
|
-
status: "pending" | "
|
|
780
|
+
status: "pending" | "completed" | "failed" | "refunded";
|
|
781
781
|
paymentMethod: "other" | "voucher" | "wallet" | "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "direct_bill";
|
|
782
782
|
amountCents: number;
|
|
783
783
|
currency: string;
|
|
@@ -828,7 +828,7 @@ export declare const publicFinanceRoutes: import("hono/hono-base").HonoBase<Env,
|
|
|
828
828
|
schedules: {
|
|
829
829
|
id: string;
|
|
830
830
|
scheduleType: "other" | "deposit" | "installment" | "balance" | "hold";
|
|
831
|
-
status: "pending" | "
|
|
831
|
+
status: "pending" | "cancelled" | "expired" | "paid" | "due" | "waived";
|
|
832
832
|
dueDate: string;
|
|
833
833
|
currency: string;
|
|
834
834
|
amountCents: number;
|
|
@@ -838,7 +838,7 @@ export declare const publicFinanceRoutes: import("hono/hono-base").HonoBase<Env,
|
|
|
838
838
|
id: string;
|
|
839
839
|
bookingPaymentScheduleId: string | null;
|
|
840
840
|
guaranteeType: "other" | "voucher" | "bank_transfer" | "credit_card" | "deposit" | "preauth" | "card_on_file" | "agency_letter";
|
|
841
|
-
status: "pending" | "
|
|
841
|
+
status: "pending" | "failed" | "cancelled" | "active" | "expired" | "released";
|
|
842
842
|
currency: string | null;
|
|
843
843
|
amountCents: number | null;
|
|
844
844
|
provider: string | null;
|
|
@@ -884,7 +884,7 @@ export declare const publicFinanceRoutes: import("hono/hono-base").HonoBase<Env,
|
|
|
884
884
|
invoiceId: string | null;
|
|
885
885
|
bookingPaymentScheduleId: string | null;
|
|
886
886
|
bookingGuaranteeId: string | null;
|
|
887
|
-
status: "pending" | "failed" | "
|
|
887
|
+
status: "pending" | "failed" | "cancelled" | "expired" | "paid" | "requires_redirect" | "processing" | "authorized";
|
|
888
888
|
provider: string | null;
|
|
889
889
|
providerSessionId: string | null;
|
|
890
890
|
providerPaymentId: string | null;
|
|
@@ -941,7 +941,7 @@ export declare const publicFinanceRoutes: import("hono/hono-base").HonoBase<Env,
|
|
|
941
941
|
invoiceId: string | null;
|
|
942
942
|
bookingPaymentScheduleId: string | null;
|
|
943
943
|
bookingGuaranteeId: string | null;
|
|
944
|
-
status: "pending" | "failed" | "
|
|
944
|
+
status: "pending" | "failed" | "cancelled" | "expired" | "paid" | "requires_redirect" | "processing" | "authorized";
|
|
945
945
|
provider: string | null;
|
|
946
946
|
providerSessionId: string | null;
|
|
947
947
|
providerPaymentId: string | null;
|
|
@@ -1011,7 +1011,7 @@ export declare const publicFinanceRoutes: import("hono/hono-base").HonoBase<Env,
|
|
|
1011
1011
|
invoiceId: string | null;
|
|
1012
1012
|
bookingPaymentScheduleId: string | null;
|
|
1013
1013
|
bookingGuaranteeId: string | null;
|
|
1014
|
-
status: "pending" | "failed" | "
|
|
1014
|
+
status: "pending" | "failed" | "cancelled" | "expired" | "paid" | "requires_redirect" | "processing" | "authorized";
|
|
1015
1015
|
provider: string | null;
|
|
1016
1016
|
providerSessionId: string | null;
|
|
1017
1017
|
providerPaymentId: string | null;
|
|
@@ -1077,7 +1077,7 @@ export declare const publicFinanceRoutes: import("hono/hono-base").HonoBase<Env,
|
|
|
1077
1077
|
invoiceId: string | null;
|
|
1078
1078
|
bookingPaymentScheduleId: string | null;
|
|
1079
1079
|
bookingGuaranteeId: string | null;
|
|
1080
|
-
status: "pending" | "failed" | "
|
|
1080
|
+
status: "pending" | "failed" | "cancelled" | "expired" | "paid" | "requires_redirect" | "processing" | "authorized";
|
|
1081
1081
|
provider: string | null;
|
|
1082
1082
|
providerSessionId: string | null;
|
|
1083
1083
|
providerPaymentId: string | null;
|
package/dist/routes.d.ts
CHANGED
|
@@ -65,7 +65,7 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
65
65
|
paymentAuthorizationId: string | null;
|
|
66
66
|
paymentCaptureId: string | null;
|
|
67
67
|
paymentId: string | null;
|
|
68
|
-
status: "pending" | "failed" | "
|
|
68
|
+
status: "pending" | "failed" | "cancelled" | "expired" | "paid" | "requires_redirect" | "processing" | "authorized";
|
|
69
69
|
provider: string | null;
|
|
70
70
|
providerSessionId: string | null;
|
|
71
71
|
providerPaymentId: string | null;
|
|
@@ -121,7 +121,7 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
121
121
|
createdAt: string;
|
|
122
122
|
updatedAt: string;
|
|
123
123
|
expiresAt: string | null;
|
|
124
|
-
status: "pending" | "failed" | "
|
|
124
|
+
status: "pending" | "failed" | "cancelled" | "expired" | "paid" | "requires_redirect" | "processing" | "authorized";
|
|
125
125
|
currency: string;
|
|
126
126
|
notes: string | null;
|
|
127
127
|
idempotencyKey: string | null;
|
|
@@ -199,7 +199,7 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
199
199
|
paymentAuthorizationId: string | null;
|
|
200
200
|
paymentCaptureId: string | null;
|
|
201
201
|
paymentId: string | null;
|
|
202
|
-
status: "pending" | "failed" | "
|
|
202
|
+
status: "pending" | "failed" | "cancelled" | "expired" | "paid" | "requires_redirect" | "processing" | "authorized";
|
|
203
203
|
provider: string | null;
|
|
204
204
|
providerSessionId: string | null;
|
|
205
205
|
providerPaymentId: string | null;
|
|
@@ -272,7 +272,7 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
272
272
|
paymentAuthorizationId: string | null;
|
|
273
273
|
paymentCaptureId: string | null;
|
|
274
274
|
paymentId: string | null;
|
|
275
|
-
status: "pending" | "failed" | "
|
|
275
|
+
status: "pending" | "failed" | "cancelled" | "expired" | "paid" | "requires_redirect" | "processing" | "authorized";
|
|
276
276
|
provider: string | null;
|
|
277
277
|
providerSessionId: string | null;
|
|
278
278
|
providerPaymentId: string | null;
|
|
@@ -345,7 +345,7 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
345
345
|
paymentAuthorizationId: string | null;
|
|
346
346
|
paymentCaptureId: string | null;
|
|
347
347
|
paymentId: string | null;
|
|
348
|
-
status: "pending" | "failed" | "
|
|
348
|
+
status: "pending" | "failed" | "cancelled" | "expired" | "paid" | "requires_redirect" | "processing" | "authorized";
|
|
349
349
|
provider: string | null;
|
|
350
350
|
providerSessionId: string | null;
|
|
351
351
|
providerPaymentId: string | null;
|
|
@@ -418,7 +418,7 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
418
418
|
paymentAuthorizationId: string | null;
|
|
419
419
|
paymentCaptureId: string | null;
|
|
420
420
|
paymentId: string | null;
|
|
421
|
-
status: "pending" | "failed" | "
|
|
421
|
+
status: "pending" | "failed" | "cancelled" | "expired" | "paid" | "requires_redirect" | "processing" | "authorized";
|
|
422
422
|
provider: string | null;
|
|
423
423
|
providerSessionId: string | null;
|
|
424
424
|
providerPaymentId: string | null;
|
|
@@ -491,7 +491,7 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
491
491
|
paymentAuthorizationId: string | null;
|
|
492
492
|
paymentCaptureId: string | null;
|
|
493
493
|
paymentId: string | null;
|
|
494
|
-
status: "pending" | "failed" | "
|
|
494
|
+
status: "pending" | "failed" | "cancelled" | "expired" | "paid" | "requires_redirect" | "processing" | "authorized";
|
|
495
495
|
provider: string | null;
|
|
496
496
|
providerSessionId: string | null;
|
|
497
497
|
providerPaymentId: string | null;
|
|
@@ -564,7 +564,7 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
564
564
|
paymentAuthorizationId: string | null;
|
|
565
565
|
paymentCaptureId: string | null;
|
|
566
566
|
paymentId: string | null;
|
|
567
|
-
status: "pending" | "failed" | "
|
|
567
|
+
status: "pending" | "failed" | "cancelled" | "expired" | "paid" | "requires_redirect" | "processing" | "authorized";
|
|
568
568
|
provider: string | null;
|
|
569
569
|
providerSessionId: string | null;
|
|
570
570
|
providerPaymentId: string | null;
|
|
@@ -637,7 +637,7 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
637
637
|
paymentAuthorizationId: string | null;
|
|
638
638
|
paymentCaptureId: string | null;
|
|
639
639
|
paymentId: string | null;
|
|
640
|
-
status: "pending" | "failed" | "
|
|
640
|
+
status: "pending" | "failed" | "cancelled" | "expired" | "paid" | "requires_redirect" | "processing" | "authorized";
|
|
641
641
|
provider: string | null;
|
|
642
642
|
providerSessionId: string | null;
|
|
643
643
|
providerPaymentId: string | null;
|
|
@@ -1072,7 +1072,7 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
1072
1072
|
id: string;
|
|
1073
1073
|
paymentAuthorizationId: string | null;
|
|
1074
1074
|
invoiceId: string | null;
|
|
1075
|
-
status: "pending" | "
|
|
1075
|
+
status: "pending" | "completed" | "failed" | "refunded" | "voided";
|
|
1076
1076
|
currency: string;
|
|
1077
1077
|
amountCents: number;
|
|
1078
1078
|
provider: string | null;
|
|
@@ -1100,7 +1100,7 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
1100
1100
|
id: string;
|
|
1101
1101
|
createdAt: string;
|
|
1102
1102
|
updatedAt: string;
|
|
1103
|
-
status: "pending" | "
|
|
1103
|
+
status: "pending" | "completed" | "failed" | "refunded" | "voided";
|
|
1104
1104
|
currency: string;
|
|
1105
1105
|
notes: string | null;
|
|
1106
1106
|
provider: string | null;
|
|
@@ -1140,7 +1140,7 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
1140
1140
|
id: string;
|
|
1141
1141
|
paymentAuthorizationId: string | null;
|
|
1142
1142
|
invoiceId: string | null;
|
|
1143
|
-
status: "pending" | "
|
|
1143
|
+
status: "pending" | "completed" | "failed" | "refunded" | "voided";
|
|
1144
1144
|
currency: string;
|
|
1145
1145
|
amountCents: number;
|
|
1146
1146
|
provider: string | null;
|
|
@@ -1180,7 +1180,7 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
1180
1180
|
id: string;
|
|
1181
1181
|
paymentAuthorizationId: string | null;
|
|
1182
1182
|
invoiceId: string | null;
|
|
1183
|
-
status: "pending" | "
|
|
1183
|
+
status: "pending" | "completed" | "failed" | "refunded" | "voided";
|
|
1184
1184
|
currency: string;
|
|
1185
1185
|
amountCents: number;
|
|
1186
1186
|
provider: string | null;
|
|
@@ -1283,7 +1283,7 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
1283
1283
|
bookingId: string;
|
|
1284
1284
|
bookingItemId: string | null;
|
|
1285
1285
|
scheduleType: "other" | "deposit" | "installment" | "balance" | "hold";
|
|
1286
|
-
status: "pending" | "
|
|
1286
|
+
status: "pending" | "cancelled" | "expired" | "paid" | "due" | "waived";
|
|
1287
1287
|
dueDate: string;
|
|
1288
1288
|
currency: string;
|
|
1289
1289
|
amountCents: number;
|
|
@@ -1320,7 +1320,7 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
1320
1320
|
id: string;
|
|
1321
1321
|
createdAt: string;
|
|
1322
1322
|
updatedAt: string;
|
|
1323
|
-
status: "pending" | "
|
|
1323
|
+
status: "pending" | "cancelled" | "expired" | "paid" | "due" | "waived";
|
|
1324
1324
|
currency: string;
|
|
1325
1325
|
notes: string | null;
|
|
1326
1326
|
bookingId: string;
|
|
@@ -1358,7 +1358,7 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
1358
1358
|
id: string;
|
|
1359
1359
|
createdAt: string;
|
|
1360
1360
|
updatedAt: string;
|
|
1361
|
-
status: "pending" | "
|
|
1361
|
+
status: "pending" | "cancelled" | "expired" | "paid" | "due" | "waived";
|
|
1362
1362
|
currency: string;
|
|
1363
1363
|
notes: string | null;
|
|
1364
1364
|
bookingId: string;
|
|
@@ -1401,7 +1401,7 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
1401
1401
|
bookingId: string;
|
|
1402
1402
|
bookingItemId: string | null;
|
|
1403
1403
|
scheduleType: "other" | "deposit" | "installment" | "balance" | "hold";
|
|
1404
|
-
status: "pending" | "
|
|
1404
|
+
status: "pending" | "cancelled" | "expired" | "paid" | "due" | "waived";
|
|
1405
1405
|
dueDate: string;
|
|
1406
1406
|
currency: string;
|
|
1407
1407
|
amountCents: number;
|
|
@@ -1446,7 +1446,7 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
1446
1446
|
createdAt: string;
|
|
1447
1447
|
updatedAt: string;
|
|
1448
1448
|
expiresAt: string | null;
|
|
1449
|
-
status: "pending" | "failed" | "
|
|
1449
|
+
status: "pending" | "failed" | "cancelled" | "expired" | "paid" | "requires_redirect" | "processing" | "authorized";
|
|
1450
1450
|
currency: string;
|
|
1451
1451
|
notes: string | null;
|
|
1452
1452
|
idempotencyKey: string | null;
|
|
@@ -1549,7 +1549,7 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
1549
1549
|
bookingPaymentScheduleId: string | null;
|
|
1550
1550
|
bookingItemId: string | null;
|
|
1551
1551
|
guaranteeType: "other" | "voucher" | "bank_transfer" | "credit_card" | "deposit" | "preauth" | "card_on_file" | "agency_letter";
|
|
1552
|
-
status: "pending" | "
|
|
1552
|
+
status: "pending" | "failed" | "cancelled" | "active" | "expired" | "released";
|
|
1553
1553
|
paymentInstrumentId: string | null;
|
|
1554
1554
|
paymentAuthorizationId: string | null;
|
|
1555
1555
|
currency: string | null;
|
|
@@ -1593,7 +1593,7 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
1593
1593
|
createdAt: string;
|
|
1594
1594
|
updatedAt: string;
|
|
1595
1595
|
expiresAt: string | null;
|
|
1596
|
-
status: "pending" | "
|
|
1596
|
+
status: "pending" | "failed" | "cancelled" | "active" | "expired" | "released";
|
|
1597
1597
|
currency: string | null;
|
|
1598
1598
|
notes: string | null;
|
|
1599
1599
|
provider: string | null;
|
|
@@ -1645,7 +1645,7 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
1645
1645
|
createdAt: string;
|
|
1646
1646
|
updatedAt: string;
|
|
1647
1647
|
expiresAt: string | null;
|
|
1648
|
-
status: "pending" | "failed" | "
|
|
1648
|
+
status: "pending" | "failed" | "cancelled" | "expired" | "paid" | "requires_redirect" | "processing" | "authorized";
|
|
1649
1649
|
currency: string;
|
|
1650
1650
|
notes: string | null;
|
|
1651
1651
|
idempotencyKey: string | null;
|
|
@@ -1733,7 +1733,7 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
1733
1733
|
bookingPaymentScheduleId: string | null;
|
|
1734
1734
|
bookingItemId: string | null;
|
|
1735
1735
|
guaranteeType: "other" | "voucher" | "bank_transfer" | "credit_card" | "deposit" | "preauth" | "card_on_file" | "agency_letter";
|
|
1736
|
-
status: "pending" | "
|
|
1736
|
+
status: "pending" | "failed" | "cancelled" | "active" | "expired" | "released";
|
|
1737
1737
|
paymentInstrumentId: string | null;
|
|
1738
1738
|
paymentAuthorizationId: string | null;
|
|
1739
1739
|
currency: string | null;
|
|
@@ -1833,8 +1833,8 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
1833
1833
|
};
|
|
1834
1834
|
output: {
|
|
1835
1835
|
data: {
|
|
1836
|
-
id: string;
|
|
1837
1836
|
name: string;
|
|
1837
|
+
id: string;
|
|
1838
1838
|
createdAt: string;
|
|
1839
1839
|
updatedAt: string;
|
|
1840
1840
|
scope: "included" | "excluded" | "withheld";
|
|
@@ -2074,6 +2074,94 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
2074
2074
|
status: 200;
|
|
2075
2075
|
};
|
|
2076
2076
|
};
|
|
2077
|
+
} & {
|
|
2078
|
+
"/payments": {
|
|
2079
|
+
$get: {
|
|
2080
|
+
input: {};
|
|
2081
|
+
output: {
|
|
2082
|
+
data: {
|
|
2083
|
+
kind: "customer" | "supplier";
|
|
2084
|
+
id: string;
|
|
2085
|
+
invoiceId: string | null;
|
|
2086
|
+
invoiceNumber: string | null;
|
|
2087
|
+
bookingId: string | null;
|
|
2088
|
+
bookingNumber: string | null;
|
|
2089
|
+
supplierId: string | null;
|
|
2090
|
+
supplierName: string | null;
|
|
2091
|
+
personId: string | null;
|
|
2092
|
+
personName: string | null;
|
|
2093
|
+
organizationId: string | null;
|
|
2094
|
+
organizationName: string | null;
|
|
2095
|
+
amountCents: number;
|
|
2096
|
+
currency: string;
|
|
2097
|
+
baseCurrency: string | null;
|
|
2098
|
+
baseAmountCents: number | null;
|
|
2099
|
+
paymentMethod: string;
|
|
2100
|
+
status: string;
|
|
2101
|
+
referenceNumber: string | null;
|
|
2102
|
+
paymentDate: string;
|
|
2103
|
+
notes: string | null;
|
|
2104
|
+
createdAt: string;
|
|
2105
|
+
updatedAt: string;
|
|
2106
|
+
}[];
|
|
2107
|
+
total: number;
|
|
2108
|
+
limit: number;
|
|
2109
|
+
offset: number;
|
|
2110
|
+
};
|
|
2111
|
+
outputFormat: "json";
|
|
2112
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
2113
|
+
};
|
|
2114
|
+
};
|
|
2115
|
+
} & {
|
|
2116
|
+
"/payments/:id": {
|
|
2117
|
+
$get: {
|
|
2118
|
+
input: {
|
|
2119
|
+
param: {
|
|
2120
|
+
id: string;
|
|
2121
|
+
};
|
|
2122
|
+
};
|
|
2123
|
+
output: {
|
|
2124
|
+
error: string;
|
|
2125
|
+
};
|
|
2126
|
+
outputFormat: "json";
|
|
2127
|
+
status: 404;
|
|
2128
|
+
} | {
|
|
2129
|
+
input: {
|
|
2130
|
+
param: {
|
|
2131
|
+
id: string;
|
|
2132
|
+
};
|
|
2133
|
+
};
|
|
2134
|
+
output: {
|
|
2135
|
+
data: {
|
|
2136
|
+
kind: "customer" | "supplier";
|
|
2137
|
+
id: string;
|
|
2138
|
+
invoiceId: string | null;
|
|
2139
|
+
invoiceNumber: string | null;
|
|
2140
|
+
bookingId: string | null;
|
|
2141
|
+
bookingNumber: string | null;
|
|
2142
|
+
supplierId: string | null;
|
|
2143
|
+
supplierName: string | null;
|
|
2144
|
+
personId: string | null;
|
|
2145
|
+
personName: string | null;
|
|
2146
|
+
organizationId: string | null;
|
|
2147
|
+
organizationName: string | null;
|
|
2148
|
+
amountCents: number;
|
|
2149
|
+
currency: string;
|
|
2150
|
+
baseCurrency: string | null;
|
|
2151
|
+
baseAmountCents: number | null;
|
|
2152
|
+
paymentMethod: string;
|
|
2153
|
+
status: string;
|
|
2154
|
+
referenceNumber: string | null;
|
|
2155
|
+
paymentDate: string;
|
|
2156
|
+
notes: string | null;
|
|
2157
|
+
createdAt: string;
|
|
2158
|
+
updatedAt: string;
|
|
2159
|
+
};
|
|
2160
|
+
};
|
|
2161
|
+
outputFormat: "json";
|
|
2162
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
2163
|
+
};
|
|
2164
|
+
};
|
|
2077
2165
|
} & {
|
|
2078
2166
|
"/supplier-payments": {
|
|
2079
2167
|
$get: {
|
|
@@ -2091,7 +2179,7 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
2091
2179
|
fxRateSetId: string | null;
|
|
2092
2180
|
paymentMethod: "other" | "voucher" | "wallet" | "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "direct_bill";
|
|
2093
2181
|
paymentInstrumentId: string | null;
|
|
2094
|
-
status: "pending" | "
|
|
2182
|
+
status: "pending" | "completed" | "failed" | "refunded";
|
|
2095
2183
|
referenceNumber: string | null;
|
|
2096
2184
|
paymentDate: string;
|
|
2097
2185
|
notes: string | null;
|
|
@@ -2115,7 +2203,7 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
2115
2203
|
id: string;
|
|
2116
2204
|
createdAt: string;
|
|
2117
2205
|
updatedAt: string;
|
|
2118
|
-
status: "pending" | "
|
|
2206
|
+
status: "pending" | "completed" | "failed" | "refunded";
|
|
2119
2207
|
currency: string;
|
|
2120
2208
|
notes: string | null;
|
|
2121
2209
|
bookingId: string;
|
|
@@ -2167,7 +2255,7 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
2167
2255
|
fxRateSetId: string | null;
|
|
2168
2256
|
paymentMethod: "other" | "voucher" | "wallet" | "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "direct_bill";
|
|
2169
2257
|
paymentInstrumentId: string | null;
|
|
2170
|
-
status: "pending" | "
|
|
2258
|
+
status: "pending" | "completed" | "failed" | "refunded";
|
|
2171
2259
|
referenceNumber: string | null;
|
|
2172
2260
|
paymentDate: string;
|
|
2173
2261
|
notes: string | null;
|
|
@@ -2509,7 +2597,7 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
2509
2597
|
createdAt: string;
|
|
2510
2598
|
updatedAt: string;
|
|
2511
2599
|
expiresAt: string | null;
|
|
2512
|
-
status: "pending" | "failed" | "
|
|
2600
|
+
status: "pending" | "failed" | "cancelled" | "expired" | "paid" | "requires_redirect" | "processing" | "authorized";
|
|
2513
2601
|
currency: string;
|
|
2514
2602
|
notes: string | null;
|
|
2515
2603
|
idempotencyKey: string | null;
|
|
@@ -2720,7 +2808,7 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
2720
2808
|
paymentInstrumentId: string | null;
|
|
2721
2809
|
paymentAuthorizationId: string | null;
|
|
2722
2810
|
paymentCaptureId: string | null;
|
|
2723
|
-
status: "pending" | "
|
|
2811
|
+
status: "pending" | "completed" | "failed" | "refunded";
|
|
2724
2812
|
referenceNumber: string | null;
|
|
2725
2813
|
paymentDate: string;
|
|
2726
2814
|
notes: string | null;
|
|
@@ -2756,7 +2844,7 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
2756
2844
|
id: string;
|
|
2757
2845
|
createdAt: string;
|
|
2758
2846
|
updatedAt: string;
|
|
2759
|
-
status: "pending" | "
|
|
2847
|
+
status: "pending" | "completed" | "failed" | "refunded";
|
|
2760
2848
|
currency: string;
|
|
2761
2849
|
notes: string | null;
|
|
2762
2850
|
baseCurrency: string | null;
|
|
@@ -3041,8 +3129,8 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
3041
3129
|
input: {};
|
|
3042
3130
|
output: {
|
|
3043
3131
|
data: {
|
|
3044
|
-
id: string;
|
|
3045
3132
|
name: string;
|
|
3133
|
+
id: string;
|
|
3046
3134
|
prefix: string;
|
|
3047
3135
|
createdAt: string;
|
|
3048
3136
|
updatedAt: string;
|
|
@@ -3241,8 +3329,8 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
3241
3329
|
output: {
|
|
3242
3330
|
data: {
|
|
3243
3331
|
metadata: import("hono/utils/types").JSONValue;
|
|
3244
|
-
id: string;
|
|
3245
3332
|
name: string;
|
|
3333
|
+
id: string;
|
|
3246
3334
|
createdAt: string;
|
|
3247
3335
|
updatedAt: string;
|
|
3248
3336
|
slug: string;
|
|
@@ -3398,8 +3486,8 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
3398
3486
|
output: {
|
|
3399
3487
|
data: {
|
|
3400
3488
|
metadata: import("hono/utils/types").JSONValue;
|
|
3401
|
-
id: string;
|
|
3402
3489
|
name: string;
|
|
3490
|
+
id: string;
|
|
3403
3491
|
createdAt: string;
|
|
3404
3492
|
updatedAt: string;
|
|
3405
3493
|
description: string | null;
|
|
@@ -3700,8 +3788,8 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
3700
3788
|
input: {};
|
|
3701
3789
|
output: {
|
|
3702
3790
|
data: {
|
|
3703
|
-
id: string;
|
|
3704
3791
|
name: string;
|
|
3792
|
+
id: string;
|
|
3705
3793
|
createdAt: string;
|
|
3706
3794
|
updatedAt: string;
|
|
3707
3795
|
description: string | null;
|
|
@@ -3844,8 +3932,8 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
3844
3932
|
input: {};
|
|
3845
3933
|
output: {
|
|
3846
3934
|
data: {
|
|
3847
|
-
id: string;
|
|
3848
3935
|
name: string;
|
|
3936
|
+
id: string;
|
|
3849
3937
|
createdAt: string;
|
|
3850
3938
|
updatedAt: string;
|
|
3851
3939
|
active: boolean;
|
|
@@ -4389,7 +4477,7 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
4389
4477
|
invoiceId: string;
|
|
4390
4478
|
invoiceNumber: string;
|
|
4391
4479
|
invoiceType: "invoice" | "proforma" | "credit_note";
|
|
4392
|
-
status: "pending" | "
|
|
4480
|
+
status: "pending" | "completed" | "failed" | "refunded";
|
|
4393
4481
|
paymentMethod: "other" | "voucher" | "wallet" | "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "direct_bill";
|
|
4394
4482
|
amountCents: number;
|
|
4395
4483
|
currency: string;
|