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

Commit

Permalink
Release 5.29.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ingenico ePayments committed Nov 8, 2018
1 parent 6a5b6b4 commit cb635b0
Show file tree
Hide file tree
Showing 3 changed files with 55 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 = '5.28.0';
const SDK_VERSION = '5.29.0';

const AUTHORIZATION_ID = 'GCS';

Expand Down
12 changes: 12 additions & 0 deletions src/Ingenico/Connect/Sdk/Domain/Definitions/CardFraudResults.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ class CardFraudResults extends FraudResults
*/
public $cvvResult = null;

/**
* @var FraugsterResults
*/
public $fraugster = null;

/**
* @var FraudResultsRetailDecisions
*/
Expand All @@ -41,6 +46,13 @@ public function fromObject($object)
if (property_exists($object, 'cvvResult')) {
$this->cvvResult = $object->cvvResult;
}
if (property_exists($object, 'fraugster')) {
if (!is_object($object->fraugster)) {
throw new UnexpectedValueException('value \'' . print_r($object->fraugster, true) . '\' is not an object');
}
$value = new FraugsterResults();
$this->fraugster = $value->fromObject($object->fraugster);
}
if (property_exists($object, 'retailDecisions')) {
if (!is_object($object->retailDecisions)) {
throw new UnexpectedValueException('value \'' . print_r($object->retailDecisions, true) . '\' is not an object');
Expand Down
42 changes: 42 additions & 0 deletions src/Ingenico/Connect/Sdk/Domain/Definitions/FraugsterResults.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
<?php
/*
* This class was auto-generated from the API references found at
* https://epayments-api.developer-ingenico.com/s2sapi/v1/
*/
namespace Ingenico\Connect\Sdk\Domain\Definitions;

use Ingenico\Connect\Sdk\DataObject;
use UnexpectedValueException;

/**
* @package Ingenico\Connect\Sdk\Domain\Definitions
*/
class FraugsterResults extends DataObject
{
/**
* @var string
*/
public $fraudInvestigationPoints = null;

/**
* @var int
*/
public $fraudScore = null;

/**
* @param object $object
* @return $this
* @throws UnexpectedValueException
*/
public function fromObject($object)
{
parent::fromObject($object);
if (property_exists($object, 'fraudInvestigationPoints')) {
$this->fraudInvestigationPoints = $object->fraudInvestigationPoints;
}
if (property_exists($object, 'fraudScore')) {
$this->fraudScore = $object->fraudScore;
}
return $this;
}
}

0 comments on commit cb635b0

Please sign in to comment.