amadeus-java icon indicating copy to clipboard operation
amadeus-java copied to clipboard

FlightOrder deviceType and documentType

Open steve-donovan opened this issue 1 year ago • 0 comments

Description

FlightOrder currently defines deviceType and documentType as String, they should really be enums for friendlier API

I noticed someone in discord with the issue.

as per spec

    "PhoneDeviceType": {
      "type": "string",
      "description": "Type of the device (Landline, Mobile or Fax)",
      "enum": [
        "MOBILE",
        "LANDLINE",
        "FAX"
      ]
    },
        "DocumentType": {
      "type": "string",
      "description": "the nature/type of the document",
      "enum": [
        "VISA",
        "PASSPORT",
        "IDENTITY_CARD",
        "KNOWN_TRAVELER",
        "REDRESS"
      ],
      "example": "VISA"
    },

steve-donovan avatar Aug 24 '22 10:08 steve-donovan