29 lines
1.2 KiB
TypeScript
29 lines
1.2 KiB
TypeScript
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
|