Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ADD CONTACT IN SSR CTCM CTCE #451

Closed
jeybin opened this issue Aug 2, 2022 · 1 comment
Closed

ADD CONTACT IN SSR CTCM CTCE #451

jeybin opened this issue Aug 2, 2022 · 1 comment

Comments

@jeybin
Copy link

jeybin commented Aug 2, 2022

Hi,
Some of the flights are returning the below mentioned, while adding the details of the customers to the PNR (PNRaddMultiElements),

ADD PASSPORT DTLS IN SSR DOCS CONTACT IN SSR CTCM CTCE or
PLS ADD PAX MOBILE CTC FOR IRREG COMMUNICATION

                 <itineraryfreeFormText>
                    <freeTextQualification>
                        <textSubjectQualifier>3</textSubjectQualifier>
                    </freeTextQualification>
                    <freeText>ADD PASSPORT DTLS IN SSR DOCS CONTACT IN SSR CTCM CTCE</freeText>
                    <freeText>SEE RTSVC</freeText>
                </itineraryfreeFormText>

Inside the request :

             <ns1:dataElementsIndiv>
                <ns1:elementManagementData>
                    <ns1:reference>
                        <ns1:qualifier>OT</ns1:qualifier>
                        <ns1:number>5</ns1:number>
                    </ns1:reference>
                    <ns1:segmentName>SSR</ns1:segmentName>
                </ns1:elementManagementData>
                <ns1:serviceRequest>
                    <ns1:ssr>
                        <ns1:type>CTCM</ns1:type>
                        <ns1:freetext>971123456789</ns1:freetext>
                    </ns1:ssr>
                </ns1:serviceRequest>
            </ns1:dataElementsIndiv>
            
             <ns1:dataElementsIndiv>
                <ns1:elementManagementData>
                    <ns1:reference>
                        <ns1:qualifier>OT</ns1:qualifier>
                        <ns1:number>6</ns1:number>
                    </ns1:reference>
                    <ns1:segmentName>SSR</ns1:segmentName>
                </ns1:elementManagementData>
                <ns1:serviceRequest>
                    <ns1:ssr>
                        <ns1:type>CTCE</ns1:type>
                        <ns1:freetext>email//email.com</ns1:freetext>
                    </ns1:ssr>
                </ns1:serviceRequest>
            </ns1:dataElementsIndiv>

The email pattern has been changed according to the Amadeus documentation,
$email = 'email@email.com'
$email = str_replace('@','//',$email);
$email = str_replace('_','..',$email);
$email = str_replace('-','./',$email);

	$opt->elements[] = new Contact([
		'type' => Contact::TYPE_EMAIL,
		'value' => $email
	]);

	$opt->elements[] = new Contact([
		'type' => Contact::TYPE_PHONE_GENERAL,
		'value' => '971123456789'
	]);

the above code returns the error/warning as i mentioned at the beginning, so i tried to change as below :

	$opt->elements[] = new ServiceRequest([
		'type' => 'CTCE',
		'company' => $company,
		'indicator' => 'P01',
		'freeText' => $email,
	]);
	$opt->elements[] = new ServiceRequest([
		'type' => 'CTCM',
		'company' => $company,
		'indicator' => 'P01',
		'freeText' => '971123456789',
	]);

The response was same.

Kindly help to fix this issue.

@jeybin
Copy link
Author

jeybin commented Aug 16, 2022

The warning persists
but the booking will be success if

@jeybin jeybin closed this as completed Aug 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant