import type { CheckoutMetrics } from '../domain/ports.js';

/** Simple in-process counter. */
export class InMemoryCheckoutMetrics implements CheckoutMetrics {
  success = 0;
  failure = 0;
  incSuccess(): void {
    this.success += 1;
  }
  incFailure(): void {
    this.failure += 1;
  }
  checkoutCompleted(_amountCents: number): void {
    this.success += 0;
  }
}
