Skip to content

Commit 9cb75c6

Browse files
[adyen-sdk-automation] automated changes
1 parent 852e733 commit 9cb75c6

File tree

59 files changed

+2077
-596
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

59 files changed

+2077
-596
lines changed

src/Adyen/Model/BalanceControl/BalanceTransferRequest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -492,11 +492,11 @@ public function setType($type)
492492
{
493493
$allowedValues = $this->getTypeAllowableValues();
494494
if (!in_array($type, $allowedValues, true)) {
495-
throw new \InvalidArgumentException(
495+
error_log(
496496
sprintf(
497-
"Invalid value '%s' for 'type', must be one of '%s'",
497+
"type: unexpected enum value '%s' - Supported values are [%s]",
498498
$type,
499-
implode("', '", $allowedValues)
499+
implode(', ', $allowedValues)
500500
)
501501
);
502502
}

src/Adyen/Model/BalanceControl/BalanceTransferResponse.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -573,11 +573,11 @@ public function setStatus($status)
573573
{
574574
$allowedValues = $this->getStatusAllowableValues();
575575
if (!in_array($status, $allowedValues, true)) {
576-
throw new \InvalidArgumentException(
576+
error_log(
577577
sprintf(
578-
"Invalid value '%s' for 'status', must be one of '%s'",
578+
"status: unexpected enum value '%s' - Supported values are [%s]",
579579
$status,
580-
implode("', '", $allowedValues)
580+
implode(', ', $allowedValues)
581581
)
582582
);
583583
}
@@ -631,11 +631,11 @@ public function setType($type)
631631
{
632632
$allowedValues = $this->getTypeAllowableValues();
633633
if (!in_array($type, $allowedValues, true)) {
634-
throw new \InvalidArgumentException(
634+
error_log(
635635
sprintf(
636-
"Invalid value '%s' for 'type', must be one of '%s'",
636+
"type: unexpected enum value '%s' - Supported values are [%s]",
637637
$type,
638-
implode("', '", $allowedValues)
638+
implode(', ', $allowedValues)
639639
)
640640
);
641641
}

src/Adyen/Model/BalanceControl/ObjectSerializer.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ public static function sanitizeForSerialization($data, $type = null, $format = n
8282
}
8383
}
8484
} else {
85-
foreach ($data as $property => $value) {
85+
foreach($data as $property => $value) {
8686
$values[$property] = self::sanitizeForSerialization($value);
8787
}
8888
}
@@ -118,9 +118,7 @@ public static function sanitizeFilename($filename)
118118
*/
119119
public static function sanitizeTimestamp($timestamp)
120120
{
121-
if (!is_string($timestamp)) {
122-
return $timestamp;
123-
}
121+
if (!is_string($timestamp)) return $timestamp;
124122

125123
return preg_replace('/(:\d{2}.\d{6})\d*/', '$1', $timestamp);
126124
}

src/Adyen/Model/Management/AccelInfo.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -329,11 +329,11 @@ public function setProcessingType($processingType)
329329
{
330330
$allowedValues = $this->getProcessingTypeAllowableValues();
331331
if (!in_array($processingType, $allowedValues, true)) {
332-
throw new \InvalidArgumentException(
332+
error_log(
333333
sprintf(
334-
"Invalid value '%s' for 'processingType', must be one of '%s'",
334+
"processingType: unexpected enum value '%s' - Supported values are [%s]",
335335
$processingType,
336-
implode("', '", $allowedValues)
336+
implode(', ', $allowedValues)
337337
)
338338
);
339339
}

src/Adyen/Model/Management/AdditionalSettings.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ public function getProperties()
317317
/**
318318
* Sets properties
319319
*
320-
* @param array<string,bool>|null $properties Object containing boolean key-value pairs. The key can be any [standard webhook additional setting](https://docs.adyen.com/development-resources/webhooks/additional-settings), and the value indicates if the setting is enabled. For example, `captureDelayHours`: **true** means the standard notifications you get will contain the number of hours remaining until the payment will be captured.
320+
* @param array<string,bool>|null $properties Object containing boolean key-value pairs. The key can be any [standard webhook additional setting](https://docs.adyen.com/development-resources/webhooks/additional-settings), and the value indicates if the setting is enabled. For example, `includeCaptureDelayHours`: **true** means the standard notifications you get will contain the number of hours remaining until the payment will be captured.
321321
*
322322
* @return self
323323
*/

src/Adyen/Model/Management/AdditionalSettingsResponse.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ public function getProperties()
348348
/**
349349
* Sets properties
350350
*
351-
* @param array<string,bool>|null $properties Object containing boolean key-value pairs. The key can be any [standard webhook additional setting](https://docs.adyen.com/development-resources/webhooks/additional-settings), and the value indicates if the setting is enabled. For example, `captureDelayHours`: **true** means the standard notifications you get will contain the number of hours remaining until the payment will be captured.
351+
* @param array<string,bool>|null $properties Object containing boolean key-value pairs. The key can be any [standard webhook additional setting](https://docs.adyen.com/development-resources/webhooks/additional-settings), and the value indicates if the setting is enabled. For example, `includeCaptureDelayHours`: **true** means the standard notifications you get will contain the number of hours remaining until the payment will be captured.
352352
*
353353
* @return self
354354
*/

src/Adyen/Model/Management/AffirmInfo.php

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ class AffirmInfo implements ModelInterface, ArrayAccess, \JsonSerializable
4141
* @var string[]
4242
*/
4343
protected static $openAPITypes = [
44+
'pricePlan' => 'string',
4445
'supportEmail' => 'string'
4546
];
4647

@@ -52,6 +53,7 @@ class AffirmInfo implements ModelInterface, ArrayAccess, \JsonSerializable
5253
* @psalm-var array<string, string|null>
5354
*/
5455
protected static $openAPIFormats = [
56+
'pricePlan' => null,
5557
'supportEmail' => null
5658
];
5759

@@ -61,6 +63,7 @@ class AffirmInfo implements ModelInterface, ArrayAccess, \JsonSerializable
6163
* @var boolean[]
6264
*/
6365
protected static $openAPINullables = [
66+
'pricePlan' => false,
6467
'supportEmail' => false
6568
];
6669

@@ -150,6 +153,7 @@ public function isNullableSetToNull(string $property): bool
150153
* @var string[]
151154
*/
152155
protected static $attributeMap = [
156+
'pricePlan' => 'pricePlan',
153157
'supportEmail' => 'supportEmail'
154158
];
155159

@@ -159,6 +163,7 @@ public function isNullableSetToNull(string $property): bool
159163
* @var string[]
160164
*/
161165
protected static $setters = [
166+
'pricePlan' => 'setPricePlan',
162167
'supportEmail' => 'setSupportEmail'
163168
];
164169

@@ -168,6 +173,7 @@ public function isNullableSetToNull(string $property): bool
168173
* @var string[]
169174
*/
170175
protected static $getters = [
176+
'pricePlan' => 'getPricePlan',
171177
'supportEmail' => 'getSupportEmail'
172178
];
173179

@@ -212,7 +218,23 @@ public function getModelName()
212218
return self::$openAPIModelName;
213219
}
214220

221+
public const PRICE_PLAN_BRONZE = 'BRONZE';
222+
public const PRICE_PLAN_SILVER = 'SILVER';
223+
public const PRICE_PLAN_GOLD = 'GOLD';
215224

225+
/**
226+
* Gets allowable values of the enum
227+
*
228+
* @return string[]
229+
*/
230+
public function getPricePlanAllowableValues()
231+
{
232+
return [
233+
self::PRICE_PLAN_BRONZE,
234+
self::PRICE_PLAN_SILVER,
235+
self::PRICE_PLAN_GOLD,
236+
];
237+
}
216238
/**
217239
* Associative array for storing property values
218240
*
@@ -228,6 +250,7 @@ public function getModelName()
228250
*/
229251
public function __construct(?array $data = null)
230252
{
253+
$this->setIfExists('pricePlan', $data ?? [], null);
231254
$this->setIfExists('supportEmail', $data ?? [], null);
232255
}
233256

@@ -258,6 +281,15 @@ public function listInvalidProperties()
258281
{
259282
$invalidProperties = [];
260283

284+
$allowedValues = $this->getPricePlanAllowableValues();
285+
if (!is_null($this->container['pricePlan']) && !in_array($this->container['pricePlan'], $allowedValues, true)) {
286+
$invalidProperties[] = sprintf(
287+
"invalid value '%s' for 'pricePlan', must be one of '%s'",
288+
$this->container['pricePlan'],
289+
implode("', '", $allowedValues)
290+
);
291+
}
292+
261293
if ($this->container['supportEmail'] === null) {
262294
$invalidProperties[] = "'supportEmail' can't be null";
263295
}
@@ -276,6 +308,40 @@ public function valid()
276308
}
277309

278310

311+
/**
312+
* Gets pricePlan
313+
*
314+
* @return string|null
315+
*/
316+
public function getPricePlan()
317+
{
318+
return $this->container['pricePlan'];
319+
}
320+
321+
/**
322+
* Sets pricePlan
323+
*
324+
* @param string|null $pricePlan Merchant price plan
325+
*
326+
* @return self
327+
*/
328+
public function setPricePlan($pricePlan)
329+
{
330+
$allowedValues = $this->getPricePlanAllowableValues();
331+
if (!in_array($pricePlan, $allowedValues, true)) {
332+
error_log(
333+
sprintf(
334+
"pricePlan: unexpected enum value '%s' - Supported values are [%s]",
335+
$pricePlan,
336+
implode(', ', $allowedValues)
337+
)
338+
);
339+
}
340+
$this->container['pricePlan'] = $pricePlan;
341+
342+
return $this;
343+
}
344+
279345
/**
280346
* Gets supportEmail
281347
*

src/Adyen/Model/Management/AmexInfo.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -384,11 +384,11 @@ public function setServiceLevel($serviceLevel)
384384
{
385385
$allowedValues = $this->getServiceLevelAllowableValues();
386386
if (!in_array($serviceLevel, $allowedValues, true)) {
387-
throw new \InvalidArgumentException(
387+
error_log(
388388
sprintf(
389-
"Invalid value '%s' for 'serviceLevel', must be one of '%s'",
389+
"serviceLevel: unexpected enum value '%s' - Supported values are [%s]",
390390
$serviceLevel,
391-
implode("', '", $allowedValues)
391+
implode(', ', $allowedValues)
392392
)
393393
);
394394
}

src/Adyen/Model/Management/AndroidApp.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -531,11 +531,11 @@ public function setStatus($status)
531531
{
532532
$allowedValues = $this->getStatusAllowableValues();
533533
if (!in_array($status, $allowedValues, true)) {
534-
throw new \InvalidArgumentException(
534+
error_log(
535535
sprintf(
536-
"Invalid value '%s' for 'status', must be one of '%s'",
536+
"status: unexpected enum value '%s' - Supported values are [%s]",
537537
$status,
538-
implode("', '", $allowedValues)
538+
implode(', ', $allowedValues)
539539
)
540540
);
541541
}

src/Adyen/Model/Management/CardholderReceipt.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ public function getHeaderForAuthorizedReceipt()
286286
/**
287287
* Sets headerForAuthorizedReceipt
288288
*
289-
* @param string|null $headerForAuthorizedReceipt A custom header to show on the shopper receipt for an authorised transaction. Allows one or two comma-separated header lines, and blank lines. For example, `header,header,filler`
289+
* @param string|null $headerForAuthorizedReceipt The structure of the header to show on the shopper receipt. You can define the order of one or two header lines and blank lines. For example, **header1,header2,filler**. The text of the header lines is defined in the Customer Area under **In-person payments** > **Terminal settings** > **Receipts** in the **Receipt lines** block.
290290
*
291291
* @return self
292292
*/

0 commit comments

Comments
 (0)