archetecture security fix

This commit is contained in:
root
2026-06-11 03:22:12 -04:00
parent 6def9993da
commit 9483750161
3126 changed files with 177194 additions and 37211 deletions
+29
View File
@@ -0,0 +1,29 @@
export declare function listByCompany(companyId: string): any;
export declare function listByReservation(reservationId: string, companyId: string): any;
export declare function handleAmanpayWebhook(event: any, rawBody?: string | Buffer): Promise<{
duplicate: boolean;
result?: void | undefined;
}>;
export declare function handlePaypalWebhook(event: any, rawBody?: string | Buffer): Promise<{
duplicate: boolean;
result?: void | undefined;
}>;
export declare function initCharge(reservationId: string, companyId: string, body: {
provider: 'AMANPAY' | 'PAYPAL';
type: 'CHARGE' | 'DEPOSIT';
currency: 'MAD';
successUrl: string;
failureUrl: string;
}): Promise<{
payment: any;
checkoutUrl: string;
}>;
export declare function capturePaypal(reservationId: string, companyId: string, paypalOrderId: string): Promise<any>;
export declare function recordManualPayment(reservationId: string, companyId: string, body: {
amount: number;
currency: string;
type: string;
paymentMethod: string;
}): Promise<any>;
export declare function refundPayment(reservationId: string, paymentId: string, companyId: string, amount?: number, reason?: string): Promise<any>;
//# sourceMappingURL=payment.service.d.ts.map