Skip to content

Commit 40bc07d

Browse files
committed
Generate PaymentsApp
1 parent 220fb07 commit 40bc07d

File tree

7 files changed

+11
-53
lines changed

7 files changed

+11
-53
lines changed

src/Adyen/Model/PaymentsApp/BoardingTokenRequest.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,7 @@
2121
/**
2222
* BoardingTokenRequest Class Doc Comment
2323
*
24-
* @category Class
2524
* @package Adyen
26-
* @author OpenAPI Generator team
27-
* @link https://openapi-generator.tech
2825
* @implements \ArrayAccess<string, mixed>
2926
*/
3027
class BoardingTokenRequest implements ModelInterface, ArrayAccess, \JsonSerializable
@@ -229,7 +226,7 @@ public function getModelName()
229226
* @param mixed[] $data Associated array of property values
230227
* initializing the model
231228
*/
232-
public function __construct(array $data = null)
229+
public function __construct(?array $data = null)
233230
{
234231
$this->setIfExists('boardingRequestToken', $data ?? [], null);
235232
}

src/Adyen/Model/PaymentsApp/BoardingTokenResponse.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,7 @@
2121
/**
2222
* BoardingTokenResponse Class Doc Comment
2323
*
24-
* @category Class
2524
* @package Adyen
26-
* @author OpenAPI Generator team
27-
* @link https://openapi-generator.tech
2825
* @implements \ArrayAccess<string, mixed>
2926
*/
3027
class BoardingTokenResponse implements ModelInterface, ArrayAccess, \JsonSerializable
@@ -235,7 +232,7 @@ public function getModelName()
235232
* @param mixed[] $data Associated array of property values
236233
* initializing the model
237234
*/
238-
public function __construct(array $data = null)
235+
public function __construct(?array $data = null)
239236
{
240237
$this->setIfExists('boardingToken', $data ?? [], null);
241238
$this->setIfExists('installationId', $data ?? [], null);

src/Adyen/Model/PaymentsApp/DefaultErrorResponseEntity.php

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,9 @@
2121
/**
2222
* DefaultErrorResponseEntity Class Doc Comment
2323
*
24-
* @category Class
25-
* @description Standardized error response following RFC-7807 format
24+
* Standardized error response following RFC-7807 format
25+
*
2626
* @package Adyen
27-
* @author OpenAPI Generator team
28-
* @link https://openapi-generator.tech
2927
* @implements \ArrayAccess<string, mixed>
3028
*/
3129
class DefaultErrorResponseEntity implements ModelInterface, ArrayAccess, \JsonSerializable
@@ -272,7 +270,7 @@ public function getModelName()
272270
* @param mixed[] $data Associated array of property values
273271
* initializing the model
274272
*/
275-
public function __construct(array $data = null)
273+
public function __construct(?array $data = null)
276274
{
277275
$this->setIfExists('detail', $data ?? [], null);
278276
$this->setIfExists('errorCode', $data ?? [], null);

src/Adyen/Model/PaymentsApp/InvalidField.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,7 @@
2121
/**
2222
* InvalidField Class Doc Comment
2323
*
24-
* @category Class
2524
* @package Adyen
26-
* @author OpenAPI Generator team
27-
* @link https://openapi-generator.tech
2825
* @implements \ArrayAccess<string, mixed>
2926
*/
3027
class InvalidField implements ModelInterface, ArrayAccess, \JsonSerializable
@@ -241,7 +238,7 @@ public function getModelName()
241238
* @param mixed[] $data Associated array of property values
242239
* initializing the model
243240
*/
244-
public function __construct(array $data = null)
241+
public function __construct(?array $data = null)
245242
{
246243
$this->setIfExists('name', $data ?? [], null);
247244
$this->setIfExists('value', $data ?? [], null);

src/Adyen/Model/PaymentsApp/ObjectSerializer.php

Lines changed: 3 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
namespace Adyen\Model\PaymentsApp;
1717

1818
use Adyen\Model\PaymentsApp\ModelInterface;
19+
use GuzzleHttp\Utils;
1920

2021
class ObjectSerializer
2122
{
@@ -81,7 +82,7 @@ public static function sanitizeForSerialization($data, $type = null, $format = n
8182
}
8283
}
8384
} else {
84-
foreach ($data as $property => $value) {
85+
foreach($data as $property => $value) {
8586
$values[$property] = self::sanitizeForSerialization($value);
8687
}
8788
}
@@ -117,9 +118,7 @@ public static function sanitizeFilename($filename)
117118
*/
118119
public static function sanitizeTimestamp($timestamp)
119120
{
120-
if (!is_string($timestamp)) {
121-
return $timestamp;
122-
}
121+
if (!is_string($timestamp)) return $timestamp;
123122

124123
return preg_replace('/(:\d{2}.\d{6})\d*/', '$1', $timestamp);
125124
}
@@ -236,30 +235,6 @@ public static function deserialize($data, $class, $httpHeaders = null)
236235
}
237236
}
238237

239-
if ($class === '\SplFileObject') {
240-
$data = Utils::streamFor($data);
241-
242-
/** @var \Psr\Http\Message\StreamInterface $data */
243-
244-
// determine file name
245-
if (is_array($httpHeaders)
246-
&& array_key_exists('Content-Disposition', $httpHeaders)
247-
&& preg_match('/inline; filename=[\'"]?([^\'"\s]+)[\'"]?$/i', $httpHeaders['Content-Disposition'], $match)
248-
) {
249-
$filename = Configuration::getDefaultConfiguration()->getTempFolderPath() . DIRECTORY_SEPARATOR . self::sanitizeFilename($match[1]);
250-
} else {
251-
$filename = tempnam(Configuration::getDefaultConfiguration()->getTempFolderPath(), '');
252-
}
253-
254-
$file = fopen($filename, 'w');
255-
while ($chunk = $data->read(200)) {
256-
fwrite($file, $chunk);
257-
}
258-
fclose($file);
259-
260-
return new \SplFileObject($filename, 'r');
261-
}
262-
263238
/** @psalm-suppress ParadoxicalCondition */
264239
if (in_array($class, ['\DateTime', '\SplFileObject', 'array', 'bool', 'boolean', 'byte', 'double', 'float', 'int', 'integer', 'mixed', 'number', 'object', 'string', 'void'], true)) {
265240
settype($data, $class);

src/Adyen/Model/PaymentsApp/PaymentsAppDto.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,7 @@
2121
/**
2222
* PaymentsAppDto Class Doc Comment
2323
*
24-
* @category Class
2524
* @package Adyen
26-
* @author OpenAPI Generator team
27-
* @link https://openapi-generator.tech
2825
* @implements \ArrayAccess<string, mixed>
2926
*/
3027
class PaymentsAppDto implements ModelInterface, ArrayAccess, \JsonSerializable
@@ -247,7 +244,7 @@ public function getModelName()
247244
* @param mixed[] $data Associated array of property values
248245
* initializing the model
249246
*/
250-
public function __construct(array $data = null)
247+
public function __construct(?array $data = null)
251248
{
252249
$this->setIfExists('installationId', $data ?? [], null);
253250
$this->setIfExists('merchantAccountCode', $data ?? [], null);

src/Adyen/Model/PaymentsApp/PaymentsAppResponse.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,7 @@
2121
/**
2222
* PaymentsAppResponse Class Doc Comment
2323
*
24-
* @category Class
2524
* @package Adyen
26-
* @author OpenAPI Generator team
27-
* @link https://openapi-generator.tech
2825
* @implements \ArrayAccess<string, mixed>
2926
*/
3027
class PaymentsAppResponse implements ModelInterface, ArrayAccess, \JsonSerializable
@@ -229,7 +226,7 @@ public function getModelName()
229226
* @param mixed[] $data Associated array of property values
230227
* initializing the model
231228
*/
232-
public function __construct(array $data = null)
229+
public function __construct(?array $data = null)
233230
{
234231
$this->setIfExists('paymentsApps', $data ?? [], null);
235232
}

0 commit comments

Comments
 (0)