Code Monkey home page Code Monkey logo

Comments (6)

DerMika avatar DerMika commented on June 1, 2024

I'm not sure how I can help you solve this. I don't know what's the message being sent to Amadeus, I don't know whether or not you're doing an End Transact after adding SRDOCS, I don't know whether your Passenger ID's match with the reference you provide in this sample code.

If you want me to be able to help you, you have tell me about the workflow surrounding this call, and you have to provide me some logs about what is being sent to Amadeus and what result you're getting versus what you expect.

from amadeus-ws-client.

DaoCastro avatar DaoCastro commented on June 1, 2024

my problem is no save srdoc for traveller

$pnrResult = $client->pnrRetrieve(
new PnrRetrieveOptions(['recordLocator' => "6EJRYC"]),
['endSession' => true]
);

$opt=new PnrCreatePnrOptions([
'elements' =>[
new ServiceRequest([
'type' => 'DOCS',
'status' => ServiceRequest::STATUS_HOLD_CONFIRMED,
'quantity' => 1,
'company' => 'AV',
'freeText' => [
'-----01APR93-F--TERESA-CAMPOS'
],
'references' => [
new Reference([
'type' => Reference::TYPE_PASSENGER_REQUEST,
'id' => 1
])
]
])
]
]);
$createdPnr = $client->pnrCreatePnr($opt);

$pnrReply =$client->pnrAddMultiElements(
new PnrAddMultiElementsOptions([
'actionCode' => PnrAddMultiElementsOptions::ACTION_END_TRANSACT_RETRIEVE //ET: END AND RETRIEVE
])
);

from amadeus-ws-client.

DerMika avatar DerMika commented on June 1, 2024

Have you checked if you get any kind of error?

from amadeus-ws-client.

DaoCastro avatar DaoCastro commented on June 1, 2024

Yes and does not have any errors

from amadeus-ws-client.

DaoCastro avatar DaoCastro commented on June 1, 2024

this is the result

