Skip to content

Commit 0338240

Browse files
[adyen-sdk-automation] automated changes
1 parent e87766a commit 0338240

Some content is hidden

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

46 files changed

+2517
-93
lines changed

src/Adyen/Model/BinLookup/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/BinLookup/Recurring.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,8 +237,10 @@ public function getModelName()
237237
}
238238

239239
public const CONTRACT_ONECLICK = 'ONECLICK';
240+
public const CONTRACT_ONECLICKRECURRING = 'ONECLICK,RECURRING';
240241
public const CONTRACT_RECURRING = 'RECURRING';
241242
public const CONTRACT_PAYOUT = 'PAYOUT';
243+
public const CONTRACT_EXTERNAL = 'EXTERNAL';
242244
public const TOKEN_SERVICE_VISATOKENSERVICE = 'VISATOKENSERVICE';
243245
public const TOKEN_SERVICE_MCTOKENSERVICE = 'MCTOKENSERVICE';
244246
public const TOKEN_SERVICE_AMEXTOKENSERVICE = 'AMEXTOKENSERVICE';
@@ -253,8 +255,10 @@ public function getContractAllowableValues()
253255
{
254256
return [
255257
self::CONTRACT_ONECLICK,
258+
self::CONTRACT_ONECLICKRECURRING,
256259
self::CONTRACT_RECURRING,
257260
self::CONTRACT_PAYOUT,
261+
self::CONTRACT_EXTERNAL,
258262
];
259263
}
260264
/**
@@ -366,7 +370,7 @@ public function getContract()
366370
/**
367371
* Sets contract
368372
*
369-
* @param string|null $contract The type of recurring contract to be used. Possible values: * `ONECLICK` – Payment details can be used to initiate a one-click payment, where the shopper enters the [card security code (CVC/CVV)](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid). * `RECURRING` – Payment details can be used without the card security code to initiate [card-not-present transactions](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-not-present-cnp). * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make a payout](https://docs.adyen.com/online-payments/online-payouts).
373+
* @param string|null $contract The type of recurring contract to be used. Possible values: * `ONECLICK` – Payment details can be used to initiate a one-click payment, where the shopper enters the [card security code (CVC/CVV)](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid). * `RECURRING` – Payment details can be used without the card security code to initiate [card-not-present transactions](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-not-present-cnp). * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make a payout](https://docs.adyen.com/online-payments/online-payouts). * `EXTERNAL` - Use this when you store payment details and send the raw card number or network token directly in your API request.
370374
*
371375
* @return self
372376
*/

src/Adyen/Model/Checkout/AdditionalDataLevel23.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -782,7 +782,7 @@ public function getEnhancedSchemeDataTotalTaxAmount()
782782
/**
783783
* Sets enhancedSchemeDataTotalTaxAmount
784784
*
785-
* @param string|null $enhancedSchemeDataTotalTaxAmount The amount of state or provincial [tax included in the total transaction amount](https://docs.adyen.com/payment-methods/cards/enhanced-scheme-data/l2-l3#requirements-to-send-level-2-3-esd), in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max length: 12 characters * Must not be all zeros.
785+
* @param string|null $enhancedSchemeDataTotalTaxAmount The amount of state or provincial [tax included in the total transaction amount](https://docs.adyen.com/payment-methods/cards/enhanced-scheme-data/l2-l3#requirements-to-send-level-2-3-esd), in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max length: 12 characters * For L2 data: must not be all zeroes. * For L3 data: can be zero.
786786
*
787787
* @return self
788788
*/

src/Adyen/Model/Checkout/AdditionalDataSubMerchant.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -531,7 +531,7 @@ public function getSubMerchantSubSellerSubSellerNrPhoneNumber()
531531
/**
532532
* Sets subMerchantSubSellerSubSellerNrPhoneNumber
533533
*
534-
* @param string|null $subMerchantSubSellerSubSellerNrPhoneNumber Required for transactions performed by registered payment facilitators. The phone number of the sub-merchant.* Format: Alphanumeric * Maximum length: 20 characters
534+
* @param string|null $subMerchantSubSellerSubSellerNrPhoneNumber Required for transactions performed by registered payment facilitators. The phone number of the sub-merchant. * Format: Alphanumeric and special characters * Maximum length: 20 characters
535535
*
536536
* @return self
537537
*/

