Skip to content

Commit c4142ab

Browse files
authored
refactor: Move handlePayment to Features Package (calcom#23670)
* mv * update imports
1 parent 95f8046 commit c4142ab

3 files changed

Lines changed: 2 additions & 2 deletions

File tree

packages/features/bookings/lib/handleNewBooking.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ import { CalendarEventBuilder } from "@calcom/features/CalendarEventBuilder";
1818
import type { BookingDataSchemaGetter } from "@calcom/features/bookings/lib/dto/types";
1919
import type { CreateRegularBookingData, CreateBookingMeta } from "@calcom/features/bookings/lib/dto/types";
2020
import type { CheckBookingAndDurationLimitsService } from "@calcom/features/bookings/lib/handleNewBooking/checkBookingAndDurationLimits";
21+
import { handlePayment } from "@calcom/features/bookings/lib/handlePayment";
2122
import { handleWebhookTrigger } from "@calcom/features/bookings/lib/handleWebhookTrigger";
2223
import { isEventTypeLoggingEnabled } from "@calcom/features/bookings/lib/isEventTypeLoggingEnabled";
2324
import type { CacheService } from "@calcom/features/calendar-cache/lib/getShouldServeCache";
@@ -57,7 +58,6 @@ import { getTeamIdFromEventType } from "@calcom/lib/getTeamIdFromEventType";
5758
import { HttpError } from "@calcom/lib/http-error";
5859
import type { CheckBookingLimitsService } from "@calcom/lib/intervalLimits/server/checkBookingLimits";
5960
import logger from "@calcom/lib/logger";
60-
import { handlePayment } from "@calcom/lib/payment/handlePayment";
6161
import { getPiiFreeCalendarEvent, getPiiFreeEventType } from "@calcom/lib/piiFreeData";
6262
import { safeStringify } from "@calcom/lib/safeStringify";
6363
import { getTranslation } from "@calcom/lib/server/i18n";
File renamed without changes.

packages/features/bookings/lib/handleSeats/create/createNewSeat.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@ import { uuid } from "short-uuid";
44

55
import { sendScheduledSeatsEmailsAndSMS } from "@calcom/emails";
66
import { refreshCredentials } from "@calcom/features/bookings/lib/getAllCredentialsForUsersOnEvent/refreshCredentials";
7+
import { handlePayment } from "@calcom/features/bookings/lib/handlePayment";
78
import {
89
allowDisablingAttendeeConfirmationEmails,
910
allowDisablingHostConfirmationEmails,
1011
} from "@calcom/features/ee/workflows/lib/allowDisablingStandardEmails";
1112
import EventManager from "@calcom/lib/EventManager";
1213
import { ErrorCode } from "@calcom/lib/errorCodes";
1314
import { HttpError } from "@calcom/lib/http-error";
14-
import { handlePayment } from "@calcom/lib/payment/handlePayment";
1515
import prisma from "@calcom/prisma";
1616
import { BookingStatus } from "@calcom/prisma/enums";
1717
import { eventTypeAppMetadataOptionalSchema } from "@calcom/prisma/zod-utils";

0 commit comments

Comments
 (0)