{"pnrHeader":{"reservationInfo":{"reservation":{"companyId":"1A","controlNumber":"6EJRYC","date":"220317","time":"1803"}}},"securityInformation":{"responsibilityInformation":{"typeOfPnrElement":"RP","agentId":"WSSU","officeId":"JFK1S210L","iataCode":"33598482"},"queueingInformation":{"queueingOfficeId":"JFK1S210L"},"cityCode":"JFK","secondRpInformation":{"creationOfficeId":"JFK1S210L","agentSignature":"9998WS","creationDate":"220317","creatorIataCode":"33598482","creationTime":"1654"}},"freetextData":{"freetextDetail":{"subjectQualifier":"3","type":"P12"},"longFreetext":"--- RLR SFP ---"},"pnrHeaderTag":{"statusInformation":[{"indicator":"RLR"},{"indicator":"SFP"}]},"sbrPOSDetails":{"sbrUserIdentificationOwn":{"originIdentification":{"originatorId":"33598482","inHouseIdentification1":"JFK1S210L"},"originatorTypeCode":"T"},"sbrSystemDetails":{"deliveringSystem":{"companyId":"1A","locationId":"JFK"}},"sbrPreferences":{"userPreferences":{"codedCountry":"US"}}},"sbrCreationPosDetails":{"sbrUserIdentificationOwn":{"originIdentification":{"originatorId":"33598482","inHouseIdentification1":"JFK1S210L"},"originatorTypeCode":"T"},"sbrSystemDetails":{"deliveringSystem":{"companyId":"1A","locationId":"JFK"}},"sbrPreferences":{"userPreferences":{"codedCountry":"US"}}},"sbrUpdatorPosDetails":{"sbrUserIdentificationOwn":{"originIdentification":{"originatorId":"33598482","inHouseIdentification1":"JFK1S210L"},"originatorTypeCode":"T"},"sbrSystemDetails":{"deliveringSystem":{"companyId":"1A","locationId":"JFK"}},"sbrPreferences":{"userPreferences":{"codedCountry":"US"}}},"technicalData":{"enveloppeNumberData":{"sequenceDetails":{"number":"53"}},"lastTransmittedEnvelopeNumber":{"currentRecord":"52"},"purgeDateData":{"dateTime":{"year":"2017","month":"6","day":"1"}}},"travellerInfo":{"elementManagementPassenger":{"reference":{"qualifier":"PT","number":"2"},"segmentName":"NM","lineNumber":"1"},"passengerData":{"travellerInformation":{"traveller":{"surname":"HERNANDEZ","quantity":"1"},"passenger":{"firstName":"PEDRO","type":"ADT"}},"dateOfBirth":{"dateAndTimeDetails":{"qualifier":"706","date":"01021991"}}},"enhancedPassengerData":{"enhancedTravellerInformation":{"travellerNameInfo":{"quantity":"1","type":"ADT"},"otherPaxNamesDetails":{"nameType":"UN","referenceName":"Y","displayedName":"Y","surname":"HERNANDEZ","givenName":"PEDRO"}},"dateOfBirthInEnhancedPaxData":{"dateAndTimeDetails":{"qualifier":"706","date":"01021991"}}}},"originDestinationDetails":{"originDestination":{},"itineraryInfo":{"elementManagementItinerary":{"reference":{"qualifier":"ST","number":"1"},"segmentName":"AIR","lineNumber":"2"},"travelProduct":{"product":{"depDate":"010617","depTime":"1945","arrDate":"020617","arrTime":"0220","dayChangeIndicator":"1"},"boardpointDetail":{"cityCode":"SAL"},"offpointDetail":{"cityCode":"JFK"},"companyDetail":{"identification":"AV"},"productDetails":{"identification":"670","classOfService":"K"},"typeDetail":{"detail":"ET"}},"itineraryMessageAction":{"business":{"function":"1"}},"itineraryReservationInfo":{"reservation":{"companyId":"AV","controlNumber":"6EJRYC"}},"relatedProduct":{"quantity":"1","status":"HK"},"elementsIndicators":{"statusInformation":{"indicator":"TSA"}},"flightDetail":{"productDetails":{"equipment":"320","numOfStops":"0","weekDay":"4"},"arrivalStationInfo":{"terminal":"4"},"facilities":{"entertainement":"M","entertainementDescription":"D"}},"selectionDetails":{"selection":{"option":"P2"}},"markerRailTour":{}}},"dataElementsMaster":{"marker2":{},"dataElementsIndiv":[{"elementManagementData":{"reference":{"qualifier":"OT","number":"3"},"segmentName":"AP","lineNumber":"3"},"otherDataFreetext":{"freetextDetail":{"subjectQualifier":"3","type":"5"},"longFreetext":"755224114"}},{"elementManagementData":{"reference":{"qualifier":"OT","number":"17"},"segmentName":"AP","lineNumber":"4"},"otherDataFreetext":{"freetextDetail":{"subjectQualifier":"3","type":"5"},"longFreetext":"55555555555"}},{"elementManagementData":{"reference":{"qualifier":"OT","number":"5"},"segmentName":"TK","lineNumber":"5"},"ticketElement":{"passengerType":"PAX","ticket":{"indicator":"OK","date":"220317","officeId":"JFK1S210L"}}},{"elementManagementData":{"reference":{"qualifier":"OT","number":"16"},"segmentName":"SSR","lineNumber":"6"},"serviceRequest":{"ssr":{"type":"OTHS","status":{"0":" "},"companyId":"1A","freeText":"PLEASE SEND AVTA TKNA BY 1654/25MAR GMT USING ATN ENTRY"}}},{"elementManagementData":{"reference":{"qualifier":"OT","number":"15"},"segmentName":"SK","lineNumber":"7"},"serviceRequest":{"ssr":{"freeText":"RESTRICTED"}},"referenceForDataElement":{"reference":{"qualifier":"PT","number":"2"}}},{"elementManagementData":{"reference":{"qualifier":"OT","number":"2"},"segmentName":"RM","lineNumber":"8"},"miscellaneousRemarks":{"remarks":{"type":"RM","freetext":"NOTIFY PASSENGER PRIOR TO TICKET PURCHASE & CHECK-IN: FEDERAL LAWS FORBID THE CARRIAGE OF HAZARDOUS MATERIALS - GGAMAUSHAZ"}},"extendedRemark":{"structuredRemark":{"type":"RM","freetext":"NOTIFY PASSENGER PRIOR TO TICKET PURCHASE & CHECK-IN: FEDERAL LAWS FORBID THE CARRIAGE OF HAZARDOUS MATERIALS - GGAMAUSHAZ"}},"referenceForDataElement":{"reference":{"qualifier":"ST","number":"1"}}},{"elementManagementData":{"reference":{"qualifier":"OT","number":"4"},"segmentName":"FP","lineNumber":"9"},"otherDataFreetext":{"freetextDetail":{"subjectQualifier":"3","type":"16"},"longFreetext":"CASH"}}]}}

from amadeus-ws-client.

DaoCastro avatar DaoCastro commented on June 1, 2024

{"elementManagementData":{"status":"ERR","reference":{"qualifier":"OT","number":"18"},"segmentName":"SSR","lineNumber":"3"},"serviceRequest":{"ssr":{"type":"DOCS","status":"HK","quantity":"1","companyId":"AV","freeText":"-----01APR93-F--TERESA-CAMPOS"}},"elementErrorInformation":{"errorInformation":{"errorDetail":{"errorCode":"1949","qualifier":"EC","responsibleAgency":"1A"}},"elementErrorText":{"freetextDetail":{"subjectQualifier":"3"},"text":"PASSENGER AND/OR SEGMENT DATA NOT VALID"}}}]}}

from amadeus-ws-client.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.