archetecture security fix
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user