Skip to content

Commit 76722cb

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

29 files changed

+972
-57
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/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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ public function getCardNumber()
320320
/**
321321
* Sets cardNumber
322322
*
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.
323+
* @param string $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.
324324
*
325325
* @return self
326326
*/

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
*

src/Adyen/Model/Checkout/CheckoutPaymentMethod.php

Lines changed: 33 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ class CheckoutPaymentMethod implements ModelInterface, ArrayAccess, \JsonSeriali
7373
'encryptedCardNumber' => 'string',
7474
'encryptedExpiryMonth' => 'string',
7575
'encryptedExpiryYear' => 'string',
76+
'encryptedPassword' => 'string',
7677
'encryptedSecurityCode' => 'string',
7778
'expiryMonth' => 'string',
7879
'expiryYear' => 'string',
@@ -158,6 +159,7 @@ class CheckoutPaymentMethod implements ModelInterface, ArrayAccess, \JsonSeriali
158159
'encryptedCardNumber' => null,
159160
'encryptedExpiryMonth' => null,
160161
'encryptedExpiryYear' => null,
162+
'encryptedPassword' => null,
161163
'encryptedSecurityCode' => null,
162164
'expiryMonth' => null,
163165
'expiryYear' => null,
@@ -241,6 +243,7 @@ class CheckoutPaymentMethod implements ModelInterface, ArrayAccess, \JsonSeriali
241243
'encryptedCardNumber' => false,
242244
'encryptedExpiryMonth' => false,
243245
'encryptedExpiryYear' => false,
246+
'encryptedPassword' => false,
244247
'encryptedSecurityCode' => false,
245248
'expiryMonth' => false,
246249
'expiryYear' => false,
@@ -404,6 +407,7 @@ public function isNullableSetToNull(string $property): bool
404407
'encryptedCardNumber' => 'encryptedCardNumber',
405408
'encryptedExpiryMonth' => 'encryptedExpiryMonth',
406409
'encryptedExpiryYear' => 'encryptedExpiryYear',
410+
'encryptedPassword' => 'encryptedPassword',
407411
'encryptedSecurityCode' => 'encryptedSecurityCode',
408412
'expiryMonth' => 'expiryMonth',
409413
'expiryYear' => 'expiryYear',
@@ -487,6 +491,7 @@ public function isNullableSetToNull(string $property): bool
487491
'encryptedCardNumber' => 'setEncryptedCardNumber',
488492
'encryptedExpiryMonth' => 'setEncryptedExpiryMonth',
489493
'encryptedExpiryYear' => 'setEncryptedExpiryYear',
494+
'encryptedPassword' => 'setEncryptedPassword',
490495
'encryptedSecurityCode' => 'setEncryptedSecurityCode',
491496
'expiryMonth' => 'setExpiryMonth',
492497
'expiryYear' => 'setExpiryYear',
@@ -570,6 +575,7 @@ public function isNullableSetToNull(string $property): bool
570575
'encryptedCardNumber' => 'getEncryptedCardNumber',
571576
'encryptedExpiryMonth' => 'getEncryptedExpiryMonth',
572577
'encryptedExpiryYear' => 'getEncryptedExpiryYear',
578+
'encryptedPassword' => 'getEncryptedPassword',
573579
'encryptedSecurityCode' => 'getEncryptedSecurityCode',
574580
'expiryMonth' => 'getExpiryMonth',
575581
'expiryYear' => 'getExpiryYear',
@@ -703,6 +709,7 @@ public function __construct(?array $data = null)
703709
$this->setIfExists('encryptedCardNumber', $data ?? [], null);
704710
$this->setIfExists('encryptedExpiryMonth', $data ?? [], null);
705711
$this->setIfExists('encryptedExpiryYear', $data ?? [], null);
712+
$this->setIfExists('encryptedPassword', $data ?? [], null);
706713
$this->setIfExists('encryptedSecurityCode', $data ?? [], null);
707714
$this->setIfExists('expiryMonth', $data ?? [], null);
708715
$this->setIfExists('expiryYear', $data ?? [], null);
@@ -1577,6 +1584,30 @@ public function setEncryptedExpiryYear($encryptedExpiryYear)
15771584
return $this;
15781585
}
15791586

1587+
/**
1588+
* Gets encryptedPassword
1589+
*
1590+
* @return string|null
1591+
*/
1592+
public function getEncryptedPassword()
1593+
{
1594+
return $this->container['encryptedPassword'];
1595+
}
1596+
1597+
/**
1598+
* Sets encryptedPassword
1599+
*
1600+
* @param string|null $encryptedPassword This field contains an encrypted, one-time password or an authentication code provided by the cardholder.
1601+
*
1602+
* @return self
1603+
*/
1604+
public function setEncryptedPassword($encryptedPassword)
1605+
{
1606+
$this->container['encryptedPassword'] = $encryptedPassword;
1607+
1608+
return $this;
1609+
}
1610+
15801611
/**
15811612
* Gets encryptedSecurityCode
15821613
*
@@ -2070,7 +2101,7 @@ public function getShopperEmail()
20702101
/**
20712102
* Sets shopperEmail
20722103
*
2073-
* @param string $shopperEmail
2104+
* @param string $shopperEmail
20742105
*
20752106
* @return self
20762107
*/
@@ -2094,7 +2125,7 @@ public function getTelephoneNumber()
20942125
/**
20952126
* Sets telephoneNumber
20962127
*
2097-
* @param string $telephoneNumber
2128+
* @param string $telephoneNumber
20982129
*
20992130
* @return self
21002131
*/

