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

Commit

Permalink
Release 6.22.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
IngenicoEPayments authored and jenkins committed Jun 24, 2021
1 parent 587684f commit e76905e
Show file tree
Hide file tree
Showing 3 changed files with 46 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.21.0';
const SDK_VERSION = '6.22.0';

const AUTHORIZATION_ID = 'GCS';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,15 @@ class DeviceRenderOptions extends DataObject

/**
* @var string
* @deprecated Use deviceRenderOptions.sdkUiTypes instead
*/
public $sdkUiType = null;

/**
* @var string[]
*/
public $sdkUiTypes = null;

/**
* @return object
*/
Expand All @@ -35,6 +41,14 @@ public function toObject()
if (!is_null($this->sdkUiType)) {
$object->sdkUiType = $this->sdkUiType;
}
if (!is_null($this->sdkUiTypes)) {
$object->sdkUiTypes = [];
foreach ($this->sdkUiTypes as $element) {
if (!is_null($element)) {
$object->sdkUiTypes[] = $element;
}
}
}
return $object;
}

Expand All @@ -52,6 +66,15 @@ public function fromObject($object)
if (property_exists($object, 'sdkUiType')) {
$this->sdkUiType = $object->sdkUiType;
}
if (property_exists($object, 'sdkUiTypes')) {
if (!is_array($object->sdkUiTypes) && !is_object($object->sdkUiTypes)) {
throw new UnexpectedValueException('value \'' . print_r($object->sdkUiTypes, true) . '\' is not an array or object');
}
$this->sdkUiTypes = [];
foreach ($object->sdkUiTypes as $element) {
$this->sdkUiTypes[] = $element;
}
}
return $this;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,16 @@ class RedirectPaymentProduct4101SpecificInput extends DataObject
*/
public $integrationType = null;

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

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

/**
* @var string
*/
Expand All @@ -32,6 +42,12 @@ public function toObject()
if (!is_null($this->integrationType)) {
$object->integrationType = $this->integrationType;
}
if (!is_null($this->merchantName)) {
$object->merchantName = $this->merchantName;
}
if (!is_null($this->transactionNote)) {
$object->transactionNote = $this->transactionNote;
}
if (!is_null($this->vpa)) {
$object->vpa = $this->vpa;
}
Expand All @@ -49,6 +65,12 @@ public function fromObject($object)
if (property_exists($object, 'integrationType')) {
$this->integrationType = $object->integrationType;
}
if (property_exists($object, 'merchantName')) {
$this->merchantName = $object->merchantName;
}
if (property_exists($object, 'transactionNote')) {
$this->transactionNote = $object->transactionNote;
}
if (property_exists($object, 'vpa')) {
$this->vpa = $object->vpa;
}
Expand Down

0 comments on commit e76905e

Please sign in to comment.