Skip to content

Commit e9bc80e

Browse files
[management] Automated update from Adyen/adyen-openapi@a0b1ce6
1 parent eb19e8c commit e9bc80e

Some content is hidden

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

53 files changed

+3582
-592
lines changed

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/Amount.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ public function getCurrency()
299299
/**
300300
* Sets currency
301301
*
302-
* @param string $currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes).
302+
* @param string $currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes) of the amount.
303303
*
304304
* @return self
305305
*/
@@ -323,7 +323,7 @@ public function getValue()
323323
/**
324324
* Sets value
325325
*
326-
* @param int $value The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units).
326+
* @param int $value The numeric value of the amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units).
327327
*
328328
* @return self
329329
*/

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
*/

src/Adyen/Model/Management/Connectivity.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -324,11 +324,11 @@ public function setSimcardStatus($simcardStatus)
324324
{
325325
$allowedValues = $this->getSimcardStatusAllowableValues();
326326
if (!in_array($simcardStatus, $allowedValues, true)) {
327-
throw new \InvalidArgumentException(
327+
error_log(
328328
sprintf(
329-
"Invalid value '%s' for 'simcardStatus', must be one of '%s'",
329+
"simcardStatus: unexpected enum value '%s' - Supported values are [%s]",
330330
$simcardStatus,
331-
implode("', '", $allowedValues)
331+
implode(', ', $allowedValues)
332332
)
333333
);
334334
}

src/Adyen/Model/Management/CreateCompanyWebhookRequest.php

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -635,11 +635,11 @@ public function setCommunicationFormat($communicationFormat)
635635
{
636636
$allowedValues = $this->getCommunicationFormatAllowableValues();
637637
if (!in_array($communicationFormat, $allowedValues, true)) {
638-
throw new \InvalidArgumentException(
638+
error_log(
639639
sprintf(
640-
"Invalid value '%s' for 'communicationFormat', must be one of '%s'",
640+
"communicationFormat: unexpected enum value '%s' - Supported values are [%s]",
641641
$communicationFormat,
642-
implode("', '", $allowedValues)
642+
implode(', ', $allowedValues)
643643
)
644644
);
645645
}
@@ -693,11 +693,11 @@ public function setEncryptionProtocol($encryptionProtocol)
693693
{
694694
$allowedValues = $this->getEncryptionProtocolAllowableValues();
695695
if (!in_array($encryptionProtocol, $allowedValues, true)) {
696-
throw new \InvalidArgumentException(
696+
error_log(
697697
sprintf(
698-
"Invalid value '%s' for 'encryptionProtocol', must be one of '%s'",
698+
"encryptionProtocol: unexpected enum value '%s' - Supported values are [%s]",
699699
$encryptionProtocol,
700-
implode("', '", $allowedValues)
700+
implode(', ', $allowedValues)
701701
)
702702
);
703703
}
@@ -727,11 +727,11 @@ public function setFilterMerchantAccountType($filterMerchantAccountType)
727727
{
728728
$allowedValues = $this->getFilterMerchantAccountTypeAllowableValues();
729729
if (!in_array($filterMerchantAccountType, $allowedValues, true)) {
730-
throw new \InvalidArgumentException(
730+
error_log(
731731
sprintf(
732-
"Invalid value '%s' for 'filterMerchantAccountType', must be one of '%s'",
732+
"filterMerchantAccountType: unexpected enum value '%s' - Supported values are [%s]",
733733
$filterMerchantAccountType,
734-
implode("', '", $allowedValues)
734+
implode(', ', $allowedValues)
735735
)
736736
);
737737
}
@@ -785,11 +785,11 @@ public function setNetworkType($networkType)
785785
{
786786
$allowedValues = $this->getNetworkTypeAllowableValues();
787787
if (!in_array($networkType, $allowedValues, true)) {
788-
throw new \InvalidArgumentException(
788+
error_log(
789789
sprintf(
790-
"Invalid value '%s' for 'networkType', must be one of '%s'",
790+
"networkType: unexpected enum value '%s' - Supported values are [%s]",
791791
$networkType,
792-
implode("', '", $allowedValues)
792+
implode(', ', $allowedValues)
793793
)
794794
);
795795
}

0 commit comments

Comments
 (0)