Documentation
    Preparing search index...
    • Parameters

      • orderId: any

      Returns Promise<
          | DossierOpti
          | {
              accountingItems?: {
                  airlineCode?: string;
                  cardNumber?: string;
                  cardTypeCode?: string;
                  commission?: {
                      commissionAmount?: string;
                      commissionPercentage?: string;
                      currencyCode?: string;
                  };
                  creationType?: "Refund"
                  | "Exchange"
                  | "First Issuance";
                  currencyCode?: string;
                  fareAmount?: string;
                  fareApplicationType?:
                      | "Single Traveler"
                      | "All Travelers"
                      | "Each Traveler";
                  formOfPaymentType?: | "Unknown"
                  | "Cash"
                  | "Check"
                  | "Check or Cash"
                  | "Payment Card"
                  | "Masked Payment Card";
                  tariffBasisType?: "Domestic"
                  | "Foreign"
                  | "International";
                  taxAmount?: string;
                  ticketNumber?: string;
                  travelerIndices?: number[];
              }[];
              agencyCustomerNumber?: string;
              allSegments?: (
                  { id: string } & {
                      address?: {
                          city?: string;
                          countryCode?: string;
                          postalCode?: string;
                          stateProvince?: string;
                          street?: string;
                      } & { freeText?: string; name?: string };
                      date?: string;
                      endAddress?: {
                          city?: string;
                          countryCode?: string;
                          postalCode?: string;
                          stateProvince?: string;
                          street?: string;
                      } & { freeText?: string; name?: string };
                      endDate?: string;
                      endLocationCode?: string;
                      endTime?: string;
                      locationCode?: string;
                      startAddress?: {
                          city?: string;
                          countryCode?: string;
                          postalCode?: string;
                          stateProvince?: string;
                          street?: string;
                      } & { freeText?: string; name?: string };
                      startDate?: string;
                      startLocationCode?: string;
                      startTime?: string;
                      text?: string;
                      time?: string;
                      type: string;
                      vendorCode?: string;
                  }
              )[];
              bookingId?: string;
              cars?: (
                  { itemId: string } & {
                      carStatusCode?: string;
                      carStatusName?:
                          | "Unknown"
                          | "Confirmed"
                          | "On Request"
                          | "Pending"
                          | "Cancelled"
                          | "Unconfirmed"
                          | "Waitlisted"
                          | "Infant/No Seat"
                          | "Priority Waitlist"
                          | "Quote"
                          | "Space Available"
                          | "Pending Quote"
                          | "No Seat"
                          | "Standby";
                      collectionAddress?: {
                          city?: string;
                          countryCode?: string;
                          postalCode?: string;
                          stateProvince?: string;
                          street?: string;
                      };
                      collectionSite?: { id?: string; name?: string; phone?: string };
                      confirmationId?: string;
                      deliveryAddress?: {
                          city?: string;
                          countryCode?: string;
                          postalCode?: string;
                          stateProvince?: string;
                          street?: string;
                      };
                      deliverySite?: { id?: string; name?: string; phone?: string };
                      distanceAllowance?: string;
                      dropOffAddress?: {
                          city?: string;
                          countryCode?: string;
                          postalCode?: string;
                          stateProvince?: string;
                          street?: string;
                      } & { freeText?: string; name?: string };
                      dropOffContactInfo?: { emails?: string[] } & {
                          emergencyPhones?: string[];
                          faxes?: string[];
                          phones?: string[];
                      };
                      dropOffDate: string;
                      dropOffLocationCode?: string;
                      dropOffTime: string;
                      guaranteePaymentNote?: string;
                      isRefundable: boolean;
                      numberOfVehicles?: number;
                      payment?: {
                          currencyCode: string;
                          fees?: string;
                          subtotal?: string;
                          taxes?: string;
                          total: string;
                      };
                      pickUpAddress: {
                          city?: string;
                          countryCode?: string;
                          postalCode?: string;
                          stateProvince?: string;
                          street?: string;
                      } & { freeText?: string; name?: string };
                      pickUpContactInfo?: { emails?: string[] } & {
                          emergencyPhones?: string[];
                          faxes?: string[];
                          phones?: string[];
                      };
                      pickUpDate: string;
                      pickUpLocationCode?: string;
                      pickUpTime: string;
                      rateCode?: string;
                      refundPenalties?: {
                          applicableFromDate?: string;
                          applicableToDate?: string;
                          penalty: { amount: string; currencyCode: string };
                      }[];
                      specialInstructions?: string;
                      travelerIndex?: number;
                      vehicleTypeCode?: string;
                      vehicleTypeName?: | "Two/Three Door"
                      | "Two/Four Door"
                      | "Four/Five Door"
                      | "Wagon/Estate"
                      | "Passenger Van"
                      | "Limousine/Sedan"
                      | "Sport"
                      | "Convertible"
                      | "SUV"
                      | "Open Air All Terrain"
                      | "Special"
                      | "Pick up single/extended cab 2 door"
                      | "Pick up double cab 4 door"
                      | "Special Offer Car"
                      | "Coupe"
                      | "Monospace"
                      | "Recreational Vehicle"
                      | "Motor Home"
                      | "Two Wheel Vehicle"
                      | "Roadster"
                      | "Crossover"
                      | "Commercial Van/Truck";
                      vendorCode: string;
                      vendorName: string;
                  }
              )[];
              contactInfo?: { emails?: string[] } & {
                  emergencyPhones?: string[];
                  faxes?: string[];
                  phones?: string[];
              };
              creationDetails?: {
                  agencyIataNumber?: string;
                  creationDate?: string;
                  creationTime?: string;
                  creationUserSine?: string;
                  primeHostId?: string;
                  purchaseDeadlineDate?: string;
                  purchaseDeadlineTime?: string;
                  userHomePcc?: string;
                  userWorkPcc?: string;
              };
              cruises?: (
                  { itemId: string } & {
                      arrivalDate: string;
                      arrivalTime?: string;
                      cabinNumber?: string;
                      confirmationId?: string;
                      cruiseStatusCode?: string;
                      cruiseStatusName?:
                          | "Unknown"
                          | "Confirmed"
                          | "On Request"
                          | "Pending"
                          | "Cancelled"
                          | "Unconfirmed"
                          | "Waitlisted"
                          | "Infant/No Seat"
                          | "Priority Waitlist"
                          | "Quote"
                          | "Space Available"
                          | "Pending Quote"
                          | "No Seat"
                          | "Standby";
                      departureDate: string;
                      departureTime?: string;
                      fromPortCode: string;
                      numberOfGuests?: number;
                      shipCode?: string;
                      shipName?: string;
                      toPortCode?: string;
                      vendorCode: string;
                  }
              )[];
              endDate?: string;
              fareOffers?: {
                  cabinBaggageAllowance?: {
                      baggagePieces?: {
                          fee?: { amount: string; currencyCode: string };
                          isCheckInOnly?: boolean;
                          maximumSizeInCentimeters?: number;
                          maximumSizeInInches?: number;
                          maximumWeightInKilograms?: number;
                          maximumWeightInPounds?: number;
                          numberOfPieces: number;
                          specialItemDescription?: string;
                      }[];
                      maximumPieces?: number;
                      totalWeightInKilograms?: number;
                      totalWeightInPounds?: number;
                  };
                  cabinBaggageCharges?: {
                      fee?: { amount: string; currencyCode: string };
                      isCheckInOnly?: boolean;
                      maximumSizeInCentimeters?: number;
                      maximumSizeInInches?: number;
                      maximumWeightInKilograms?: number;
                      maximumWeightInPounds?: number;
                      numberOfPieces: number;
                      specialItemDescription?: string;
                  }[];
                  checkedBaggageAllowance?: {
                      baggagePieces?: {
                          fee?: { amount: string; currencyCode: string };
                          isCheckInOnly?: boolean;
                          maximumSizeInCentimeters?: number;
                          maximumSizeInInches?: number;
                          maximumWeightInKilograms?: number;
                          maximumWeightInPounds?: number;
                          numberOfPieces: number;
                          specialItemDescription?: string;
                      }[];
                      maximumPieces?: number;
                      totalWeightInKilograms?: number;
                      totalWeightInPounds?: number;
                  };
                  checkedBaggageCharges?: {
                      fee?: { amount: string; currencyCode: string };
                      isCheckInOnly?: boolean;
                      maximumSizeInCentimeters?: number;
                      maximumSizeInInches?: number;
                      maximumWeightInKilograms?: number;
                      maximumWeightInPounds?: number;
                      numberOfPieces: number;
                      specialItemDescription?: string;
                  }[];
                  flights?: { itemId: string }[];
                  travelerIndices?: number[];
              }[];
              fareRules?: {
                  destinationAirportCode?: string;
                  exchangePenalties?: {
                      applicability: "BEFORE_DEPARTURE"
                      | "AFTER_DEPARTURE";
                      conditionsApply: boolean;
                      penalty: { amount: string; currencyCode: string };
                  }[];
                  isChangeable?: boolean;
                  isRefundable?: boolean;
                  originAirportCode?: string;
                  owningAirlineCode: string;
                  passengerCode?: string;
                  refundPenalties?: {
                      applicability: "BEFORE_DEPARTURE"
                      | "AFTER_DEPARTURE";
                      conditionsApply: boolean;
                      penalty: { amount: string; currencyCode: string };
                  }[];
              }[];
              fares?: {
                  airlineCode?: string;
                  commission?: {
                      commissionAmount?: string;
                      commissionPercentage?: string;
                      currencyCode?: string;
                  };
                  creationDetails?: {
                      agencyIataNumber?: string;
                      creationDate?: string;
                      creationTime?: string;
                      creationUserSine?: string;
                      primeHostId?: string;
                      purchaseDeadlineDate?: string;
                      purchaseDeadlineTime?: string;
                      userHomePcc?: string;
                      userWorkPcc?: string;
                  };
                  fareCalculationLine?: string;
                  fareConstruction?: {
                      baseRate?: { amount: string; currencyCode: string };
                      brandAttributes?: { description?: string; itemId?: string }[];
                      brandFareCode?: string;
                      brandFareName?: string;
                      brandProgramCode?: string;
                      brandProgramName?: string;
                      checkedBaggageAllowance?: {
                          baggagePieces?: {
                              fee?: ...;
                              isCheckInOnly?: ...;
                              maximumSizeInCentimeters?: ...;
                              maximumSizeInInches?: ...;
                              maximumWeightInKilograms?: ...;
                              maximumWeightInPounds?: ...;
                              numberOfPieces: ...;
                              specialItemDescription?: ...;
                          }[];
                          maximumPieces?: number;
                          totalWeightInKilograms?: number;
                          totalWeightInPounds?: number;
                      };
                      fareBasisCode?: string;
                      flightIndices?: number[];
                      flights?: { itemId: string }[];
                      isCurrentItinerary?: boolean;
                  }[];
                  hasValidPricing: boolean;
                  isNegotiatedFare?: boolean;
                  pricedTravelerType?: string;
                  pricingStatusCode?: "A"
                  | "H";
                  pricingStatusName?: "Active" | "History";
                  pricingTypeCode?: "S" | "A" | "M";
                  pricingTypeName?: "Unknown" | "System" | "Amended" | "Manual";
                  recordId?: string;
                  recordTypeCode?: string;
                  recordTypeName?: string;
                  requestedTravelerType?: string;
                  taxBreakdown?: {
                      taxAmount?: { amount: string; currencyCode: string };
                      taxCode?: string;
                  }[];
                  totals?: {
                      currencyCode: string;
                      fees?: string;
                      subtotal?: string;
                      taxes?: string;
                      total: string;
                  };
                  tourCode?: string;
                  travelerIndices?: number[];
              }[];
              flights?: (
                  { itemId: string } & {
                      aircraftTypeCode?: string;
                      aircraftTypeName?: string;
                      airlineCode: string;
                      airlineName?: string;
                      arrivalDate: string;
                      arrivalGate?: string;
                      arrivalTerminalName?: string;
                      arrivalTime: string;
                      bookingClass?: string;
                      cabinTypeCode?: string;
                      cabinTypeName?: string;
                      confirmationId?: string;
                      departureDate: string;
                      departureGate?: string;
                      departureTerminalName?: string;
                      departureTime: string;
                      distanceInMiles?: number;
                      durationInMinutes?: number;
                      flightNumber: number;
                      flightStatusCode?: string;
                      flightStatusName?:
                          | "Unknown"
                          | "Confirmed"
                          | "On Request"
                          | "Pending"
                          | "Cancelled"
                          | "Unconfirmed"
                          | "Waitlisted"
                          | "Infant/No Seat"
                          | "Priority Waitlist"
                          | "Quote"
                          | "Space Available"
                          | "Pending Quote"
                          | "No Seat"
                          | "Standby";
                      fromAirportCode: string;
                      hiddenStopAircraftTypeCode?: string;
                      hiddenStopAircraftTypeName?: string;
                      hiddenStopAirportCode?: string;
                      hiddenStopArrivalDate?: string;
                      hiddenStopArrivalTime?: string;
                      hiddenStopDepartureDate?: string;
                      hiddenStopDepartureTime?: string;
                      hiddenStops?: {
                          aircraftTypeCode?: string;
                          aircraftTypeName?: string;
                          airportCode?: string;
                          arrivalDate?: string;
                          arrivalTime?: string;
                          departureDate?: string;
                          departureTime?: string;
                          durationInMinutes?: number;
                      }[];
                      identityDocuments?: {
                          itemId?: string;
                          status?: | "Unknown"
                          | "Confirmed"
                          | "On Request"
                          | "Pending"
                          | "Cancelled"
                          | "Unconfirmed"
                          | "Waitlisted"
                          | "Infant/No Seat"
                          | "Priority Waitlist"
                          | "Quote"
                          | "Space Available"
                          | "Pending Quote"
                          | "No Seat"
                          | "Standby";
                      }[];
                      isPast?: boolean;
                      meals?: {
                          code: string;
                          description: | "Meal"
                          | "Alcoholic beverages for purchase"
                          | "Breakfast"
                          | "Cold meal"
                          | "Complimentary alcoholic beverages"
                          | "Continental breakfast"
                          | "Dinner"
                          | "Food for purchase"
                          | "Food and beverage for purchase"
                          | "Hot meal"
                          | "Lunch"
                          | "No meal service"
                          | "Refreshment"
                          | "Refreshment for purchase"
                          | "Snack";
                      }[];
                      numberOfSeats?: number;
                      operatingAirlineCode?: string;
                      operatingAirlineName?: string;
                      operatingFlightNumber?: number;
                      seats?: {
                          characteristics?: string[];
                          number: string;
                          statusCode?: string;
                          statusName?: | "Unknown"
                          | "Confirmed"
                          | "On Request"
                          | "Pending"
                          | "Cancelled"
                          | "Unconfirmed"
                          | "Waitlisted"
                          | "Infant/No Seat"
                          | "Priority Waitlist"
                          | "Quote"
                          | "Space Available"
                          | "Pending Quote"
                          | "No Seat"
                          | "Standby";
                      }[];
                      sourceType?: "NDC"
                      | "LCC"
                      | "ATPCO";
                      toAirportCode: string;
                      travelerIndices?: number[];
                      updatedArrivalDate?: string;
                      updatedArrivalTime?: string;
                      updatedDepartureDate?: string;
                      updatedDepartureTime?: string;
                  }
              )[];
              flightTickets?: {
                  agencyIataNumber?: string;
                  airlineCode: string;
                  allCoupons?: (
                      {
                          couponStatus: | "Airport Control"
                          | "Lifted"
                          | "Checked In"
                          | "Exchanged"
                          | "Flown"
                          | "Not Flown"
                          | "Refunded"
                          | "Voided"
                          | "Printed"
                          | "Okay"
                          | "Reactivated"
                          | "Irregular Operations"
                          | "Print Exchange"
                          | "Paper Ticket"
                          | "Suspended"
                          | "Locked";
                          couponStatusCode: | "AL"
                          | "PE"
                          | "XX"
                          | "S"
                          | "P"
                          | "B"
                          | "E"
                          | "BD"
                          | "CK"
                          | "I"
                          | "RF"
                          | "V"
                          | "PR"
                          | "IO"
                          | "T";
                      } & { itemId?: string }
                  )[];
                  commission?: {
                      commissionAmount?: string;
                      commissionPercentage?: string;
                      currencyCode?: string;
                  };
                  date: string;
                  flightCoupons: (
                      { itemId: string } & {
                          couponStatus:
                              | "Airport Control"
                              | "Lifted"
                              | "Checked In"
                              | "Exchanged"
                              | "Flown"
                              | "Not Flown"
                              | "Refunded"
                              | "Voided"
                              | "Printed"
                              | "Okay"
                              | "Reactivated"
                              | "Irregular Operations"
                              | "Print Exchange"
                              | "Paper Ticket"
                              | "Suspended"
                              | "Locked";
                          couponStatusCode: | "AL"
                          | "PE"
                          | "XX"
                          | "S"
                          | "P"
                          | "B"
                          | "E"
                          | "BD"
                          | "CK"
                          | "I"
                          | "RF"
                          | "V"
                          | "PR"
                          | "IO"
                          | "T";
                      }
                  )[];
                  number: string;
                  payment: {
                      currencyCode: string;
                      fees?: string;
                      subtotal?: string;
                      taxes?: string;
                      total: string;
                  };
                  ticketingPcc?: string;
                  ticketStatusCode?: string;
                  ticketStatusName?: "Voided"
                  | "Issued"
                  | "Refunded/Exchanged";
                  travelerIndex: number;
              }[];
              futureTicketingPolicy?: {
                  comment?: string;
                  queueNumber?: string;
                  ticketingDate?: string;
                  ticketingPcc?: string;
                  ticketingTime?: string;
              };
              hotels?: (
                  { itemId: string } & {
                      address: {
                          city?: string;
                          countryCode?: string;
                          postalCode?: string;
                          stateProvince?: string;
                          street?: string;
                      } & { freeText?: string; name?: string } & { cityCode?: string };
                      associatedFlightDetails?: {
                          arrivalAirlineCode?: string;
                          arrivalFlightNumber?: number;
                          arrivalTime?: string;
                          departureAirlineCode?: string;
                          departureFlightNumber?: number;
                          departureTime?: string;
                      };
                      chainCode?: string;
                      chainName?: string;
                      checkInDate: string;
                      checkInTime: string;
                      checkOutDate: string;
                      checkOutTime: string;
                      confirmationId?: string;
                      contactInfo?: { emails?: string[] } & {
                          emergencyPhones?: string[];
                          faxes?: string[];
                          phones?: string[];
                      };
                      corporateDiscountCode?: number;
                      guaranteePaymentNote?: string;
                      guaranteeTypeCode?: number;
                      guaranteeTypeName?: | "Credit card"
                      | "Travel agency name/address"
                      | "Travel agency IATA number"
                      | "Company name/address"
                      | "Corporate ID/CD number"
                      | "Virtual card";
                      hotelName: string;
                      hotelStatusCode?: string;
                      hotelStatusName?: | "Unknown"
                      | "Confirmed"
                      | "On Request"
                      | "Pending"
                      | "Cancelled"
                      | "Unconfirmed"
                      | "Waitlisted"
                      | "Infant/No Seat"
                      | "Priority Waitlist"
                      | "Quote"
                      | "Space Available"
                      | "Pending Quote"
                      | "No Seat"
                      | "Standby";
                      isRefundable: boolean;
                      leadTravelerIndex?: number;
                      numberOfGuests?: number;
                      payment?: {
                          currencyCode: string;
                          fees?: string;
                          subtotal?: string;
                          taxes?: string;
                          total: string;
                      };
                      paymentPolicy?: "DEPOSIT"
                      | "GUARANTEE"
                      | "LATE";
                      propertyId?: string;
                      refundPenalties?: {
                          applicableFromDate?: string;
                          applicableToDate?: string;
                          penalty: { amount: string; currencyCode: string };
                      }[];
                      refundPenaltyPolicyCode?: string;
                      room?: {
                          agencyCommission?: {
                              commissionAmount?: string;
                              commissionPercentage?: string;
                              currencyCode?: string;
                          };
                          description?: string;
                          productCode?: string;
                          quantity: number;
                          roomRate?: { amount: string; currencyCode: string };
                          roomType: string;
                          roomTypeCode?: string;
                          travelerIndices?: number[];
                      };
                      sabrePropertyId?: string;
                      sourceTypeCode?: number;
                      sourceTypeName?: | "Unknown"
                      | "Legacy"
                      | "Sabre GDS"
                      | "Expedia Associate Network"
                      | "HotelBeds.com"
                      | "Booking.com"
                      | "CMNet";
                      specialInstructions?: string;
                  }
              )[];
              isCancelable?: boolean;
              isTicketed?: boolean;
              journeys?: {
                  departureDate: string;
                  departureTime: string;
                  firstAirportCode: string;
                  lastAirportCode: string;
                  numberOfFlights: number;
              }[];
              nonElectronicTickets?: {
                  date?: string;
                  ticketingPcc?: string;
                  ticketingUserCode?: string;
                  ticketNumber?: string;
                  ticketStatus?: "Unknown"
                  | "Active"
                  | "Inactive";
                  time?: string;
                  travelerIndex?: number;
              }[];
              otherServices?: {
                  airlineCode?: string;
                  chainCode?: string;
                  serviceMessage?: string;
                  travelerIndex?: number;
                  vendorCode?: string;
              }[];
              payments?: {
                  carTotals?: {
                      currencyCode: string;
                      fees?: string;
                      subtotal?: string;
                      taxes?: string;
                      total: string;
                  }[];
                  flightCurrentTotals?: {
                      currencyCode: string;
                      fees?: string;
                      subtotal?: string;
                      taxes?: string;
                      total: string;
                  }[];
                  flightTotals?: {
                      currencyCode: string;
                      fees?: string;
                      subtotal?: string;
                      taxes?: string;
                      total: string;
                  }[];
                  formsOfPayment?: (
                      {
                          airlinePlanCode?: string;
                          cardNumber?: string;
                          cardSecurityCode?: string;
                          cardTypeCode?: string;
                          expiryDate?: string;
                          extendedPayment?: number;
                          installmentAmount?: string;
                          miscellaneousCreditCode?: string;
                          numberOfInstallments?: number;
                      } & {
                          agencyAddress?: {
                              city?: string;
                              countryCode?: string;
                              postalCode?: string;
                              stateProvince?: string;
                              street?: string;
                          } & { freeText?: string; name?: string };
                          agencyIataNumber?: string;
                          authentications?: {
                              amount?: string;
                              cardNumberCollectionCode?: string;
                              channelCode?: string;
                              currencyCode?: string;
                              electronicCommerceIndicator?: string;
                              exemptionTypeCode?: string;
                              issueCode?: string;
                              mandateTypeCode?: string;
                              merchantName?: string;
                              originalPaymentReference?: string;
                              resultCode?: string;
                              secureAuthenticationValue?: string;
                              secureTransactionId?: string;
                              tokenAuthenticationValue?: string;
                              updatedDateTime?: string;
                              verificationResultCode?: string;
                              version?: string;
                          }[];
                          cardHolder?: {
                              address?: {
                                  city?: string;
                                  countryCode?: string;
                                  postalCode?: string;
                                  stateProvince?: string;
                                  street?: string;
                              };
                              email?: string;
                              givenName: string;
                              phone?: string;
                              surname: string;
                          };
                          companyAddress?: {
                              city?: string;
                              countryCode?: string;
                              postalCode?: string;
                              stateProvince?: string;
                              street?: string;
                          } & { freeText?: string; name?: string };
                          corporateId?: string;
                          docketDescription?: string;
                          docketIssuingAgentInitials?: string;
                          docketNumber?: string;
                          docketPrefix?: string;
                          governmentTravelRequestDescription?: string;
                          invoiceDescription?: string;
                          isAgencyPaymentCard?: boolean;
                          manualApproval?: {
                              airlineCode: string;
                              amount: string;
                              code: string;
                              currencyCode: string;
                              expiryDateTime: string;
                              requestDateTime: string;
                          };
                          netBalance?: string;
                          tripType?: | "All"
                          | "Unknown"
                          | "Corporate/Business"
                          | "Leisure"
                          | "Emergency"
                          | "Family"
                          | "Group";
                          tripTypes?: (
                              | "All"
                              | "Unknown"
                              | "Corporate/Business"
                              | "Leisure"
                              | "Emergency"
                              | "Family"
                              | "Group"
                          )[];
                          type: | "INVOICE"
                          | "CORPORATE"
                          | "PAYMENTCARD"
                          | "CASH"
                          | "CHECK"
                          | "MISCELLANEOUS"
                          | "INSTALLMENTS"
                          | "VIRTUAL_CARD"
                          | "AGENCY_NAME"
                          | "AGENCY_IATA"
                          | "COMPANY_NAME"
                          | "VOUCHER"
                          | "DOCKET"
                          | "GOVERNMENT_TRAVEL_REQUEST";
                          useType?: | "All"
                          | "Other"
                          | "Tour"
                          | "Unknown"
                          | "Ancillary"
                          | "Hotel"
                          | "Car"
                          | "Cruise"
                          | "Airline"
                          | "Bus/Ground Transportation"
                          | "Insurance"
                          | "Low-Cost Carrier"
                          | "Rail"
                          | "Specialty Service"
                          | "Interface Record";
                          useTypes?: (
                              | "All"
                              | "Other"
                              | "Tour"
                              | "Unknown"
                              | "Ancillary"
                              | "Hotel"
                              | "Car"
                              | "Cruise"
                              | "Airline"
                              | "Bus/Ground Transportation"
                              | "Insurance"
                              | "Low-Cost Carrier"
                              | "Rail"
                              | "Specialty Service"
                              | "Interface Record"
                          )[];
                          virtualCard?: {
                              agencyEmail?: string;
                              customerAccountCode?: string;
                              hotelFax?: string;
                              hotelName?: string;
                              rateAmount?: { amount: string; currencyCode: string };
                              roomDescription?: string;
                              roomType?: string;
                              virtualCardCharges?: string[];
                          };
                          voucher?: { billingNumber?: string; type?: string };
                      }
                  )[];
                  hotelTotals?: {
                      currencyCode: string;
                      fees?: string;
                      subtotal?: string;
                      taxes?: string;
                      total: string;
                  }[];
                  trainTotals?: {
                      currencyCode: string;
                      fees?: string;
                      subtotal?: string;
                      taxes?: string;
                      total: string;
                  }[];
              };
              remarks?: {
                  alphaCode?: string;
                  text?: string;
                  type?: | "INVOICE"
                  | "ITINERARY"
                  | "GENERAL"
                  | "HISTORICAL"
                  | "CLIENT_ADDRESS"
                  | "ALPHA_CODED"
                  | "DELIVERY_ADDRESS"
                  | "HIDDEN"
                  | "CORPORATE"
                  | "FORM_OF_PAYMENT"
                  | "PRINT_ON_TICKET"
                  | "FILLER_STRIP"
                  | "INTERFACE"
                  | "QUEUE_PLACE";
              }[];
              retentionEndDate?: string;
              retentionLabel?: string;
              specialServices?: {
                  code?: string;
                  flights?: { itemId: string }[];
                  message?: string;
                  name?: string;
                  statusCode?: string;
                  statusName?:
                      | "Unknown"
                      | "Confirmed"
                      | "On Request"
                      | "Pending"
                      | "Cancelled"
                      | "Unconfirmed"
                      | "Waitlisted"
                      | "Infant/No Seat"
                      | "Priority Waitlist"
                      | "Quote"
                      | "Space Available"
                      | "Pending Quote"
                      | "No Seat"
                      | "Standby";
                  travelerIndices?: number[];
              }[];
              startDate?: string;
              trains?: (
                  { itemId: string } & {
                      arrivalDate: string;
                      arrivalTime: string;
                      confirmationId?: string;
                      departureDate: string;
                      departureTime: string;
                      fromStationCode: string;
                      fromStationName?: string;
                      isRefundable?: boolean;
                      operatingVendorCode?: string;
                      operatingVendorName?: string;
                      payment?: {
                          currencyCode: string;
                          fees?: string;
                          subtotal?: string;
                          taxes?: string;
                          total: string;
                      };
                      toStationCode: string;
                      toStationName?: string;
                      trainName?: string;
                      trainNumber: string;
                      trainStatusCode?: string;
                      trainStatusName?: | "Unknown"
                      | "Confirmed"
                      | "On Request"
                      | "Pending"
                      | "Cancelled"
                      | "Unconfirmed"
                      | "Waitlisted"
                      | "Infant/No Seat"
                      | "Priority Waitlist"
                      | "Quote"
                      | "Space Available"
                      | "Pending Quote"
                      | "No Seat"
                      | "Standby";
                      vendorCode: string;
                      vendorName?: string;
                  }
              )[];
              travelers?: {
                  address?: {
                      city?: string;
                      countryCode?: string;
                      postalCode?: string;
                      stateProvince?: string;
                      street?: string;
                  } & { freeText?: string; name?: string };
                  ancillaries?: {
                      airlineCode?: string;
                      commercialName?: string;
                      electronicMiscellaneousDocumentNumber?: string;
                      flightApplicabilityType?: "Unknown" | "Single" | "Multiple";
                      flights?: { itemId: string }[];
                      isCommissionable?: boolean;
                      isRefundable?: boolean;
                      itemId?: string;
                      numberOfItems?: number;
                      reasonForIssuanceCode?: string;
                      reasonForIssuanceName?:
                          | "UNKNOWN"
                          | "AIR_TRANSPORTATION"
                          | "SURFACE_TRANSPORTATION_NON_AIR_SERVICES"
                          | "BAGGAGE"
                          | "FINANCIAL_IMPACT"
                          | "AIRPORT_SERVICES"
                          | "MERCHANDISE"
                          | "INFLIGHT_SERVICES"
                          | "INDIVIDUAL_AIRLINE_USE";
                      source?: "ATPCO"
                      | "MERCHANDISING_MANAGER";
                      statusCode?: string;
                      statusName?:
                          | "Confirmed"
                          | "Confirmed with EMD issued"
                          | "On Request"
                          | "Pending"
                          | "Cancelled"
                          | "Unconfirmed"
                          | "Confirmed with pending payment"
                          | "Schedule change";
                      subcode?: string;
                      totals?: {
                          currencyCode: string;
                          fees?: string;
                          subtotal?: string;
                          taxes?: string;
                          total: string;
                      };
                      vendorCode?: string;
                  }[];
                  birthDate?: string;
                  emails?: string[];
                  formOfPaymentIndices?: number[];
                  gender?: | "FEMALE"
                  | "MALE"
                  | "INFANT_FEMALE"
                  | "INFANT_MALE"
                  | "UNDISCLOSED"
                  | "UNDEFINED";
                  givenName: string;
                  identityDocuments?: {
                      birthDate?: string;
                      documentNumber?: string;
                      documentSubType?: "RUC"
                      | "CUIT/CUIL"
                      | "NIT";
                      documentType:
                          | "MILITARY"
                          | "PASSPORT"
                          | "VISA"
                          | "SECURE_FLIGHT_PASSENGER_DATA"
                          | "RESIDENCE_ADDRESS"
                          | "DESTINATION_ADDRESS"
                          | "KNOWN_TRAVELER_NUMBER"
                          | "REDRESS_NUMBER"
                          | "ALIEN_RESIDENT"
                          | "PERMANENT_RESIDENT"
                          | "FACILITATION_DOCUMENT"
                          | "NATIONAL_ID_CARD"
                          | "NEXUS_CARD"
                          | "NATURALIZATION_CERTIFICATE"
                          | "REFUGEE_REENTRY_PERMIT"
                          | "BORDER_CROSSING_CARD"
                          | "FISCAL_ID";
                      expiryDate?: string;
                      flightIndices?: number[];
                      gender?: | "FEMALE"
                      | "MALE"
                      | "INFANT_FEMALE"
                      | "INFANT_MALE"
                      | "UNDISCLOSED"
                      | "UNDEFINED";
                      givenName?: string;
                      hostCountryCode?: string;
                      isLapChildDocument?: boolean;
                      isPrimaryDocumentHolder?: boolean;
                      issueDate?: string;
                      issuingCountryCode?: string;
                      itemId?: string;
                      middleName?: string;
                      placeOfBirth?: string;
                      placeOfIssue?: string;
                      residenceCountryCode?: string;
                      residenceDestinationAddress?: {
                          city?: string;
                          countryCode?: string;
                          postalCode?: string;
                          stateProvince?: string;
                          street?: string;
                      };
                      surname?: string;
                  }[];
                  isGrouped?: boolean;
                  loyaltyPrograms?: {
                      programNumber: string;
                      programType?: | "FREQUENT_FLYER"
                      | "FREQUENT_RENTER"
                      | "LOYALTY_ID"
                      | "CORPORATE_LOYALTY_ID";
                      receiverCode?: string;
                      supplierCode?: string;
                      tierLevel?: number;
                  }[];
                  middleName?: string;
                  nameAssociationId?: string;
                  nameReferenceCode?: string;
                  passengerCode?: string;
                  phones?: { label?: string; number: string }[];
                  remarks?: {
                      alphaCode?: string;
                      text?: string;
                      type?:
                          | "INVOICE"
                          | "ITINERARY"
                          | "GENERAL"
                          | "HISTORICAL"
                          | "CLIENT_ADDRESS"
                          | "ALPHA_CODED"
                          | "DELIVERY_ADDRESS"
                          | "HIDDEN"
                          | "CORPORATE"
                          | "FORM_OF_PAYMENT"
                          | "PRINT_ON_TICKET"
                          | "FILLER_STRIP"
                          | "INTERFACE"
                          | "QUEUE_PLACE";
                  }[];
                  surname: string;
                  type?: | "ADULT"
                  | "AGENT"
                  | "AIRLINE"
                  | "CHILD"
                  | "EDUCATION"
                  | "GOVERNMENT"
                  | "GROUP"
                  | "INFANT"
                  | "MILITARY"
                  | "SENIOR"
                  | "SPECIAL"
                  | "YOUTH";
              }[];
              travelersGroup?: {
                  itemId?: string;
                  name?: string;
                  numberOfTravelers?: number;
                  numberOfTravelersRemaining?: number;
              };
          } & {
              bookingSignature?: string;
              errors?: {
                  category: string;
                  description?: string;
                  fieldName?: string;
                  fieldPath?: string;
                  fieldValue?: string;
                  type: string;
              }[];
              request?: {
                  bookingSource?: "SABRE"
                  | "SABRE_ORDER";
                  confirmationId: string;
                  extraFeatures?: { returnEmptySeatObjects: boolean } & {
                      returnFiscalId: boolean;
                      returnFrequentRenter: boolean;
                      returnWalletFormsOfPayment: boolean;
                  } & Record<string, never>;
                  givenName?: string;
                  middleName?: string;
                  returnOnly?: (
                      | "FLIGHTS"
                      | "FLIGHT_PENALTY"
                      | "BAGGAGE_POLICY"
                      | "JOURNEYS"
                      | "HOTELS"
                      | "HOTEL_ADDRESS"
                      | "CARS"
                      | "CAR_RENTAL_ADDRESS"
                      | "CAR_RENTAL_PENALTY"
                      | "TRAINS"
                      | "CRUISES"
                      | "ALL_SEGMENTS"
                      | "TRAVELERS"
                      | "TICKETS"
                      | "PAYMENTS"
                      | "PENALTIES"
                      | "REMARKS"
                      | "IS_CANCELABLE"
                      | "IS_TICKETED"
                      | "CONTACT_INFO"
                      | "OTHER_SERVICES"
                      | "SPECIAL_SERVICES"
                      | "FARES"
                      | "CREATION_DETAILS"
                      | "ANCILLARIES"
                      | "FORMS_OF_PAYMENT"
                      | "RETENTION_DATE"
                      | "ACCOUNTING_ITEMS"
                      | "NON_ELECTRONIC_TICKETS"
                  )[];
                  surname?: string;
                  targetPcc?: string;
                  unmaskPaymentCardNumbers?: boolean;
              };
              timestamp?: string;
          }
          | { error: any },
      >