Files
alrahma_sunday_school_api/apps/api/dist/modules/site/site.repo.d.ts
T
2026-06-11 03:22:12 -04:00

42 lines
2.2 KiB
TypeScript

export declare function findCompanyBySlug(slug: string): Promise<any>;
export declare function findPublishedVehicles(companyId: string): Promise<any>;
export declare function findVehicleById(vehicleId: string, companyId: string): Promise<any>;
export declare function findActiveOffers(companyId: string): Promise<any>;
export declare function findInsurancePolicies(companyId: string): Promise<any>;
export declare function findOfferByPromoCode(companyId: string, code: string): Promise<any>;
export declare function upsertCustomer(companyId: string, data: {
email: string;
firstName: string;
lastName: string;
phone: string;
driverLicense: string;
dateOfBirth: string;
licenseExpiry: string;
licenseIssuedAt: string;
nationality: string;
identityDocumentNumber: string;
fullAddress: string;
licenseCountry: string;
licenseNumber?: string | null;
licenseCategory: string;
internationalLicenseNumber?: string | null;
}): Promise<any>;
export declare function createReservation(data: object): Promise<any>;
export declare function findReservationWithDetails(reservationId: string): Promise<any>;
export declare function findBooking(reservationId: string, companyId: string): Promise<any>;
export declare function findReservationForPayment(reservationId: string, companyId: string): Promise<any>;
export declare function createRentalPayment(data: {
companyId: string;
reservationId: string;
amount: number;
currency: string;
paymentProvider: string;
amanpayTransactionId?: string | null;
paypalCaptureId?: string | null;
}): Promise<any>;
export declare function findPaymentByPaypalOrderId(paypalOrderId: string, companyId: string): Promise<any>;
export declare function capturePaypalPayment(paymentId: string, captureId: string, reservationId: string, amount: number): Promise<void>;
export declare function createReservationPublicAccess(reservationId: string, tokenHash: string, expiresAt: Date): Promise<any>;
export declare function findReservationPublicAccess(reservationId: string, tokenHash: string): Promise<any>;
export declare function markReservationPublicAccessUsed(id: string): Promise<any>;
//# sourceMappingURL=site.repo.d.ts.map