diff --git a/src/Amadeus/Client.php b/src/Amadeus/Client.php index b08398962..ed6f6a489 100644 --- a/src/Amadeus/Client.php +++ b/src/Amadeus/Client.php @@ -1527,6 +1527,82 @@ public function priceXplorerExtremeSearch( return $this->callMessage($msgName, $options, $messageOptions); } + /** + * Profile_ReadProfile + * + * @param RequestOptions\ProfileReadProfileOptions $options + * @param array $messageOptions (OPTIONAL) + * @return Result + * @throws Client\InvalidMessageException + * @throws Client\RequestCreator\MessageVersionUnsupportedException + * @throws Exception + */ + public function profileReadProfile( + RequestOptions\ProfileReadProfileOptions $options, + $messageOptions = [] + ) { + $msgName = 'Profile_ReadProfile'; + + return $this->callMessage($msgName, $options, $messageOptions); + } + + /** + * Profile_CreateProfile + * + * @param RequestOptions\ProfileCreateProfileOptions $options + * @param array $messageOptions (OPTIONAL) + * @return Result + * @throws Client\InvalidMessageException + * @throws Client\RequestCreator\MessageVersionUnsupportedException + * @throws Exception + */ + public function profileCreateProfile( + RequestOptions\ProfileCreateProfileOptions $options, + $messageOptions = [] + ) { + $msgName = 'Profile_CreateProfile'; + + return $this->callMessage($msgName, $options, $messageOptions); + } + + /** + * Profile_CreateProfile + * + * @param RequestOptions\ProfileDeleteProfileOptions $options + * @param array $messageOptions (OPTIONAL) + * @return Result + * @throws Client\InvalidMessageException + * @throws Client\RequestCreator\MessageVersionUnsupportedException + * @throws Exception + */ + public function profileDeleteProfile( + RequestOptions\ProfileDeleteProfileOptions $options, + $messageOptions = [] + ) { + $msgName = 'Profile_DeleteProfile'; + + return $this->callMessage($msgName, $options, $messageOptions); + } + + /** + * Profile_UpdateProfile + * + * @param RequestOptions\ProfileUpdateProfileOptions $options + * @param array $messageOptions (OPTIONAL) + * @return Result + * @throws Client\InvalidMessageException + * @throws Client\RequestCreator\MessageVersionUnsupportedException + * @throws Exception + */ + public function profileUpdateProfile( + RequestOptions\ProfileUpdateProfileOptions $options, + $messageOptions = [] + ) { + $msgName = 'Profile_UpdateProfile'; + + return $this->callMessage($msgName, $options, $messageOptions); + } + /** * SalesReports_DisplayQueryReport * diff --git a/src/Amadeus/Client/RequestCreator/Converter/Profile/CreateProfileConv.php b/src/Amadeus/Client/RequestCreator/Converter/Profile/CreateProfileConv.php new file mode 100644 index 000000000..4f80fbfbc --- /dev/null +++ b/src/Amadeus/Client/RequestCreator/Converter/Profile/CreateProfileConv.php @@ -0,0 +1,20 @@ +Version= $options->Version; + $this->UniqueID= $options->UniqueID; + $this->Profile= $options->Profile; + $this->CompanyName= $options->CompanyName; + } + } +} diff --git a/src/Amadeus/Client/Struct/Profile/ProfileDeleteProfile.php b/src/Amadeus/Client/Struct/Profile/ProfileDeleteProfile.php new file mode 100644 index 000000000..3a546d5b2 --- /dev/null +++ b/src/Amadeus/Client/Struct/Profile/ProfileDeleteProfile.php @@ -0,0 +1,18 @@ +Version= $options->Version; + $this->UniqueID= $options->UniqueID; + $this->DeleteRequests= $options->DeleteRequests; + } + } +} diff --git a/src/Amadeus/Client/Struct/Profile/ProfileReadProfile.php b/src/Amadeus/Client/Struct/Profile/ProfileReadProfile.php new file mode 100644 index 000000000..9314105ac --- /dev/null +++ b/src/Amadeus/Client/Struct/Profile/ProfileReadProfile.php @@ -0,0 +1,18 @@ +Version= $options->Version; + $this->UniqueID= $options->UniqueID; + $this->ReadRequests= $options->ReadRequests; + } + } +} diff --git a/src/Amadeus/Client/Struct/Profile/ProfileUpdateProfile.php b/src/Amadeus/Client/Struct/Profile/ProfileUpdateProfile.php new file mode 100644 index 000000000..4379f40c7 --- /dev/null +++ b/src/Amadeus/Client/Struct/Profile/ProfileUpdateProfile.php @@ -0,0 +1,21 @@ + $propValue) { + if (property_exists($this, $propName)) { + $this->$propName = $propValue; + } + } + } + } +}