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

Commit

Permalink
Release 6.45.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
IngenicoEPayments committed Dec 12, 2023
1 parent fdd0e12 commit 959c911
Show file tree
Hide file tree
Showing 6 changed files with 43 additions and 28 deletions.
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.44.0';
const SDK_VERSION = '6.45.0';

const AUTHORIZATION_ID = 'GCS';

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

/**
* @var MicrosoftFraudResults
*/
public $microsoftFraudProtection = null;

/**
* @var FraudResultsRetailDecisions
*/
Expand All @@ -52,9 +47,6 @@ public function toObject()
if (!is_null($this->fraugster)) {
$object->fraugster = $this->fraugster->toObject();
}
if (!is_null($this->microsoftFraudProtection)) {
$object->microsoftFraudProtection = $this->microsoftFraudProtection->toObject();
}
if (!is_null($this->retailDecisions)) {
$object->retailDecisions = $this->retailDecisions->toObject();
}
Expand Down Expand Up @@ -82,13 +74,6 @@ public function fromObject($object)
$value = new FraugsterResults();
$this->fraugster = $value->fromObject($object->fraugster);
}
if (property_exists($object, 'microsoftFraudProtection')) {
if (!is_object($object->microsoftFraudProtection)) {
throw new UnexpectedValueException('value \'' . print_r($object->microsoftFraudProtection, true) . '\' is not an object');
}
$value = new MicrosoftFraudResults();
$this->microsoftFraudProtection = $value->fromObject($object->microsoftFraudProtection);
}
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
15 changes: 15 additions & 0 deletions src/Ingenico/Connect/Sdk/Domain/Definitions/FraudResults.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@ class FraudResults extends DataObject
*/
public $inAuth = null;

/**
* @var MicrosoftFraudResults
*/
public $microsoftFraudProtection = null;

/**
* @return object
*/
Expand All @@ -35,6 +40,9 @@ public function toObject()
if (!is_null($this->inAuth)) {
$object->inAuth = $this->inAuth->toObject();
}
if (!is_null($this->microsoftFraudProtection)) {
$object->microsoftFraudProtection = $this->microsoftFraudProtection->toObject();
}
return $object;
}

Expand All @@ -56,6 +64,13 @@ public function fromObject($object)
$value = new InAuth();
$this->inAuth = $value->fromObject($object->inAuth);
}
if (property_exists($object, 'microsoftFraudProtection')) {
if (!is_object($object->microsoftFraudProtection)) {
throw new UnexpectedValueException('value \'' . print_r($object->microsoftFraudProtection, true) . '\' is not an object');
}
$value = new MicrosoftFraudResults();
$this->microsoftFraudProtection = $value->fromObject($object->microsoftFraudProtection);
}
return $this;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,19 @@
*/
namespace Ingenico\Connect\Sdk\Domain\Payment\Definitions;

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

/**
* @package Ingenico\Connect\Sdk\Domain\Payment\Definitions
*/
class EInvoicePaymentMethodSpecificOutput extends AbstractPaymentMethodSpecificOutput
{
/**
* @var FraudResults
*/
public $fraudResults = null;

/**
* @var EInvoicePaymentProduct9000SpecificOutput
*/
Expand All @@ -23,6 +29,9 @@ class EInvoicePaymentMethodSpecificOutput extends AbstractPaymentMethodSpecificO
public function toObject()
{
$object = parent::toObject();
if (!is_null($this->fraudResults)) {
$object->fraudResults = $this->fraudResults->toObject();
}
if (!is_null($this->paymentProduct9000SpecificOutput)) {
$object->paymentProduct9000SpecificOutput = $this->paymentProduct9000SpecificOutput->toObject();
}
Expand All @@ -37,6 +46,13 @@ public function toObject()
public function fromObject($object)
{
parent::fromObject($object);
if (property_exists($object, 'fraudResults')) {
if (!is_object($object->fraudResults)) {
throw new UnexpectedValueException('value \'' . print_r($object->fraudResults, true) . '\' is not an object');
}
$value = new FraudResults();
$this->fraudResults = $value->fromObject($object->fraudResults);
}
if (property_exists($object, 'paymentProduct9000SpecificOutput')) {
if (!is_object($object->paymentProduct9000SpecificOutput)) {
throw new UnexpectedValueException('value \'' . print_r($object->paymentProduct9000SpecificOutput, true) . '\' is not an object');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,6 @@
*/
class SdkDataInput extends DataObject
{
/**
* @var string
* @deprecated No replacement
*/
public $deviceInfo = null;

/**
* @var DeviceRenderOptions
*/
Expand Down Expand Up @@ -60,9 +54,6 @@ class SdkDataInput extends DataObject
public function toObject()
{
$object = parent::toObject();
if (!is_null($this->deviceInfo)) {
$object->deviceInfo = $this->deviceInfo;
}
if (!is_null($this->deviceRenderOptions)) {
$object->deviceRenderOptions = $this->deviceRenderOptions->toObject();
}
Expand Down Expand Up @@ -95,9 +86,6 @@ public function toObject()
public function fromObject($object)
{
parent::fromObject($object);
if (property_exists($object, 'deviceInfo')) {
$this->deviceInfo = $object->deviceInfo;
}
if (property_exists($object, 'deviceRenderOptions')) {
if (!is_object($object->deviceRenderOptions)) {
throw new UnexpectedValueException('value \'' . print_r($object->deviceRenderOptions, true) . '\' is not an object');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,11 @@ class PaymentProduct extends DataObject
*/
public $id = null;

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

/**
* @var bool
*/
Expand Down Expand Up @@ -188,6 +193,9 @@ public function toObject()
if (!is_null($this->id)) {
$object->id = $this->id;
}
if (!is_null($this->isAuthenticationSupported)) {
$object->isAuthenticationSupported = $this->isAuthenticationSupported;
}
if (!is_null($this->isJavaScriptRequired)) {
$object->isJavaScriptRequired = $this->isJavaScriptRequired;
}
Expand Down Expand Up @@ -293,6 +301,9 @@ public function fromObject($object)
if (property_exists($object, 'id')) {
$this->id = $object->id;
}
if (property_exists($object, 'isAuthenticationSupported')) {
$this->isAuthenticationSupported = $object->isAuthenticationSupported;
}
if (property_exists($object, 'isJavaScriptRequired')) {
$this->isJavaScriptRequired = $object->isJavaScriptRequired;
}
Expand Down

0 comments on commit 959c911

Please sign in to comment.