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

CTCE, CTCM #437

Open
tolya1984a opened this issue Jun 16, 2021 · 12 comments
Open

CTCE, CTCM #437

tolya1984a opened this issue Jun 16, 2021 · 12 comments

Comments

@tolya1984a
Copy link

Good afternoon, colleagues.

Do you know, how correctly implement the following:
Airlines began to require the passenger's phone number and email at the SSR point:

10 SSR CTCE SU HK1 TEMP // MAIL.RU
11 SSR CTCM SU HK1 7915XXXXXXX

How is this implemented through the API?

Thank you.

@tolya1984a
Copy link
Author

how correctly implement request should be?

I.e:
use Amadeus\Client\RequestOptions\PnrCreatePnrOptions;
use Amadeus\Client\RequestOptions\Pnr\Element\ServiceRequest;
use Amadeus\Client\RequestOptions\Pnr\Reference;

$opt = new PnrCreatePnrOptions([
'elements' => [
new ServiceRequest([
'type' => 'CTCE',
'references' => [
new Reference([
'type' => Reference::TYPE_PASSENGER_TATTOO,
'id' => 1
])
]
])
]
]);

@rifkydj
Copy link

rifkydj commented Jun 20, 2021

$opt->elements[] = new Contact([
'type' => Contact::TYPE_PHONE_MOBILE,
'value' => '+3222222222'
]);

@tolya1984a
Copy link
Author

tolya1984a commented Jun 20, 2021

it's not that.

It will be:

3 APE [email protected]
4 APM +7921*******

Airlines began to require the passenger's phone number and email at the SSR point:

10 SSR CTCE SU HK1 TEMP // MAIL.RU
11 SSR CTCM SU HK1 7915*******

I'm think implement request "new Service Request" ?

@tolya1984a tolya1984a changed the title CTCE, CTCM CTCE, CTCM Jun 20, 2021
@tolya1984a tolya1984a reopened this Jun 20, 2021
@rifkydj
Copy link

rifkydj commented Jun 20, 2021

Im not sure this ServiceRequest Class has Such Parameters as phone number and email, but in that u can pass a Free text field,
try that .
u can see supported parameters in
amabnl/amadeus-ws-client/src/Amadeus/Client/RequestOptions/Pnr/Element/ServiceRequest.php file

@tolya1984a
Copy link
Author

tolya1984a commented Jun 22, 2021

You write what I think.
But one detail is missing is the two-digit code for the 'freeText' field.
I mean for SSR DOCS:
'freeText' => [
P-<PASSPORT_ISSUING_COUNTRY>-<PASSPORT_NR>----<PASSPORT_EXPIRATION_DATE>-<LAST_NAME>-<FIRST_NAME>_<MIDDLE_NAME>
],
for SSR FOID:
'freeText' => [
PP
].

I was tried without this code at the beginning of the record is not entered.
What is the code for the phone number and email?

@rifkydj
Copy link

rifkydj commented Jun 22, 2021

i guess what u want is SSR DOCS .
this is the documentation
https://github.com/amabnl/amadeus-ws-client/blob/master/docs/samples/pnr-create-modify.rst#special-service-requests-sr

this is the code for phone Number & Email

`use Amadeus\Client\RequestOptions\PnrCreatePnrOptions;
use Amadeus\Client\RequestOptions\Pnr\Element\Contact;

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

@rifkydj
Copy link

rifkydj commented Jun 22, 2021

$elements[] = new ServiceRequest([
'type' => 'DOCS',
'status' => ServiceRequest::STATUS_HOLD_CONFIRMED,
//'company' => '1A',
'quantity' => 1,
'freeText' => [
'P-' . $traveler_passport_name . '-' . $traveler_passport_no . '-' . $traveler_passport_name . '-' . $this->convertDate($traveler_dob) . '-' . $traveler_gender . '-' . $this->convertDate($traveler_passport_expire) . '-' . $traveler_lname . '-' . $fname
],
'references' => [
new Reference([
'type' => Reference::TYPE_PASSENGER_REQUEST,
'id' => $ref
])
]
]);

@tolya1984a
Copy link
Author

tolya1984a commented Jun 22, 2021

"E-mail address

To add an e-mail address to an SSR, enter:

(example for [email protected])

SR CTCE-BA HK1/XXX..YYY//WORK.COM
Entry Description
// (double slash) instead of @ (at sign)
.. (double dot) instead of _ (underscore)
./ (dot slash) instead of - (dash)

For more information, refer to the Amadeus Help pages HE SR and scroll for E-mail"
How to implement this?
Airlines began to require the passenger's phone number and email at the SSR point.

https://servicehub.amadeus.com/c/portal/view-solution/968144/en_US/how-to-add-ssr-elements-to-a-pnr-cryptic-

@tolya1984a
Copy link
Author

"E-mail address

To add an e-mail address to an SSR, enter:

(example for [email protected])

SR CTCE-BA HK1/XXX..YYY//WORK.COM
Entry Description
// (double slash) instead of @ (at sign)
.. (double dot) instead of _ (underscore)
./ (dot slash) instead of - (dash)

For more information, refer to the Amadeus Help pages HE SR and scroll for E-mail"
How to implement this?
Airlines began to require the passenger's phone number and email at the SSR point.

https://servicehub.amadeus.com/c/portal/view-solution/968144/en_US/how-to-add-ssr-elements-to-a-pnr-cryptic-

@rifkydj
Copy link

rifkydj commented Jun 22, 2021

$elements[] = new ServiceRequest([ 'type' => 'E-MAIL', 'status' => ServiceRequest::STATUS_HOLD_CONFIRMED, 'freeText' => [ 'XXX..YYY//WORK.COM' ], 'references' => [ new Reference([ 'type' => Reference::TYPE_PASSENGER_REQUEST, 'id' => $ref ]), ] ]);
`

@joseayram
Copy link

joseayram commented Aug 23, 2021

@tolya1984a Hello! I added the CTCE and CTCM information to PNR_AddMultiElements. It's something like this:

$email = str_replace('@', '//', $passenger['email'] );
$email = str_replace('_', '..', $email );
$email = str_replace('-', './', $email );

$opt->elements[] = new ServiceRequest([
    'type' => 'CTCE',
    'company' => 'AA',
    'indicator' => 'P01',
    'freeText' => $email,
    'references' => [
        new Reference([
            'type' => Reference::TYPE_PASSENGER_REQUEST,
            'id' => $tattoo,
        ])
    ],
]);

$opt->elements[] = new ServiceRequest([
    'type' => 'CTCM',
    'company' => 'AA',
    'indicator' => 'P01',
    'freeText' => '0123456789',
    'references' => [
        new Reference([
            'type' => Reference::TYPE_PASSENGER_REQUEST,
            'id' => $tattoo,
        ])
    ],
]);

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

3 participants