Skip to content
This repository has been archived by the owner on Mar 19, 2024. It is now read-only.

Commit

Permalink
Release 6.33.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
IngenicoEPayments committed Oct 6, 2022
1 parent 40044f6 commit f2ed046
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Ingenico/Connect/Sdk/RequestHeaderGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
*/
class RequestHeaderGenerator
{
const SDK_VERSION = '6.32.0';
const SDK_VERSION = '6.33.0';

const AUTHORIZATION_ID = 'GCS';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand All @@ -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;
}
}

0 comments on commit f2ed046

Please sign in to comment.