From f2ed046e823468ee55da1a6b19bca25c8ec13746 Mon Sep 17 00:00:00 2001 From: Ingenico ePayments Date: Thu, 6 Oct 2022 09:42:14 +0200 Subject: [PATCH] Release 6.33.0. --- .../Connect/Sdk/RequestHeaderGenerator.php | 2 +- .../Definitions/MicrosoftFraudResults.php | 44 +++++++++++++++++++ 2 files changed, 45 insertions(+), 1 deletion(-) diff --git a/lib/Ingenico/Connect/Sdk/RequestHeaderGenerator.php b/lib/Ingenico/Connect/Sdk/RequestHeaderGenerator.php index d536fd90..31956e30 100644 --- a/lib/Ingenico/Connect/Sdk/RequestHeaderGenerator.php +++ b/lib/Ingenico/Connect/Sdk/RequestHeaderGenerator.php @@ -11,7 +11,7 @@ */ class RequestHeaderGenerator { - const SDK_VERSION = '6.32.0'; + const SDK_VERSION = '6.33.0'; const AUTHORIZATION_ID = 'GCS'; diff --git a/src/Ingenico/Connect/Sdk/Domain/Definitions/MicrosoftFraudResults.php b/src/Ingenico/Connect/Sdk/Domain/Definitions/MicrosoftFraudResults.php index b104813b..bfab82f7 100644 --- a/src/Ingenico/Connect/Sdk/Domain/Definitions/MicrosoftFraudResults.php +++ b/src/Ingenico/Connect/Sdk/Domain/Definitions/MicrosoftFraudResults.php @@ -13,20 +13,52 @@ */ class MicrosoftFraudResults extends DataObject { + /** + * @var string + */ + public $deviceCountryCode = null; + + /** + * @var string + */ + public $deviceId = null; + /** * @var int */ public $fraudScore = null; + /** + * @var string + */ + public $trueIpAddress = null; + + /** + * @var string + */ + public $userDeviceType = null; + /** * @return object */ public function toObject() { $object = parent::toObject(); + if (!is_null($this->deviceCountryCode)) { + $object->deviceCountryCode = $this->deviceCountryCode; + } + if (!is_null($this->deviceId)) { + $object->deviceId = $this->deviceId; + } if (!is_null($this->fraudScore)) { $object->fraudScore = $this->fraudScore; } + if (!is_null($this->trueIpAddress)) { + $object->trueIpAddress = $this->trueIpAddress; + } + if (!is_null($this->userDeviceType)) { + $object->userDeviceType = $this->userDeviceType; + } return $object; } @@ -38,9 +70,21 @@ public function toObject() public function fromObject($object) { parent::fromObject($object); + if (property_exists($object, 'deviceCountryCode')) { + $this->deviceCountryCode = $object->deviceCountryCode; + } + if (property_exists($object, 'deviceId')) { + $this->deviceId = $object->deviceId; + } if (property_exists($object, 'fraudScore')) { $this->fraudScore = $object->fraudScore; } + if (property_exists($object, 'trueIpAddress')) { + $this->trueIpAddress = $object->trueIpAddress; + } + if (property_exists($object, 'userDeviceType')) { + $this->userDeviceType = $object->userDeviceType; + } return $this; } }