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

Commit

Permalink
Release 6.20.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
IngenicoEPayments authored and jenkins committed Apr 9, 2021
1 parent 8150215 commit 169df9c
Show file tree
Hide file tree
Showing 3 changed files with 39 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.19.0';
const SDK_VERSION = '6.20.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\BankAccountBban;
use Ingenico\Connect\Sdk\Domain\Definitions\BankAccountIban;
use Ingenico\Connect\Sdk\Domain\Definitions\FraudResults;
use UnexpectedValueException;
Expand All @@ -14,11 +15,21 @@
*/
class RedirectPaymentMethodSpecificOutput extends AbstractPaymentMethodSpecificOutput
{
/**
* @var BankAccountBban
*/
public $bankAccountBban = null;

/**
* @var BankAccountIban
*/
public $bankAccountIban = null;

/**
* @var string
*/
public $bic = null;

/**
* @var FraudResults
*/
Expand Down Expand Up @@ -55,9 +66,15 @@ class RedirectPaymentMethodSpecificOutput extends AbstractPaymentMethodSpecificO
public function toObject()
{
$object = parent::toObject();
if (!is_null($this->bankAccountBban)) {
$object->bankAccountBban = $this->bankAccountBban->toObject();
}
if (!is_null($this->bankAccountIban)) {
$object->bankAccountIban = $this->bankAccountIban->toObject();
}
if (!is_null($this->bic)) {
$object->bic = $this->bic;
}
if (!is_null($this->fraudResults)) {
$object->fraudResults = $this->fraudResults->toObject();
}
Expand Down Expand Up @@ -87,13 +104,23 @@ public function toObject()
public function fromObject($object)
{
parent::fromObject($object);
if (property_exists($object, 'bankAccountBban')) {
if (!is_object($object->bankAccountBban)) {
throw new UnexpectedValueException('value \'' . print_r($object->bankAccountBban, true) . '\' is not an object');
}
$value = new BankAccountBban();
$this->bankAccountBban = $value->fromObject($object->bankAccountBban);
}
if (property_exists($object, 'bankAccountIban')) {
if (!is_object($object->bankAccountIban)) {
throw new UnexpectedValueException('value \'' . print_r($object->bankAccountIban, true) . '\' is not an object');
}
$value = new BankAccountIban();
$this->bankAccountIban = $value->fromObject($object->bankAccountIban);
}
if (property_exists($object, 'bic')) {
$this->bic = $object->bic;
}
if (property_exists($object, 'fraudResults')) {
if (!is_object($object->fraudResults)) {
throw new UnexpectedValueException('value \'' . print_r($object->fraudResults, true) . '\' is not an object');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@ class PaymentContext extends DataObject
*/
public $countryCode = null;

/**
* @var bool
*/
public $isInstallments = null;

/**
* @var bool
*/
Expand All @@ -41,6 +46,9 @@ public function toObject()
if (!is_null($this->countryCode)) {
$object->countryCode = $this->countryCode;
}
if (!is_null($this->isInstallments)) {
$object->isInstallments = $this->isInstallments;
}
if (!is_null($this->isRecurring)) {
$object->isRecurring = $this->isRecurring;
}
Expand All @@ -65,6 +73,9 @@ public function fromObject($object)
if (property_exists($object, 'countryCode')) {
$this->countryCode = $object->countryCode;
}
if (property_exists($object, 'isInstallments')) {
$this->isInstallments = $object->isInstallments;
}
if (property_exists($object, 'isRecurring')) {
$this->isRecurring = $object->isRecurring;
}
Expand Down

0 comments on commit 169df9c

Please sign in to comment.