import { generateRandomCurrency } from '@commerce-lib/shared';
const randomCurrency = generateRandomCurrency();
const totalAmount = parseFloat(randomCurrency) + 57.0;
export const localizationData = {
  german: {
    PayNowHotelReceipt: 'Hotelbeleg',
    PayNow: 'Sofortzahlung',
    EstimatedHotelCharges: 'Vorläufige Hotelkosten',
    PayLater: 'Später bezahlen',
    TotalPrice: 'Gesamtpreis',
    PaymentMethod: 'Zahlungsmethode/n',
    InTotal: 'Gesamt',
    TaxInvoice: 'Rechnung',
    NavanFee: 'Navan-Gebühren',
    NavanTripFee: 'Navan-Reisegebühr',
    ReservationMethod: 'Reservierungsart',
    EstimatedTotal: 'Geschätzte Gesamtsumme'
  },
  english: {
    HotelReceipt: 'Hotel receipt',
    PayNow: 'Pay now',
    Void: 'Voided',
    VoidTotalAmount: '0.00',
    TotalLabel: 'Totals',
    VAT_Disclosure:
      'This invoice cannot be used for the VAT/GST recovery if the form of payment is an AirPlus company account / debit account in Germany or Australia OR AMEX iBTA in Germany. In these cases, use the invoice issued by AirPlus/AMEX iBTA',
    PaymentMethod: 'Payment methods',
    Cancelled: 'Cancelled',
    TrainReceipt: 'Train receipt',
    address: 'Navan, Inc. 3045 Park Blvd Palo Alto, CA 94304 Tax ID: 216-632128',
    CorrectionReceipt: 'Correction Receipt',
    CorrectionOf: 'Correction of #',
    TripFeeCancel: '-$5.00',
    CreditNote: 'Credit Note',
    TaxInvoice: 'Tax Invoice',
    invoice: 'Invoice',
    NavanFee: '5.00',
    NavanTripFee: 'Navan Trip Fee',
    FlightReceipt: 'Flight receipt',
    bookingID: 'SPUVTO',
    baseAmount: parseFloat(randomCurrency),
    totalAmount: totalAmount,
    totalTaxAmount: 57.0,
    flightBookingUuid: '6d2471ad-150f-410c-be11-a81865abae12',
    usBookingTripURL:
      'https://staging-prime.navan.com/app/user2/trips/cc002847-9f3d-48ad-9be4-c4b63f6ecc65/itinerary?flightSegmentUuid=b216e504-3d31-4b59-bb66-e23d59cbb040',
    ticket: 'TICKET',
    void: 'VOID',
    sabre: 'SABRE',
    flight: 'FLIGHT',
    pricesListInUSD: 'All prices are listed in USD',
    visaCard: 'Corporate Visa Card ******1111'
  },
  french: {
    PayNowHotelReceipt: "Reçu de l'hôtel",
    PayNow: 'Payer maintenant',
    EstimatedHotelCharges: "Estimation des frais d'hôtel",
    PayLater: 'Payer plus tard',
    TotalPrice: 'Prix total',
    PaymentMethod: 'Modes de paiement',
    InTotal: 'Totaux',
    TaxInvoice: 'Facture fiscale',
    NavanFee: 'Frais Navan',
    NavanTripFee: 'Frais de voyage Navan',
    ReservationMethod: 'Mode de réservation',
    EstimatedTotal: 'Total estimé'
  },
  india_Tds: {
    tdsBookingTripURL:
      'https://staging-prime.navan.com/app/user2/trips/f3b1210b-42eb-46da-8181-91a430f3d5c2/itinerary?flightSegmentUuid=270206d5-0d47-46e6-a388-2424cf020df2',
    bookingUuID: 'cea87c48-2511-444b-a90f-36e7aff18daf',
    bookingID: 'I2JKT9CZA',
    tripFeeAmount: 250.0,
    ticketNumber: 'pi_3MOQEBGH72Jh8sPj1B8TtiVV',
    taxAmount: 2.0,
    transactionType: {
      other: 'OTHER',
      VOIDED: 'VOIDED',
      refund: 'REFUND',
      ticket: 'TICKET',
      tripFee: 'TRIP_FEE',
      exchange: 'EXCHANGE',
      baggage: 'BAGGAGE',
      seat_upgrade: 'SEAT'
    },
    providerType: 'OTHER',
    SGST: 'SGST(9%)',
    CGST: 'CGST(9%)',
    withHoldTax: 'TDS (Withholding Tax)',
    rs: '₹',
    signature: 'Authorized Signatory',
    india_tripFee_metaData: [
      {
        name: 'payment_method_uuid',
        value: '8482b14f-719f-46c2-904b-be9358cbee0f'
      },
      {
        name: 'disposition_id',
        value: null
      },
      {
        name: 'disposition_name',
        value: 'Flight'
      },
      {
        name: 'fee_model',
        value: 'Trip Fee Model INR Uni'
      },
      {
        name: 'description',
        value: 'NVN* TRP FEE %s'
      },
      {
        name: 'tax_rate',
        value: '18'
      },
      {
        name: 'taxable_amount',
        value: '324.58000000'
      }
    ],
    india_tax_amount: [
      {
        tax_amount: 29.21,
        currency: 'INR',
        supplier_amount: null,
        supplier_currency: null,
        tax_amount_in_usd: null,
        tax_code: 'GST',
        tax_rate: 9,
        tax_text: 'CGST'
      },
      {
        tax_amount: 29.21,
        currency: 'INR',
        supplier_amount: null,
        supplier_currency: null,
        tax_amount_in_usd: null,
        tax_code: 'GST',
        tax_rate: 9,
        tax_text: 'SGST'
      },
      {
        tax_amount: 6.49,
        currency: 'INR',
        supplier_amount: null,
        supplier_currency: null,
        tax_amount_in_usd: null,
        tax_code: 'TDS',
        tax_rate: 2,
        tax_text: 'WITHHOLDING'
      }
    ]
  },
  flight: {
    flight_void: {
      bookingID: 'TQQPPB',
      bookingUuID: '418628bd-e639-4d0d-8196-d4293485297e',
      tripURL:
        'https://staging-prime.navan.com/app/user2/trips/b81e2905-ac37-447d-84e2-d4bfa675dad4/itinerary?flightSegmentUuid=90ca56c2-22d4-4d9c-ad06-066a3a918daf',
      ticketType: {
        void: 'VOIDED',
        ticket: 'TICKET',
        refund: 'REFUND',
        exchange: 'EXCHANGE'
      },
      ticketNumber: '0067990061675',
      providerType: {
        sabre: 'SABRE',
        fareLogix: 'FARELOGIX',
        travelFusion: 'TRAVELFUSION'
      },
      inventoryType: {
        flight: 'FLIGHT',
        rail: 'RAIL',
        hotel: 'HOTEL'
      },
      sabre_us_coupons: [
        {
          originLocationCode: 'JFK',
          destinationLocationCode: 'DEN',
          airlineCode: 'DL',
          marketingAirlineCode: 'DL',
          fareBasisCode: 'KNCWGRDE',
          flightNumber: '508',
          statusCode: null,
          travelDate: '2024-04-27',
          departureTime: null,
          arrivalTime: null,
          classOfService: null
        },
        {
          originLocationCode: 'JFK',
          destinationLocationCode: 'DEN',
          airlineCode: 'DL',
          marketingAirlineCode: 'DL',
          fareBasisCode: 'KNCWGRDE',
          flightNumber: '7046',
          statusCode: null,
          travelDate: '2024-04-28',
          departureTime: null,
          arrivalTime: null,
          classOfService: null
        }
      ],
      tf_coupons: [
        {
          origin_location_code: 'SYD',
          destination_location_code: 'AVV',
          airline_code: 'JQ',
          marketing_airline_code: 'JQ',
          fare_basis_code: 'ELECOE2',
          flight_number: '609',
          status_code: null,
          travel_date: 1718841600000,
          arrival_time: null,
          departure_time: null,
          class_of_service: null
        }
      ]
    },
    flight_refund: {
      bookingID: 'TTDIGO',
      bookingUuID: 'ec1e24cb-afe5-4c72-9a35-1519335ea634',
      tripURL:
        'https://staging-prime.navan.com/app/user2/trips/283a46ee-9eaf-4138-b314-73962aa69627/itinerary?flightSegmentUuid=07221b5c-4274-4948-b4f7-f87bbe648cac',
      ticketNumber: '0067990031375',
      refund: 'Flight refund'
    },
    flight_exchange: {
      exchange: 'Flight exchange',
      bookingID: 'SQSLHQ',
      bookingUuID: 'f657ead3-e6d0-4f2a-8521-e40cdb4dedf1',
      trip_url:
        'https://staging-prime.navan.com/app/user2/trips/3c07d692-b10e-4fab-9a47-6205e49f2ae0/itinerary?flightSegmentUuid=ee2a5878-21dc-46bd-869e-ca450584e539',
      ticketNumber: '0067992211375',
      collected_amount: 99.3,
      exchangeTotalAmount: parseFloat((totalAmount + 99.3).toFixed(2))
    },
    flight_ancilliaries: {
      bookingID: 'RFKMSI',
      bookingUuID: '148a8b75-4cc8-44a1-bf0c-19081ad3ba1d',
      trip_url:
        'https://staging-prime.navan.com/app/user2/trips/93edd1f1-2160-48e3-96c4-37787169a603/itinerary?flightSegmentUuid=7ed444fa-8508-4fb8-80ce-ca9bcb37b09d',
      baggage_ticketNumber: '0067562211375',
      seat_ticketNumber: '0061232211375',
      seat_collected_amount: 21.45,
      baggage_collected_amount: 40.25,
      baggage: 'Baggage',
      seat: 'Seat assignment'
    },
    TF_GST: {
      bookingID: 'J2NYK9CZC',
      bookingUuID: '97f06ffe-2b09-451f-970e-6e39fc01bc75',
      trip_url:
        'https://staging-prime.navan.com/app/user2/trips/d8639fd2-3ef7-43f7-98cd-79553b1453d6/itinerary?flightSegmentUuid=10b21ccb-0971-4a51-b504-98948b411378',
      Au_currency: 'A$',
      airCC: 'Airline credit card surcharge',
      GST_tax: 'GST tax',
      totalAmount: parseFloat(randomCurrency)
    },
    tf_priorityBoarding: {
      bookingID: 'H1CDQH9UT',
      tripUrlBookingId: 'J2NYK9CZC', // booking associated with tripUrl
      bookingUuID: 'a55b7e3a-cc44-400e-8dbe-4d02b4ea3e44',
      // Below URL doesn't relate to the bookingID. It relates to tripUrlBookingId, fix it in the future.
      trip_url:
        'https://staging-prime.navan.com/app/user2/trips/d8639fd2-3ef7-43f7-98cd-79553b1453d6/itinerary?flightSegmentUuid=10b21ccb-0971-4a51-b504-98948b411378',
      airCC: 'Airline credit card surcharge',
      GST_tax: 'GST tax',
      totalAmount: parseFloat(randomCurrency),
      priorityBoarding: 'Priority boarding',
      priorityBoardingAmount: 26.43,
      ticketNumber: '0067990030944'
    },
    de_VAT: {
      bookingID: 'QYHARX',
      bookingUuID: 'bfb9358a-708d-4583-b785-70e8e3ac7008',
      ticketNumber: '22057505226735',
      gbp: '£',
      baseAmount: parseFloat(randomCurrency),
      vat_tax: 'VAT Tax',
      vat_percentage: 'VAT 19%',
      trip_url:
        'https://staging-prime.navan.com/app/user2/trips/7fe1daeb-b314-468e-8384-b7f293bee8c6/itinerary?flightSegmentUuid=83623cf0-99e7-4f70-a0fe-6a4a16166561'
    }
  },
  train: {
    train_booking: {
      bookingID: 'ZXT-CDV-UTK',
      bookingUuID: 'c44e5eeb-bf21-48f9-9a4c-cd91f97c0647',
      trip_url:
        'https://staging-prime.navan.com/app/user2/trips/fd66ddbf-2e95-401e-8fec-152c7372693b/itinerary',
      totalAmount: parseFloat(randomCurrency),
      providerType: {
        trainLine: 'TRAIN_LINE'
      },
      inventoryType: 'RAIL',
      metaData: [
        {
          name: 'carrier',
          value: 'Bene rail'
        },
        {
          name: 'supplier',
          value: 'TRAINLINE'
        },
        {
          name: 'travelers',
          value: '[{"first_name":"Margot","last_name":"Connelly"}]'
        },
        {
          name: 'train_legs',
          value:
            '[{"merchant_name":"Bene rail Eurostar 9459","from":"Paris Gare du Nord","to":"Bruxelles-Midi","departure_date_time":"2024-01-08T15:54","arrival_date_time":"2024-01-08T17:17","train_class":"Standard Class"},{"merchant_name":"Bene rail IC Brussel 9259","from":"Bruxelles-Midi","to":"Amsterdam-Centraal","departure_date_time":"2024-01-08T17:45","arrival_date_time":"2024-01-08T20:32","train_class":"Standard Class"}]'
        },
        {
          name: 'train_cancelled_legs',
          value: '[]'
        },
        {
          name: 'numOfTravelers',
          value: '1'
        },
        {
          name: 'ticketClasses',
          value: 'Travel class: Standard Class'
        },
        {
          name: 'providerBookingId',
          value: '287410818032'
        },
        {
          name: 'supplier_to_agency_conversion_rate',
          value: '1.059726166758509601119070832097'
        }
      ],
      transactionId: '6d03ea72-ca8f-44ab-930e-5c124b94afe6'
    },
    train_void: {
      bookingID: 'CR3-93U-QG2',
      bookingUuID: '6b46e042-931c-412e-a17c-2f2759332fe5',
      trip_url:
        'https://staging-prime.navan.com/app/user2/trips/91ff015c-b829-4bc6-b566-1bf645335770/itinerary',
      ticketNumber: '0067562345375',
      vatDisclosure1:
        'The invoice is issued on behalf and for the account of the respective service provider. The tax statement takes place with the VAT ID DE814160246 of DB Vertrieb GmbH, Stephensonstr. 1, 60326 Frankfurt am Main, Germany.',
      vatDisclosure2:
        'The VAT amount (as provided by Deutsche Bahn) is related only to the German part of the journey',
      vatTax: [
        {
          tax_code: 'VAT',
          tax_amount: 1.17,
          tax_text: 'VAT',
          currency: 'EUR',
          tax_amount_in_usd: 1.235,
          supplier_amount: 1.17,
          supplier_currency: 'EUR',
          tax_rate: 0.07
        }
      ],
      metadata: [
        {
          name: 'carrier',
          value: 'Deutsche Bahn'
        },
        {
          name: 'supplier',
          value: 'TRAINLINE'
        },
        {
          name: 'travelers',
          value: '[{"first_name":"Margot","last_name":"Connelly"}]'
        },
        {
          name: 'train_legs',
          value:
            '[{"merchant_name":"Deutsche Bahn ICE 76","from":"Frankfurt (Main) Hbf","to":"Erfurt Hbf","departure_date_time":"2024-01-10T12:14","arrival_date_time":"2024-01-10T14:26","train_class":"Standard Class"},{"merchant_name":"Deutsche Bahn ICE 708","from":"Erfurt Hbf","to":"Berlin Hbf (tief)","departure_date_time":"2024-01-10T14:32","arrival_date_time":"2024-01-10T16:22","train_class":"Standard Class"}]'
        },
        {
          name: 'train_cancelled_legs',
          value: '[]'
        },
        {
          name: 'numOfTravelers',
          value: '1'
        },
        {
          name: 'ticketClasses',
          value: 'Travel class: Standard Class'
        },
        {
          name: 'providerBookingId',
          value: '234408811239'
        },
        {
          name: 'supplier_to_agency_conversion_rate',
          value: '1.055542654478667482952986130170'
        }
      ]
    },
    train_refund: {
      bookingID: '3CU-AXA-36G',
      bookingUuID: '6e78e1c2-8ecb-42c7-93e1-083faf97dadc',
      trip_url:
        'https://staging-prime.navan.com/app/user2/trips/7a2226c9-5110-4725-a812-a485d0be5b28/itinerary',
      ticketNumber: '0067532455375',
      trainRefund: 'Train refund'
    }
  },
  hotel: {
    hotel_booking: {
      bookingID: '10009057062',
      bookingUuID: '7d8fd6d9-95a2-47e4-8ab3-9adb26bf69c4',
      trip_url:
        'https://staging-prime.navan.com/app/user2/trips/3c01bcef-d426-4e8f-8ccf-82b91386d11b/itinerary?hotelUuid=8b3f75cd-35c0-4567-9b90-67e7e0b1ed3a',
      totalAmount: parseFloat(randomCurrency),
      ticketNumber: '0067532455987',
      providerType: {
        priceline: 'PRICELINE'
      },
      inventoryType: 'HOTEL',
      metaData: [
        {
          name: 'SUPPLIER_NAME',
          value: 'Hotel 1550 - San Francisco International Airport West'
        },
        {
          name: 'SUPPLIER_ADDRESS',
          value:
            '{\n  "addressLine1" : "1550 El Camino Real",\n  "addressLine2" : null,\n  "city" : "San Bruno",\n  "state" : "CA",\n  "postalCode" : "94066",\n  "country" : "US"\n}'
        },
        {
          name: 'HOTEL_PROVIDER',
          value: 'PRICELINE'
        },
        {
          name: 'HOTEL_INVENTORY',
          value: 'CUG'
        },
        {
          name: 'PAYMENT_SCHEDULE',
          value: 'NOW'
        },
        {
          name: 'ROOM_GROUP_NAME',
          value: '1550 King Room'
        },
        {
          name: 'CHECK_IN_DATE',
          value: '2024-03-22'
        },
        {
          name: 'CHECK_OUT_DATE',
          value: '2024-03-23'
        },
        {
          name: 'CONFIRMATION_NUMBER',
          value: '493711435'
        },
        {
          name: 'ACCOUNT_CURRENCY',
          value: 'USD'
        },
        {
          name: 'ACCOUNT_CURRENCY_RATE',
          value: '1'
        },
        {
          name: 'DAILY_RATES',
          value:
            '[ {\n  "date" : "2024-03-22",\n  "price" : 168.180000000000000000000000000000,\n  "tax" : 67.070000000000000000000000000000000000000,\n  "fee" : 0E-9,\n  "total" : 235.250000000000000000000000000000000000000\n} ]'
        },
        {
          name: 'RESORT_FEE',
          value: '{\n  "amount" : 0E-30,\n  "currency" : "USD"\n}'
        }
      ]
    },
    hotel_void: {
      bookingID: '10009062152',
      bookingUuID: 'e2af4677-9861-4c90-b5f8-63ab49db376d',
      trip_url:
        'https://staging-prime.navan.com/app/user2/trips/c53b35a1-9751-412a-9a7c-e20155e0e1e6/itinerary?hotelUuid=c3f9a634-d605-4e4b-9072-f019e7c8fc2b',
      totalAmount: parseFloat(randomCurrency),
      ticketNumber: '0067532455765'
    },
    hotel_refund: {
      bookingID: '10009077242',
      bookingUuID: '4778bb55-4011-4406-b9e7-37a0b20becd6',
      trip_url:
        'https://staging-prime.navan.com/app/user2/trips/11e007a7-f0b3-436c-9cce-d0a8e3eebad8/itinerary?hotelUuid=8b3f75cd-35c0-4567-9b90-67e7e0b1ed3a',
      totalAmount: parseFloat(randomCurrency),
      ticketNumber: '0123532455765',
      refund: 'Hotel refund'
    }
  }
};
