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

Commit

Permalink
Release 6.10.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
IngenicoEPayments authored and jenkins committed May 19, 2020
1 parent 8d03bc4 commit ac29a48
Show file tree
Hide file tree
Showing 3 changed files with 33 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.9.0';
const SDK_VERSION = '6.10.0';

const AUTHORIZATION_ID = 'GCS';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,19 @@
namespace Ingenico\Connect\Sdk\Domain\Payment\Definitions;

use Ingenico\Connect\Sdk\DataObject;
use Ingenico\Connect\Sdk\Domain\Definitions\AmountOfMoney;
use UnexpectedValueException;

/**
* @package Ingenico\Connect\Sdk\Domain\Payment\Definitions
*/
class AbstractThreeDSecure extends DataObject
{
/**
* @var AmountOfMoney
*/
public $authenticationAmount = null;

/**
* @var string
*/
Expand Down Expand Up @@ -54,6 +60,9 @@ class AbstractThreeDSecure extends DataObject
public function toObject()
{
$object = parent::toObject();
if (!is_null($this->authenticationAmount)) {
$object->authenticationAmount = $this->authenticationAmount->toObject();
}
if (!is_null($this->authenticationFlow)) {
$object->authenticationFlow = $this->authenticationFlow;
}
Expand Down Expand Up @@ -86,6 +95,13 @@ public function toObject()
public function fromObject($object)
{
parent::fromObject($object);
if (property_exists($object, 'authenticationAmount')) {
if (!is_object($object->authenticationAmount)) {
throw new UnexpectedValueException('value \'' . print_r($object->authenticationAmount, true) . '\' is not an object');
}
$value = new AmountOfMoney();
$this->authenticationAmount = $value->fromObject($object->authenticationAmount);
}
if (property_exists($object, 'authenticationFlow')) {
$this->authenticationFlow = $object->authenticationFlow;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
namespace Ingenico\Connect\Sdk\Domain\Payment\Definitions;

use Ingenico\Connect\Sdk\DataObject;
use Ingenico\Connect\Sdk\Domain\Definitions\AmountOfMoney;
use UnexpectedValueException;

/**
Expand All @@ -23,6 +24,11 @@ class ThreeDSecureResults extends DataObject
*/
public $appliedExemption = null;

/**
* @var AmountOfMoney
*/
public $authenticationAmount = null;

/**
* @var string
*/
Expand Down Expand Up @@ -80,6 +86,9 @@ public function toObject()
if (!is_null($this->appliedExemption)) {
$object->appliedExemption = $this->appliedExemption;
}
if (!is_null($this->authenticationAmount)) {
$object->authenticationAmount = $this->authenticationAmount->toObject();
}
if (!is_null($this->cavv)) {
$object->cavv = $this->cavv;
}
Expand Down Expand Up @@ -124,6 +133,13 @@ public function fromObject($object)
if (property_exists($object, 'appliedExemption')) {
$this->appliedExemption = $object->appliedExemption;
}
if (property_exists($object, 'authenticationAmount')) {
if (!is_object($object->authenticationAmount)) {
throw new UnexpectedValueException('value \'' . print_r($object->authenticationAmount, true) . '\' is not an object');
}
$value = new AmountOfMoney();
$this->authenticationAmount = $value->fromObject($object->authenticationAmount);
}
if (property_exists($object, 'cavv')) {
$this->cavv = $object->cavv;
}
Expand Down

0 comments on commit ac29a48

Please sign in to comment.