import { Money } from '@commercetools/platform-sdk'; export type Session = { id: string; version: number; createdAt: string; lastModifiedAt: string; state: 'ACTIVE' | 'EXPIRED'; activeCart?: { cartRef: { id: string; }; }; customer?: { customerRef: { externalId?: string; id?: string; key?: string; }; anonymousId?: string; }; metadata?: { [key: string]: unknown; }; }; export interface SessionService { verifySession(sessionId: string): Promise; getCartFromSession(session: Session): string; getAllowedPaymentMethodsFromSession(session: Session): string[]; getProcessorUrlFromSession(session: Session): string; getPaymentInterfaceFromSession(session: Session): string | undefined; getCheckoutTransactionItemIdFromSession(session: Session): string | undefined; getMerchantReturnUrlFromSession(session: Session): string | undefined; getFutureOrderNumberFromSession(session: Session): string | undefined; getGiftCardPlannedAmountFromSession(session: Session): Money | undefined; getCorrelationIdFromSession(session: Session): string | undefined; }