fix issue

This commit is contained in:
Marshal
2026-08-20 18:10:29 +00:00
183 changed files with 14241 additions and 1265 deletions

View File

@@ -200,6 +200,11 @@ export enum InvoiceSource {
* per-booking link.
*/
ShippingLineCredit = "shipping_line_credit",
/**
* Ad-hoc extra charge finance raises against a booking (e.g. a fee not
* covered by an existing fee rule). `sourceId` is the charge id.
*/
AdditionalCharge = "additional_charge",
}
export enum SchedulingStatus {
@@ -887,6 +892,36 @@ export interface ClearanceDocRequest {
at: string;
}
// ── Additional charges (ad-hoc finance billing) ──────────────────────────────
/**
* DRAFT: staff is still editing, nothing sent. SENT: invoice issued to the
* customer (in-app + SMS + email). PAID: the invoice settled. CANCELLED:
* withdrawn before payment.
*/
export type AdditionalChargeStatus = "DRAFT" | "SENT" | "PAID" | "CANCELLED";
/** One ad-hoc extra charge finance raised against a booking. */
export interface AdditionalCharge {
id: string;
bookingId: string;
reason: string;
status: AdditionalChargeStatus;
amount: number;
currency: string;
file: { id: string; name: string; url: string } | null;
invoiceId: string | null;
invoiceNumber: string | null;
paymentReference: string | null;
createdByName: string | null;
createdAt: string;
sentByName: string | null;
sentAt: string | null;
paidAt: string | null;
cancelledAt: string | null;
cancelReason: string | null;
}
/** One entry of a clearance document's audit trail, oldest first. */
export interface ClearanceDocumentEvent {
type: "UPLOADED" | "RESUBMITTED" | "QUERIED" | "APPROVED";