src/Amadeus/Client/Struct/Fare/PricePNRWithBookingClass12.php
protected function convertTicketType($optionsTicketType)
    {
        $converted = null;

        $map = [
            FarePricePnrWithBookingClassOptions::TICKET_TYPE_ELECTRONIC => AttributeDetails::OVERRIDE_ELECTRONIC_TICKET,
            FarePricePnrWithBookingClassOptions::TICKET_TYPE_PAPER => AttributeDetails::OVERRIDE_PAPER_TICKET,
            FarePricePnrWithBookingClassOptions::TICKET_TYPE_BOTH => AttributeDetails::OVERRIDE_BOTH_TICKET,
        ];

        if (array_key_exists($optionsTicketType, $map)) {
            $converted = $map[$optionsTicketType];
        }

        return $converted;
    }
protected function convertTicketType($optionsTicketType)
    {
        $converted = null;

        $map = [
            FarePricePnrWithBookingClassOptions::TICKET_TYPE_ELECTRONIC => AttributeDetails::OVERRIDE_ELECTRONIC_TICKET,
            FarePricePnrWithBookingClassOptions::TICKET_TYPE_PAPER => AttributeDetails::OVERRIDE_PAPER_TICKET,
            FarePricePnrWithBookingClassOptions::TICKET_TYPE_BOTH => AttributeDetails::OVERRIDE_BOTH_TICKET,
        ];

        if (array_key_exists($optionsTicketType, $map)) {
            $converted = $map[$optionsTicketType];
        }

        return $converted;
    }
Convert new codes (Price PNR version 13+) to old format

@param string $optionsTicketType
@return string|null