From aa33316a9c7d290a1ca75c486b3e7db25f66e02b Mon Sep 17 00:00:00 2001 From: User Jellyfrog Date: Wed, 24 Feb 2016 22:12:01 +0100 Subject: [PATCH] Add support for providing experience profile id --- src/Message/RestAuthorizeRequest.php | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/src/Message/RestAuthorizeRequest.php b/src/Message/RestAuthorizeRequest.php index c75db20..68fe797 100644 --- a/src/Message/RestAuthorizeRequest.php +++ b/src/Message/RestAuthorizeRequest.php @@ -231,7 +231,8 @@ public function getData() 'currency' => $this->getCurrency(), ), ) - ) + ), + 'experience_profile_id' => $this->getExperienceProfileId() ); $items = $this->getItems(); @@ -302,6 +303,27 @@ public function getData() return $data; } + /** + * Get the experience profile id + * + * @return string + */ + public function getExperienceProfileId() + { + return $this->getParameter('experienceProfileId'); + } + + /** + * Set the experience profile id + * + * @param string $value + * @return RestAuthorizeRequest provides a fluent interface. + */ + public function setExperienceProfileId($value) + { + return $this->setParameter('experienceProfileId', $value); + } + /** * Get transaction description. *