32 lines
1.6 KiB
TypeScript
32 lines
1.6 KiB
TypeScript
export declare function findByCompany(companyId: string): any;
|
|
export declare function findByReservation(reservationId: string, companyId: string): any;
|
|
export declare function findByAmanpay(transactionId: string): any;
|
|
export declare function findByPaypal(captureId: string): any;
|
|
export declare function findByPaypalForCompany(paypalOrderId: string, companyId: string): any;
|
|
export declare function findPaymentOrThrow(paymentId: string, companyId: string, reservationId: string): any;
|
|
export declare function findReservationOrThrow(id: string, companyId: string): any;
|
|
export declare function findReservation(id: string, companyId: string): any;
|
|
export declare function markPaymentSucceeded(id: string): any;
|
|
export declare function markPaymentFailed(query: {
|
|
amanpayTransactionId?: string;
|
|
paypalCaptureId?: string;
|
|
}): any;
|
|
export declare function incrementReservationPaid(reservationId: string, amount: number): any;
|
|
export declare function createPayment(data: {
|
|
companyId: string;
|
|
reservationId: string;
|
|
amount: number;
|
|
currency: string;
|
|
status: string;
|
|
type: string;
|
|
paymentProvider: string;
|
|
amanpayTransactionId?: string | null;
|
|
paypalCaptureId?: string | null;
|
|
paymentMethod?: string;
|
|
paidAt?: Date;
|
|
}): any;
|
|
export declare function updatePaypalCapture(id: string, captureId: string): any;
|
|
export declare function setReservationPaidAmount(reservationId: string, paidAmount: number, paymentStatus: string): any;
|
|
export declare function setReservationRefunded(reservationId: string): any;
|
|
export declare function setPaymentRefunded(id: string, partial: boolean): any;
|
|
//# sourceMappingURL=payment.repo.d.ts.map
|