big boi refactor to customer inof from passenger info

This commit is contained in:
user
2025-10-20 21:46:26 +03:00
parent 2cc0ca4c51
commit 2fdb934ec9
53 changed files with 702 additions and 2068 deletions

View File

@@ -1,4 +1,6 @@
import { getRedisInstance } from "$lib/server/redis";
import type { CustomerInfo } from "$lib/domains/passengerinfo/data/entities";
import type { PaymentDetailsPayload } from "$lib/domains/paymentinfo/data/entities";
import { db } from "@pkg/db";
import { isTimestampMoreThan1MinAgo } from "@pkg/logic/core/date.utils";
import type {
CreateCheckoutFlowPayload,
@@ -7,9 +9,6 @@ import type {
PrePaymentFlowStepPayload,
} from "../data/entities";
import { CheckoutFlowRepository } from "../data/repository";
import type { PassengerPII } from "$lib/domains/passengerinfo/data/entities";
import type { PaymentDetailsPayload } from "$lib/domains/paymentinfo/data/entities";
import { db } from "@pkg/db";
export class CheckoutFlowUseCases {
constructor(private repo: CheckoutFlowRepository) {}
@@ -55,7 +54,7 @@ export class CheckoutFlowUseCases {
return this.repo.executePaymentStep(flowId, payload);
}
async syncPersonalInfo(flowId: string, personalInfo: PassengerPII) {
async syncPersonalInfo(flowId: string, personalInfo: CustomerInfo) {
return this.repo.syncPersonalInfo(flowId, personalInfo);
}