/**
 * CompleteOnboarding ViewData Builder
 *
 * Transforms onboarding completion result into ViewData for templates.
 */

import { CompleteOnboardingOutputDTO } from '@/lib/types/generated/CompleteOnboardingOutputDTO';
import { CompleteOnboardingViewData } from './CompleteOnboardingViewData';

export class CompleteOnboardingViewDataBuilder {
  /**
   * Transform DTO into ViewData
   * 
   * @param apiDto - The API DTO to transform
   * @returns ViewData for templates
   */
  static build(apiDto: CompleteOnboardingOutputDTO): CompleteOnboardingViewData {
    return {
      success: apiDto.success,
      driverId: apiDto.driverId,
      errorMessage: apiDto.errorMessage,
    };
  }
}