137 lines
3.2 KiB
TypeScript
137 lines
3.2 KiB
TypeScript
export declare function formatDocumentNumber(prefix: string, sequence: number): string;
|
|
export declare function ensureReservationDocumentNumbers(companyId: string, reservationId: string): Promise<any>;
|
|
export declare function buildReservationInvoiceLineItems(reservation: {
|
|
dailyRate: number;
|
|
totalDays: number;
|
|
discountAmount: number;
|
|
depositAmount: number;
|
|
pricingRulesApplied: Array<{
|
|
name?: string;
|
|
amount?: number;
|
|
type?: string;
|
|
}> | null;
|
|
insurances: Array<{
|
|
id: string;
|
|
policyName: string;
|
|
chargeType: string;
|
|
chargeValue: number;
|
|
totalCharge: number;
|
|
}>;
|
|
additionalDrivers: Array<{
|
|
id: string;
|
|
firstName: string;
|
|
lastName: string;
|
|
totalCharge: number;
|
|
}>;
|
|
vehicle: {
|
|
year: number;
|
|
make: string;
|
|
model: string;
|
|
};
|
|
}): {
|
|
description: string;
|
|
qty: number;
|
|
unitPrice: number;
|
|
total: number;
|
|
category: string;
|
|
}[];
|
|
export declare function getContract(id: string, companyId: string): Promise<{
|
|
reservationId: any;
|
|
contractLocale: any;
|
|
contractNumber: any;
|
|
invoiceNumber: any;
|
|
generatedAt: string;
|
|
status: any;
|
|
paymentStatus: any;
|
|
paymentMode: string | null;
|
|
notes: any;
|
|
company: {
|
|
name: any;
|
|
legalName: any;
|
|
email: any;
|
|
phone: any;
|
|
address: any;
|
|
city: any;
|
|
country: any;
|
|
registrationNumber: any;
|
|
taxId: any;
|
|
logoUrl: any;
|
|
};
|
|
driver: {
|
|
firstName: any;
|
|
lastName: any;
|
|
email: any;
|
|
phone: any;
|
|
dateOfBirth: any;
|
|
driverLicense: any;
|
|
licenseCountry: any;
|
|
licenseCategory: any;
|
|
licenseIssuedAt: any;
|
|
licenseExpiry: any;
|
|
nationality: any;
|
|
};
|
|
additionalDrivers: any;
|
|
vehicle: {
|
|
make: any;
|
|
model: any;
|
|
year: any;
|
|
color: any;
|
|
licensePlate: any;
|
|
vin: any;
|
|
category: any;
|
|
};
|
|
rentalPeriod: {
|
|
startDate: any;
|
|
endDate: any;
|
|
totalDays: any;
|
|
pickupLocation: any;
|
|
returnLocation: any;
|
|
};
|
|
insurance: {
|
|
total: any;
|
|
policies: any;
|
|
};
|
|
inspections: {
|
|
checkIn: any;
|
|
checkOut: any;
|
|
};
|
|
terms: {
|
|
terms: any;
|
|
fuelPolicy: any;
|
|
fuelPolicyType: any;
|
|
depositPolicy: any;
|
|
lateFeePolicy: any;
|
|
damagePolicy: any;
|
|
footerNote: any;
|
|
signatureRequired: any;
|
|
};
|
|
invoice: {
|
|
currency: any;
|
|
lineItems: {
|
|
description: string;
|
|
qty: number;
|
|
unitPrice: number;
|
|
total: number;
|
|
category: string;
|
|
}[];
|
|
subtotal: number;
|
|
taxes: {
|
|
label: any;
|
|
rate: any;
|
|
amount: number;
|
|
}[];
|
|
taxTotal: number;
|
|
total: number;
|
|
amountPaid: any;
|
|
balanceDue: number;
|
|
payments: any;
|
|
};
|
|
}>;
|
|
export declare function getBilling(id: string, companyId: string): Promise<{
|
|
lineItems: any[];
|
|
discountAmount: any;
|
|
pricingRulesApplied: any;
|
|
pricingRulesTotal: any;
|
|
grandTotal: number;
|
|
}>;
|
|
//# sourceMappingURL=reservation.document.service.d.ts.map
|