src/Adyen/Model/Checkout/CardDetails.php

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ class CardDetails implements ModelInterface, ArrayAccess, \JsonSerializable
4949
'encryptedCardNumber' => 'string',
5050
'encryptedExpiryMonth' => 'string',
5151
'encryptedExpiryYear' => 'string',
52+
'encryptedPassword' => 'string',
5253
'encryptedSecurityCode' => 'string',
5354
'expiryMonth' => 'string',
5455
'expiryYear' => 'string',
@@ -84,6 +85,7 @@ class CardDetails implements ModelInterface, ArrayAccess, \JsonSerializable
8485
'encryptedCardNumber' => null,
8586
'encryptedExpiryMonth' => null,
8687
'encryptedExpiryYear' => null,
88+
'encryptedPassword' => null,
8789
'encryptedSecurityCode' => null,
8890
'expiryMonth' => null,
8991
'expiryYear' => null,
@@ -117,6 +119,7 @@ class CardDetails implements ModelInterface, ArrayAccess, \JsonSerializable
117119
'encryptedCardNumber' => false,
118120
'encryptedExpiryMonth' => false,
119121
'encryptedExpiryYear' => false,
122+
'encryptedPassword' => false,
120123
'encryptedSecurityCode' => false,
121124
'expiryMonth' => false,
122125
'expiryYear' => false,
@@ -230,6 +233,7 @@ public function isNullableSetToNull(string $property): bool
230233
'encryptedCardNumber' => 'encryptedCardNumber',
231234
'encryptedExpiryMonth' => 'encryptedExpiryMonth',
232235
'encryptedExpiryYear' => 'encryptedExpiryYear',
236+
'encryptedPassword' => 'encryptedPassword',
233237
'encryptedSecurityCode' => 'encryptedSecurityCode',
234238
'expiryMonth' => 'expiryMonth',
235239
'expiryYear' => 'expiryYear',
@@ -263,6 +267,7 @@ public function isNullableSetToNull(string $property): bool
263267
'encryptedCardNumber' => 'setEncryptedCardNumber',
264268
'encryptedExpiryMonth' => 'setEncryptedExpiryMonth',
265269
'encryptedExpiryYear' => 'setEncryptedExpiryYear',
270+
'encryptedPassword' => 'setEncryptedPassword',
266271
'encryptedSecurityCode' => 'setEncryptedSecurityCode',
267272
'expiryMonth' => 'setExpiryMonth',
268273
'expiryYear' => 'setExpiryYear',
@@ -296,6 +301,7 @@ public function isNullableSetToNull(string $property): bool
296301
'encryptedCardNumber' => 'getEncryptedCardNumber',
297302
'encryptedExpiryMonth' => 'getEncryptedExpiryMonth',
298303
'encryptedExpiryYear' => 'getEncryptedExpiryYear',
304+
'encryptedPassword' => 'getEncryptedPassword',
299305
'encryptedSecurityCode' => 'getEncryptedSecurityCode',
300306
'expiryMonth' => 'getExpiryMonth',
301307
'expiryYear' => 'getExpiryYear',
@@ -416,6 +422,7 @@ public function __construct(?array $data = null)
416422
$this->setIfExists('encryptedCardNumber', $data ?? [], null);
417423
$this->setIfExists('encryptedExpiryMonth', $data ?? [], null);
418424
$this->setIfExists('encryptedExpiryYear', $data ?? [], null);
425+
$this->setIfExists('encryptedPassword', $data ?? [], null);
419426
$this->setIfExists('encryptedSecurityCode', $data ?? [], null);
420427
$this->setIfExists('expiryMonth', $data ?? [], null);
421428
$this->setIfExists('expiryYear', $data ?? [], null);
@@ -689,6 +696,30 @@ public function setEncryptedExpiryYear($encryptedExpiryYear)
689696
return $this;
690697
}
691698

