Travelport / travelport-uapi-tutorial-php

The travelport-uapi-tutorial-php is a PHP project for Universal API that will help you connect and code a standard workflow including Air, Vehicle, and Hotel.
35 stars 47 forks source link

UniversalRecordModifyReq Update/Delete BookingTravelerInfo #225

Open MasoodRehman opened 4 years ago

MasoodRehman commented 4 years ago

Hi team,

Hope you will be doing good, I have following issues in UniversalRecordModify command.

Update Email/PhoneNumber in Universal Record:

I have issue with traveler information each time when I update traveler Email or PhoneNumber, Instead of updating an existing data the command add a new entry in Email/PhoneNumber element of UniversalRecord.

Sample Req/Rsp given below:

URUpdateBookingTravelerInfoReq URUpdateBookingTravelerInfoRsp

Delete Email/PhoneNumber from Universal Record:

And so the deleting operations of UniversalRecord on BookingTravelerInfo not working and return following errors:

Cannot delete phone number as at least one phone number is required by Provider. Provider does not support delete of primary email of a passenger.

Note: I am deleting old PhoneNumber/Email which remain in UniversalRecord during UniversalUpdate command (which suppose to be replaced with new one instead of creating a new entry)

Sample Req/Rsp given below:

UniversalCmdDeleteTravellerObjectReq UniversalCmdDeleteTravellerObjectRsp

Your help will be appreciated, Thanks.

MasoodRehman commented 4 years ago

Hi guys I am expecting your reply on above issue, Would be glad to hear something from you. Thank you.

vivekjyotipramanik commented 4 years ago

Hi MasoodRehman,

The error is valid. It is not possible to delete the only phone number. YYou can add another phone number and then delete the number you wanted to delete. Please try adding a phone number and then delete it. Thanks.

MasoodRehman commented 4 years ago

Hi @vivekjyotipramanik

Thanks for your reply, Yes you are absolutely right and I have done the same, First added a new phone number and then tried to delete the old one but got the error which I shared in my first message above.

Here is the Universal Record

UniversalRecordRetrieveServiceRsp

I tired to delete the phone number with Key zJq/J33R2BKAgr1EDAAAAA== but no luck.

vivekjyotipramanik commented 4 years ago

Hi MasoodRehman,

This seems like an issue in the API. Could you please create a ticket in My.Travelport.com and we will pick it up from there. Thanks.

MasoodRehman commented 4 years ago

OK let me open a ticket.

Thank you