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

Commit

Permalink
Release 6.42.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
IngenicoEPayments committed Aug 11, 2023
1 parent e00faf5 commit 972c575
Show file tree
Hide file tree
Showing 2 changed files with 17 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.41.0';
const SDK_VERSION = '6.42.0';

const AUTHORIZATION_ID = 'GCS';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
*/
namespace Ingenico\Connect\Sdk\Domain\Payment\Definitions;

use Ingenico\Connect\Sdk\Domain\Definitions\CardEssentials;
use UnexpectedValueException;

/**
Expand All @@ -17,6 +18,11 @@ class RefundCardMethodSpecificOutput extends RefundMethodSpecificOutput
*/
public $authorisationCode = null;

/**
* @var CardEssentials
*/
public $card = null;

/**
* @return object
*/
Expand All @@ -26,6 +32,9 @@ public function toObject()
if (!is_null($this->authorisationCode)) {
$object->authorisationCode = $this->authorisationCode;
}
if (!is_null($this->card)) {
$object->card = $this->card->toObject();
}
return $object;
}

Expand All @@ -40,6 +49,13 @@ public function fromObject($object)
if (property_exists($object, 'authorisationCode')) {
$this->authorisationCode = $object->authorisationCode;
}
if (property_exists($object, 'card')) {
if (!is_object($object->card)) {
throw new UnexpectedValueException('value \'' . print_r($object->card, true) . '\' is not an object');
}
$value = new CardEssentials();
$this->card = $value->fromObject($object->card);
}
return $this;
}
}

0 comments on commit 972c575

Please sign in to comment.