import {
  buildPassengerInfo,
  buildPaymentMethod,
  Employee,
  generateBookingId,
  getFiveDaysAgoDate,
  getOneMonthAheadDate
} from '@fixtures/navan_pro/reed_mackay_booking/common';
import { faker } from '@faker-js/faker';

export const buildBlackCarForEmployee = (employee: Employee) => {
  return {
    bookingStatus: 'CONFIRMED',
    bookingId: generateBookingId(),
    employeeId: employee.uuid,
    amount: faker.datatype.number({ max: 10000, min: 2000 }),
    cancelable: faker.datatype.boolean(),
    orderDateTime: getFiveDaysAgoDate(),
    serviceFee: faker.datatype.number({ max: 1000 }),
    currency: 'USD',
    confirmationNumber: '321654987',
    rentalCompanyName: 'Manual',
    vehicleMake: 'Economy',
    vehicleModel: 'Unknown',
    pickupTime: getOneMonthAheadDate(),
    departureAddress: 'Gatwick International Airport, United Kingdom',
    departureAddressDescription: 'ADDRESS',
    arrivalAddress: 'Heathrow Airport, United Kingdom',
    arrivalAddressDescription: 'ADDRESS',
    pickupLatitude: 51.15309906,
    pickupLongitude: -0.18131401,
    dropOffLatitude: 51.46699905,
    dropOffLongitude: -0.44999999,
    passengers: 0,
    bags: 0,
    personal: false,
    paymentMethod: buildPaymentMethod(),
    passengerInfo: [buildPassengerInfo(employee)]
  };
};
