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

132 lines
3.7 KiB
TypeScript

export declare function getPlatformHomepage(): Promise<import("@rentaldrivego/types").MarketplaceHomepageConfig>;
export declare function getPlatformPricing(): Promise<{
prices: any;
planFeatures: {
[k: string]: any;
};
}>;
export declare function getBrand(slug: string): Promise<{
company: {
id: string;
slug: string;
name: string;
phone: string | null;
};
brand: {
displayName: any;
tagline: any;
logoUrl: any;
faviconUrl: any;
heroImageUrl: any;
primaryColor: any;
accentColor: any;
subdomain: any;
customDomain: any;
customDomainVerified: any;
customDomainAddedAt: any;
publicEmail: any;
publicPhone: any;
publicAddress: any;
publicCity: any;
publicCountry: any;
websiteUrl: any;
whatsappNumber: any;
facebookUrl: any;
instagramUrl: any;
defaultLocale: any;
defaultCurrency: any;
paypalEmail: any;
paypalMerchantId: any;
paymentMethodsEnabled: any;
isListedOnMarketplace: any;
marketplaceRating: any;
homePageConfig: any;
menuConfig: any;
} | null;
}>;
export declare function getPublicVehicles(slug: string): Promise<any>;
export declare function getVehicleDetail(slug: string, vehicleId: string): Promise<any>;
export declare function getOffers(slug: string): Promise<any>;
export declare function getBookingOptions(slug: string): Promise<{
insurancePolicies: any;
contractSettings: any;
}>;
export declare function checkAvailability(slug: string, vehicleId: string, startDate: string, endDate: string): Promise<{
available: boolean;
nextAvailableAt: Date | null;
}>;
export declare function validatePromoCode(slug: string, code: string): Promise<any>;
export declare function createBooking(slug: string, body: {
vehicleId: string;
startDate: string;
endDate: string;
firstName: string;
lastName: string;
email: string;
phone: string;
driverLicense: string;
dateOfBirth: string;
licenseExpiry: string;
licenseIssuedAt: string;
nationality: string;
identityDocumentNumber: string;
fullAddress: string;
licenseCountry: string;
licenseNumber?: string;
licenseCategory: string;
internationalLicenseNumber?: string;
offerId?: string;
promoCodeUsed?: string;
notes?: string;
source?: string;
selectedInsurancePolicyIds?: string[];
additionalDrivers?: any[];
}): Promise<any>;
export declare function getBooking(slug: string, reservationId: string, accessToken?: string): Promise<{
id: any;
status: any;
pickupAt: any;
returnAt: any;
vehicle: {
make: any;
model: any;
year: any;
imageUrl: any;
};
customer: {
displayName: string;
maskedEmail: string | undefined;
maskedPhone: string | undefined;
};
totals: {
amountDue: number;
currency: string;
};
paymentStatus: any;
}>;
export declare function initPayment(slug: string, reservationId: string, body: {
provider: 'AMANPAY' | 'PAYPAL';
currency?: 'MAD';
successUrl: string;
failureUrl: string;
accessToken?: string;
}): Promise<{
checkoutUrl: string;
}>;
export declare function capturePaypal(slug: string, paypalOrderId: string): Promise<{
success: boolean;
}>;
export declare function handleContact(slug: string, body: {
name: string;
email: string;
message: string;
}): Promise<{
success: boolean;
deliveredTo: any;
preview: {
name: string;
email: string;
message: string;
};
}>;
//# sourceMappingURL=site.service.d.ts.map