Skip to content

Commit 866bed6

Browse files
AdyenAutomationBotAdyenAutomationBotgcatanese
authored
[ManagementAPIs] Code generation: update services and models (#802)
* [adyen-sdk-automation] automated changes * style(fmt): code formatted * Revert changes in PayByBankPlaidInfo * Revert changes in SplitConfigurationRule * Revert changes in UpdateSplitConfigurationRuleRequest --------- Co-authored-by: AdyenAutomationBot <Adyen Automation plugins_dev@adyen.com> Co-authored-by: beppe <beppe.catanese@adyen.com>
1 parent a75043f commit 866bed6

13 files changed

+662
-102
lines changed

src/Adyen/Model/Management/AlipayPlusInfo.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ public function getSettlementCurrencyCode()
286286
/**
287287
* Sets settlementCurrencyCode
288288
*
289-
* @param string|null $settlementCurrencyCode currency used for settlement. Defaults to USD
289+
* @param string|null $settlementCurrencyCode The currency used for settlement. Defaults to USD.
290290
*
291291
* @return self
292292
*/

src/Adyen/Model/Management/CreateCompanyWebhookRequest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -859,7 +859,7 @@ public function getType()
859859
/**
860860
* Sets type
861861
*
862-
* @param string $type The type of webhook that is being created. Possible values are: - **standard** - **account-settings-notification** - **banktransfer-notification** - **boletobancario-notification** - **directdebit-notification** - **ach-notification-of-change-notification** - **direct-debit-notice-of-change-notification** - **pending-notification** - **ideal-notification** - **ideal-pending-notification** - **report-notification** - **rreq-notification** - **terminal-settings** - **terminal-boarding** Find out more about [standard notification webhooks](https://docs.adyen.com/development-resources/webhooks/understand-notifications#event-codes) and [other types of notifications](https://docs.adyen.com/development-resources/webhooks/understand-notifications#other-notifications).
862+
* @param string $type The type of webhook that is being created. Possible values are: - **standard** - **account-settings-notification** - **banktransfer-notification** - **boletobancario-notification** - **directdebit-notification** - **ach-notification-of-change-notification** - **direct-debit-notice-of-change-notification** - **pending-notification** - **ideal-notification** - **ideal-pending-notification** - **report-notification** - **rreq-notification** - **terminal-settings** - **terminal-boarding** Find out more about [standard webhooks](https://docs.adyen.com/development-resources/webhooks/webhook-types/#event-codes) and [other types of webhooks](https://docs.adyen.com/development-resources/webhooks/webhook-types/#other-webhooks).
863863
*
864864
* @return self
865865
*/

src/Adyen/Model/Management/CreateMerchantWebhookRequest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -756,7 +756,7 @@ public function getType()
756756
/**
757757
* Sets type
758758
*
759-
* @param string $type The type of webhook that is being created. Possible values are: - **standard** - **account-settings-notification** - **banktransfer-notification** - **boletobancario-notification** - **directdebit-notification** - **ach-notification-of-change-notification** - **direct-debit-notice-of-change-notification** - **pending-notification** - **ideal-notification** - **ideal-pending-notification** - **report-notification** - **rreq-notification** - **terminal-settings** - **terminal-boarding** Find out more about [standard notification webhooks](https://docs.adyen.com/development-resources/webhooks/understand-notifications#event-codes) and [other types of notifications](https://docs.adyen.com/development-resources/webhooks/understand-notifications#other-notifications).
759+
* @param string $type The type of webhook that is being created. Possible values are: - **standard** - **account-settings-notification** - **banktransfer-notification** - **boletobancario-notification** - **directdebit-notification** - **ach-notification-of-change-notification** - **direct-debit-notice-of-change-notification** - **pending-notification** - **ideal-notification** - **ideal-pending-notification** - **report-notification** - **rreq-notification** - **terminal-settings** - **terminal-boarding** Find out more about [standard webhooks](https://docs.adyen.com/development-resources/webhooks/webhook-types/#event-codes) and [other types of webhooks](https://docs.adyen.com/development-resources/webhooks/webhook-types/#other-webhooks).
760760
*
761761
* @return self
762762
*/

src/Adyen/Model/Management/PayByBankPlaidInfo.php

Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -29,17 +29,17 @@ class PayByBankPlaidInfo implements ModelInterface, ArrayAccess, \JsonSerializab
2929
public const DISCRIMINATOR = null;
3030

3131
/**
32-
* The original name of the model.
33-
*
34-
* @var string
35-
*/
32+
* The original name of the model.
33+
*
34+
* @var string
35+
*/
3636
protected static $openAPIModelName = 'PayByBankPlaidInfo';
3737

3838
/**
39-
* Array of property to type mappings. Used for (de)serialization
40-
*
41-
* @var string[]
42-
*/
39+
* Array of property to type mappings. Used for (de)serialization
40+
*
41+
* @var string[]
42+
*/
4343
protected static $openAPITypes = [
4444
'countryCode' => 'string',
4545
'logo' => 'string',
@@ -53,12 +53,12 @@ class PayByBankPlaidInfo implements ModelInterface, ArrayAccess, \JsonSerializab
5353
];
5454

5555
/**
56-
* Array of property to format mappings. Used for (de)serialization
57-
*
58-
* @var string[]
59-
* @phpstan-var array<string, string|null>
60-
* @psalm-var array<string, string|null>
61-
*/
56+
* Array of property to format mappings. Used for (de)serialization
57+
*
58+
* @var string[]
59+
* @phpstan-var array<string, string|null>
60+
* @psalm-var array<string, string|null>
61+
*/
6262
protected static $openAPIFormats = [
6363
'countryCode' => null,
6464
'logo' => null,
@@ -72,10 +72,10 @@ class PayByBankPlaidInfo implements ModelInterface, ArrayAccess, \JsonSerializab
7272
];
7373

7474
/**
75-
* Array of nullable properties. Used for (de)serialization
76-
*
77-
* @var boolean[]
78-
*/
75+
* Array of nullable properties. Used for (de)serialization
76+
*
77+
* @var boolean[]
78+
*/
7979
protected static $openAPINullables = [
8080
'countryCode' => false,
8181
'logo' => false,
@@ -89,10 +89,10 @@ class PayByBankPlaidInfo implements ModelInterface, ArrayAccess, \JsonSerializab
8989
];
9090

9191
/**
92-
* If a nullable field gets set to null, insert it here
93-
*
94-
* @var boolean[]
95-
*/
92+
* If a nullable field gets set to null, insert it here
93+
*
94+
* @var boolean[]
95+
*/
9696
protected $openAPINullablesSetToNull = [];
9797

9898
/**
@@ -288,14 +288,14 @@ public function __construct(?array $data = null)
288288
}
289289

290290
/**
291-
* Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName
292-
* is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the
293-
* $this->openAPINullablesSetToNull array
294-
*
295-
* @param string $variableName
296-
* @param array $fields
297-
* @param mixed $defaultValue
298-
*/
291+
* Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName
292+
* is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the
293+
* $this->openAPINullablesSetToNull array
294+
*
295+
* @param string $variableName
296+
* @param array $fields
297+
* @param mixed $defaultValue
298+
*/
299299
private function setIfExists(string $variableName, array $fields, $defaultValue): void
300300
{
301301
if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) {
@@ -620,10 +620,10 @@ public function toArray(): array
620620
// Check if the property value is an object and has a toArray() method
621621
if (is_object($propertyValue) && method_exists($propertyValue, 'toArray')) {
622622
$array[$propertyName] = $propertyValue->toArray();
623-
// Check if it's type datetime
623+
// Check if it's type datetime
624624
} elseif ($propertyValue instanceof \DateTime) {
625625
$array[$propertyName] = $propertyValue->format(DATE_ATOM);
626-
// If it's an array type we should check whether it contains objects and if so call toArray method
626+
// If it's an array type we should check whether it contains objects and if so call toArray method
627627
} elseif (is_array($propertyValue)) {
628628
$array[$propertyName] = array_map(function ($item) {
629629
return $item instanceof ModelInterface ? $item->toArray() : $item;

src/Adyen/Model/Management/PaymentMethod.php

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ class PaymentMethod implements ModelInterface, ArrayAccess, \JsonSerializable
7979
'payto' => '\Adyen\Model\Management\PayToInfo',
8080
'pulse' => '\Adyen\Model\Management\PulseInfo',
8181
'reference' => 'string',
82+
'sepadirectdebit' => '\Adyen\Model\Management\SepaDirectDebitInfo',
8283
'shopperInteraction' => 'string',
8384
'sodexo' => '\Adyen\Model\Management\SodexoInfo',
8485
'sofort' => '\Adyen\Model\Management\SofortInfo',
@@ -141,6 +142,7 @@ class PaymentMethod implements ModelInterface, ArrayAccess, \JsonSerializable
141142
'payto' => null,
142143
'pulse' => null,
143144
'reference' => null,
145+
'sepadirectdebit' => null,
144146
'shopperInteraction' => null,
145147
'sodexo' => null,
146148
'sofort' => null,
@@ -201,6 +203,7 @@ class PaymentMethod implements ModelInterface, ArrayAccess, \JsonSerializable
201203
'payto' => false,
202204
'pulse' => false,
203205
'reference' => false,
206+
'sepadirectdebit' => false,
204207
'shopperInteraction' => false,
205208
'sodexo' => false,
206209
'sofort' => false,
@@ -341,6 +344,7 @@ public function isNullableSetToNull(string $property): bool
341344
'payto' => 'payto',
342345
'pulse' => 'pulse',
343346
'reference' => 'reference',
347+
'sepadirectdebit' => 'sepadirectdebit',
344348
'shopperInteraction' => 'shopperInteraction',
345349
'sodexo' => 'sodexo',
346350
'sofort' => 'sofort',
@@ -401,6 +405,7 @@ public function isNullableSetToNull(string $property): bool
401405
'payto' => 'setPayto',
402406
'pulse' => 'setPulse',
403407
'reference' => 'setReference',
408+
'sepadirectdebit' => 'setSepadirectdebit',
404409
'shopperInteraction' => 'setShopperInteraction',
405410
'sodexo' => 'setSodexo',
406411
'sofort' => 'setSofort',
@@ -461,6 +466,7 @@ public function isNullableSetToNull(string $property): bool
461466
'payto' => 'getPayto',
462467
'pulse' => 'getPulse',
463468
'reference' => 'getReference',
469+
'sepadirectdebit' => 'getSepadirectdebit',
464470
'shopperInteraction' => 'getShopperInteraction',
465471
'sodexo' => 'getSodexo',
466472
'sofort' => 'getSofort',
@@ -590,6 +596,7 @@ public function __construct(?array $data = null)
590596
$this->setIfExists('payto', $data ?? [], null);
591597
$this->setIfExists('pulse', $data ?? [], null);
592598
$this->setIfExists('reference', $data ?? [], null);
599+
$this->setIfExists('sepadirectdebit', $data ?? [], null);
593600
$this->setIfExists('shopperInteraction', $data ?? [], null);
594601
$this->setIfExists('sodexo', $data ?? [], null);
595602
$this->setIfExists('sofort', $data ?? [], null);
@@ -1572,6 +1579,30 @@ public function setReference($reference)
15721579
return $this;
15731580
}
15741581

1582+
/**
1583+
* Gets sepadirectdebit
1584+
*
1585+
* @return \Adyen\Model\Management\SepaDirectDebitInfo|null
1586+
*/
1587+
public function getSepadirectdebit()
1588+
{
1589+
return $this->container['sepadirectdebit'];
1590+
}
1591+
1592+
/**
1593+
* Sets sepadirectdebit
1594+
*
1595+
* @param \Adyen\Model\Management\SepaDirectDebitInfo|null $sepadirectdebit sepadirectdebit
1596+
*
1597+
* @return self
1598+
*/
1599+
public function setSepadirectdebit($sepadirectdebit)
1600+
{
1601+
$this->container['sepadirectdebit'] = $sepadirectdebit;
1602+
1603+
return $this;
1604+
}
1605+
15751606
/**
15761607
* Gets shopperInteraction
15771608
*

src/Adyen/Model/Management/PaymentMethodResponse.php

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,10 @@ public function getModelName()
236236
return self::$openAPIModelName;
237237
}
238238

239+
public const TYPES_WITH_ERRORS_ABRAPETITE = 'abrapetite';
240+
public const TYPES_WITH_ERRORS_ABRAPETITE_CREDIT = 'abrapetite_credit';
241+
public const TYPES_WITH_ERRORS_ABRAPETITE_DEBIT = 'abrapetite_debit';
242+
public const TYPES_WITH_ERRORS_ABRAPETITE_PREPAID = 'abrapetite_prepaid';
239243
public const TYPES_WITH_ERRORS_ACCEL = 'accel';
240244
public const TYPES_WITH_ERRORS_ACH = 'ach';
241245
public const TYPES_WITH_ERRORS_AFFIRM = 'affirm';
@@ -328,8 +332,12 @@ public function getModelName()
328332
public const TYPES_WITH_ERRORS_PERSONAL_CARD_CREDIT = 'personal_card_credit';
329333
public const TYPES_WITH_ERRORS_PERSONAL_CARD_DEBIT = 'personal_card_debit';
330334
public const TYPES_WITH_ERRORS_PULSE = 'pulse';
335+
public const TYPES_WITH_ERRORS_ROMCARD = 'romcard';
336+
public const TYPES_WITH_ERRORS_ROMCARD_CREDIT = 'romcard_credit';
337+
public const TYPES_WITH_ERRORS_ROMCARD_DEBIT = 'romcard_debit';
331338
public const TYPES_WITH_ERRORS_SENFF = 'senff';
332339
public const TYPES_WITH_ERRORS_SENFF_CREDIT = 'senff_credit';
340+
public const TYPES_WITH_ERRORS_SEPADIRECTDEBIT = 'sepadirectdebit';
333341
public const TYPES_WITH_ERRORS_SODEXO = 'sodexo';
334342
public const TYPES_WITH_ERRORS_STAR = 'star';
335343
public const TYPES_WITH_ERRORS_SWISH = 'swish';
@@ -366,6 +374,10 @@ public function getModelName()
366374
public function getTypesWithErrorsAllowableValues()
367375
{
368376
return [
377+
self::TYPES_WITH_ERRORS_ABRAPETITE,
378+
self::TYPES_WITH_ERRORS_ABRAPETITE_CREDIT,
379+
self::TYPES_WITH_ERRORS_ABRAPETITE_DEBIT,
380+
self::TYPES_WITH_ERRORS_ABRAPETITE_PREPAID,
369381
self::TYPES_WITH_ERRORS_ACCEL,
370382
self::TYPES_WITH_ERRORS_ACH,
371383
self::TYPES_WITH_ERRORS_AFFIRM,
@@ -458,8 +470,12 @@ public function getTypesWithErrorsAllowableValues()
458470
self::TYPES_WITH_ERRORS_PERSONAL_CARD_CREDIT,
459471
self::TYPES_WITH_ERRORS_PERSONAL_CARD_DEBIT,
460472
self::TYPES_WITH_ERRORS_PULSE,
473+
self::TYPES_WITH_ERRORS_ROMCARD,
474+
self::TYPES_WITH_ERRORS_ROMCARD_CREDIT,
475+
self::TYPES_WITH_ERRORS_ROMCARD_DEBIT,
461476
self::TYPES_WITH_ERRORS_SENFF,
462477
self::TYPES_WITH_ERRORS_SENFF_CREDIT,
478+
self::TYPES_WITH_ERRORS_SEPADIRECTDEBIT,
463479
self::TYPES_WITH_ERRORS_SODEXO,
464480
self::TYPES_WITH_ERRORS_STAR,
465481
self::TYPES_WITH_ERRORS_SWISH,
@@ -668,7 +684,7 @@ public function getTypesWithErrors()
668684
/**
669685
* Sets typesWithErrors
670686
*
671-
* @param string[]|null $typesWithErrors Payment method types with errors.
687+
* @param string[]|null $typesWithErrors The payment method types that were not successfully requested and their corresponding errors.
672688
*
673689
* @return self
674690
*/

0 commit comments

Comments
 (0)