feat: Alby integration (#11495)

Co-authored-by: Peer Richelsen <[email protected]>
Co-authored-by: alannnc <[email protected]>
Co-authored-by: Hariom Balhara <[email protected]>
Co-authored-by: Peer Richelsen <[email protected]>
This commit is contained in:
authored and GitHub committed 2023-09-28 12:03:01 +00:00
1 parent ef45cbfb3f
commit 2021b641ce
77 files changed
+2479 -639

No files matched your search

+4 -1
View File
@@ -1,10 +1,11 @@
import type { Payment, Prisma, Booking, PaymentOption } from "@prisma/client";
import type { PaymentService } from "@calcom/app-store/paypal/lib/PaymentService";
import type { CalendarEvent } from "@calcom/types/Calendar";
export interface PaymentApp {
lib?: {
PaymentService: IAbstractPaymentService;
PaymentService: typeof PaymentService;
};
}
@@ -32,6 +33,7 @@ export interface IAbstractPaymentService {
payment: Pick<Prisma.PaymentUncheckedCreateInput, "amount" | "currency">,
bookingId?: Booking["id"]
): Promise<Payment>;
update(paymentId: Payment["id"], data: Partial<Prisma.PaymentUncheckedCreateInput>): Promise<Payment>;
refund(paymentId: Payment["id"]): Promise<Payment>;
getPaymentPaidStatus(): Promise<string>;
@@ -47,4 +49,5 @@ export interface IAbstractPaymentService {
paymentData: Payment
): Promise<void>;
deletePayment(paymentId: Payment["id"]): Promise<boolean>;
isSetupAlready(): boolean;
}