big boi refactor to customer inof from passenger info
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user