699+
/**
700+
* Gets encryptedPassword
701+
*
702+
* @return string|null
703+
*/
704+
public function getEncryptedPassword()
705+
{
706+
return $this->container['encryptedPassword'];
707+
}
708+
709+
/**
710+
* Sets encryptedPassword
711+
*
712+
* @param string|null $encryptedPassword This field contains an encrypted, one-time password or an authentication code provided by the cardholder.
713+
*
714+
* @return self
715+
*/
716+
public function setEncryptedPassword($encryptedPassword)
717+
{
718+
$this->container['encryptedPassword'] = $encryptedPassword;
719+
720+
return $this;
721+
}
722+
692723
/**
693724
* Gets encryptedSecurityCode
694725
*

src/Adyen/Model/Checkout/CardDetailsRequest.php

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -286,9 +286,6 @@ public function listInvalidProperties()
286286
{
287287
$invalidProperties = [];
288288

289-
if ($this->container['cardNumber'] === null) {
290-
$invalidProperties[] = "'cardNumber' can't be null";
291-
}
292289
if ($this->container['merchantAccount'] === null) {
293290
$invalidProperties[] = "'merchantAccount' can't be null";
294291
}
@@ -310,7 +307,7 @@ public function valid()
310307
/**
311308
* Gets cardNumber
312309
*
313-
* @return string
310+
* @return string|null
314311
*/
315312
public function getCardNumber()
316313
{
@@ -320,7 +317,7 @@ public function getCardNumber()
320317
/**
321318
* Sets cardNumber
322319
*
323-
* @param string $cardNumber A minimum of the first eight digits of the card number. The full card number gives the best result. You must be [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide) to collect raw card data. Alternatively, you can use the `encryptedCardNumber` field.
320+
* @param string|null $cardNumber A minimum of the first six digits of the card number. The full card number gives the best result. You must be [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide) to collect raw card data. Alternatively, you can use the `encryptedCardNumber` field.
324321
*
325322
* @return self
326323
*/

src/Adyen/Model/Checkout/CardDonations.php

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ class CardDonations implements ModelInterface, ArrayAccess, \JsonSerializable
4949
'encryptedCardNumber' => 'string',
5050
'encryptedExpiryMonth' => 'string',
5151
'encryptedExpiryYear' => 'string',
52+
'encryptedPassword' => 'string',
5253
'encryptedSecurityCode' => 'string',
5354
'expiryMonth' => 'string',
5455
'expiryYear' => 'string',
@@ -84,6 +85,7 @@ class CardDonations implements ModelInterface, ArrayAccess, \JsonSerializable
8485
'encryptedCardNumber' => null,
8586
'encryptedExpiryMonth' => null,
8687
'encryptedExpiryYear' => null,
88+
'encryptedPassword' => null,
8789
'encryptedSecurityCode' => null,
8890
'expiryMonth' => null,
8991
'expiryYear' => null,
@@ -117,6 +119,7 @@ class CardDonations implements ModelInterface, ArrayAccess, \JsonSerializable
117119
'encryptedCardNumber' => false,
118120
'encryptedExpiryMonth' => false,
119121
'encryptedExpiryYear' => false,
122+
'encryptedPassword' => false,
120123
'encryptedSecurityCode' => false,
121124
'expiryMonth' => false,
122125
'expiryYear' => false,
@@ -230,6 +233,7 @@ public function isNullableSetToNull(string $property): bool
230233
'encryptedCardNumber' => 'encryptedCardNumber',
231234
'encryptedExpiryMonth' => 'encryptedExpiryMonth',
232235
'encryptedExpiryYear' => 'encryptedExpiryYear',
236+
'encryptedPassword' => 'encryptedPassword',
233237
'encryptedSecurityCode' => 'encryptedSecurityCode',
234238
'expiryMonth' => 'expiryMonth',
235239
'expiryYear' => 'expiryYear',
@@ -263,6 +267,7 @@ public function isNullableSetToNull(string $property): bool
263267
'encryptedCardNumber' => 'setEncryptedCardNumber',
264268
'encryptedExpiryMonth' => 'setEncryptedExpiryMonth',
265269
'encryptedExpiryYear' => 'setEncryptedExpiryYear',
270+
'encryptedPassword' => 'setEncryptedPassword',
266271
'encryptedSecurityCode' => 'setEncryptedSecurityCode',
267272
'expiryMonth' => 'setExpiryMonth',
268273
'expiryYear' => 'setExpiryYear',
@@ -296,6 +301,7 @@ public function isNullableSetToNull(string $property): bool
296301
'encryptedCardNumber' => 'getEncryptedCardNumber',
297302
'encryptedExpiryMonth' => 'getEncryptedExpiryMonth',
298303
'encryptedExpiryYear' => 'getEncryptedExpiryYear',
304+
'encryptedPassword' => 'getEncryptedPassword',
299305
'encryptedSecurityCode' => 'getEncryptedSecurityCode',
300306
'expiryMonth' => 'getExpiryMonth',
301307
'expiryYear' => 'getExpiryYear',
@@ -416,6 +422,7 @@ public function __construct(?array $data = null)
416422
$this->setIfExists('encryptedCardNumber', $data ?? [], null);
417423
$this->setIfExists('encryptedExpiryMonth', $data ?? [], null);
418424
$this->setIfExists('encryptedExpiryYear', $data ?? [], null);
425+
$this->setIfExists('encryptedPassword', $data ?? [], null);
419426
$this->setIfExists('encryptedSecurityCode', $data ?? [], null);
420427
$this->setIfExists('expiryMonth', $data ?? [], null);
421428
$this->setIfExists('expiryYear', $data ?? [], null);
@@ -689,6 +696,30 @@ public function setEncryptedExpiryYear($encryptedExpiryYear)
689696
return $this;
690697
}
691698

699+
/**
700+
* Gets encryptedPassword
701+
*
702+
* @return string|null
703+
*/
704+
public function getEncryptedPassword()
705+
{
706+
return $this->container['encryptedPassword'];
707+
}
708+
709+
/**
710+
* Sets encryptedPassword
711+
*
712+
* @param string|null $encryptedPassword This field contains an encrypted, one-time password or an authentication code provided by the cardholder.
713+
*
714+
* @return self
715+
*/
716+
public function setEncryptedPassword($encryptedPassword)
717+
{
718+
$this->container['encryptedPassword'] = $encryptedPassword;
719+
720+
return $this;
721+
}
722+
692723
/**
693724
* Gets encryptedSecurityCode
694725
*

0 commit comments

Comments
 (0)