src/Adyen/Model/Checkout/DonationPaymentMethod.php

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ class DonationPaymentMethod implements ModelInterface, ArrayAccess, \JsonSeriali
5656
'encryptedCardNumber' => 'string',
5757
'encryptedExpiryMonth' => 'string',
5858
'encryptedExpiryYear' => 'string',
59+
'encryptedPassword' => 'string',
5960
'encryptedSecurityCode' => 'string',
6061
'expiryMonth' => 'string',
6162
'expiryYear' => 'string',
@@ -95,6 +96,7 @@ class DonationPaymentMethod implements ModelInterface, ArrayAccess, \JsonSeriali
9596
'encryptedCardNumber' => null,
9697
'encryptedExpiryMonth' => null,
9798
'encryptedExpiryYear' => null,
99+
'encryptedPassword' => null,
98100
'encryptedSecurityCode' => null,
99101
'expiryMonth' => null,
100102
'expiryYear' => null,
@@ -132,6 +134,7 @@ class DonationPaymentMethod implements ModelInterface, ArrayAccess, \JsonSeriali
132134
'encryptedCardNumber' => false,
133135
'encryptedExpiryMonth' => false,
134136
'encryptedExpiryYear' => false,
137+
'encryptedPassword' => false,
135138
'encryptedSecurityCode' => false,
136139
'expiryMonth' => false,
137140
'expiryYear' => false,
@@ -249,6 +252,7 @@ public function isNullableSetToNull(string $property): bool
249252
'encryptedCardNumber' => 'encryptedCardNumber',
250253
'encryptedExpiryMonth' => 'encryptedExpiryMonth',
251254
'encryptedExpiryYear' => 'encryptedExpiryYear',
255+
'encryptedPassword' => 'encryptedPassword',
252256
'encryptedSecurityCode' => 'encryptedSecurityCode',
253257
'expiryMonth' => 'expiryMonth',
254258
'expiryYear' => 'expiryYear',
@@ -286,6 +290,7 @@ public function isNullableSetToNull(string $property): bool
286290
'encryptedCardNumber' => 'setEncryptedCardNumber',
287291
'encryptedExpiryMonth' => 'setEncryptedExpiryMonth',
288292
'encryptedExpiryYear' => 'setEncryptedExpiryYear',
293+
'encryptedPassword' => 'setEncryptedPassword',
289294
'encryptedSecurityCode' => 'setEncryptedSecurityCode',
290295
'expiryMonth' => 'setExpiryMonth',
291296
'expiryYear' => 'setExpiryYear',
@@ -323,6 +328,7 @@ public function isNullableSetToNull(string $property): bool
323328
'encryptedCardNumber' => 'getEncryptedCardNumber',
324329
'encryptedExpiryMonth' => 'getEncryptedExpiryMonth',
325330
'encryptedExpiryYear' => 'getEncryptedExpiryYear',
331+
'encryptedPassword' => 'getEncryptedPassword',
326332
'encryptedSecurityCode' => 'getEncryptedSecurityCode',
327333
'expiryMonth' => 'getExpiryMonth',
328334
'expiryYear' => 'getExpiryYear',
@@ -410,6 +416,7 @@ public function __construct(?array $data = null)
410416
$this->setIfExists('encryptedCardNumber', $data ?? [], null);
411417
$this->setIfExists('encryptedExpiryMonth', $data ?? [], null);
412418
$this->setIfExists('encryptedExpiryYear', $data ?? [], null);
419+
$this->setIfExists('encryptedPassword', $data ?? [], null);
413420
$this->setIfExists('encryptedSecurityCode', $data ?? [], null);
414421
$this->setIfExists('expiryMonth', $data ?? [], null);
415422
$this->setIfExists('expiryYear', $data ?? [], null);
@@ -794,6 +801,30 @@ public function setEncryptedExpiryYear($encryptedExpiryYear)
794801
return $this;
795802
}
796803

804+
/**
805+
* Gets encryptedPassword
806+
*
807+
* @return string|null
808+
*/
809+
public function getEncryptedPassword()
810+
{
811+
return $this->container['encryptedPassword'];
812+
}
813+
814+
/**
815+
* Sets encryptedPassword
816+
*
817+
* @param string|null $encryptedPassword This field contains an encrypted, one-time password or an authentication code provided by the cardholder.
818+
*
819+
* @return self
820+
*/
821+
public function setEncryptedPassword($encryptedPassword)
822+
{
823+
$this->container['encryptedPassword'] = $encryptedPassword;
824+
825+
return $this;
826+
}
827+
797828
/**
798829
* Gets encryptedSecurityCode
799830
*

0 commit comments

Comments
 (0)