import type { PaymentProvider } from '../domain/ports.js';
import type { PaymentIntent } from '../domain/checkout.js';

/** Stub payment provider for v1. F-023 will replace with Stripe adapter. */
export class StubPaymentProvider implements PaymentProvider {
  async createIntent(input: {
    orderId: string;
    amountCents: number;
    currency: 'EUR';
  }): Promise<PaymentIntent> {
    return {
      id: `pi_${input.orderId}`,
      reference: `ref_${input.orderId}`,
      status: 'requires_payment',
    };
  }
}
