Skip to content

Commit f54cd84

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

Some content is hidden

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

57 files changed

+4826
-132
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: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -542,7 +542,7 @@ public function getEnhancedSchemeDataItemDetailLineItemNrCommodityCode()
542542
/**
543543
* Sets enhancedSchemeDataItemDetailLineItemNrCommodityCode
544544
*
545-
* @param string|null $enhancedSchemeDataItemDetailLineItemNrCommodityCode The code that identifies the item in a standardized commodity coding scheme. There are different commodity coding schemes: * [UNSPSC commodity codes](https://www.unspsc.org/) * [HS commodity codes](https://www.wcoomd.org/en/topics/nomenclature/overview.aspx) * [NAICS commodity codes](https://www.census.gov/naics/) * [NAPCS commodity codes](https://www.census.gov/naics/napcs/) * Encoding: ASCII * Max length: 12 characters * Must not start with a space or be all spaces. * Must not be all zeros.
545+
* @param string|null $enhancedSchemeDataItemDetailLineItemNrCommodityCode The code that identifies the item in a standardized commodity coding scheme. There are different commodity coding schemes: * [UNSPSC commodity codes](https://www.ungm.org/public/unspsc) * [HS commodity codes](https://www.wcoomd.org/en/topics/nomenclature/overview.aspx) * [NAICS commodity codes](https://www.census.gov/naics/) * [NAPCS commodity codes](https://www.census.gov/naics/napcs/) * Encoding: ASCII * Max length: 12 characters * Must not start with a space or be all spaces. * Must not be all zeros.
546546
*
547547
* @return self
548548
*/
@@ -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: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ class CardDetails implements ModelInterface, ArrayAccess, \JsonSerializable
4141
* @var string[]
4242
*/
4343
protected static $openAPITypes = [
44+
'billingSequenceNumber' => 'string',
4445
'brand' => 'string',
4546
'checkoutAttemptId' => 'string',
4647
'cupsecureplusSmscode' => 'string',
@@ -49,6 +50,7 @@ class CardDetails implements ModelInterface, ArrayAccess, \JsonSerializable
4950
'encryptedCardNumber' => 'string',
5051
'encryptedExpiryMonth' => 'string',
5152
'encryptedExpiryYear' => 'string',
53+
'encryptedPassword' => 'string',
5254
'encryptedSecurityCode' => 'string',
5355
'expiryMonth' => 'string',
5456
'expiryYear' => 'string',
@@ -76,6 +78,7 @@ class CardDetails implements ModelInterface, ArrayAccess, \JsonSerializable
7678
* @psalm-var array<string, string|null>
7779
*/
7880
protected static $openAPIFormats = [
81+
'billingSequenceNumber' => null,
7982
'brand' => null,
8083
'checkoutAttemptId' => null,
8184
'cupsecureplusSmscode' => null,
@@ -84,6 +87,7 @@ class CardDetails implements ModelInterface, ArrayAccess, \JsonSerializable
8487
'encryptedCardNumber' => null,
8588
'encryptedExpiryMonth' => null,
8689
'encryptedExpiryYear' => null,
90+
'encryptedPassword' => null,
8791
'encryptedSecurityCode' => null,
8892
'expiryMonth' => null,
8993
'expiryYear' => null,
@@ -109,6 +113,7 @@ class CardDetails implements ModelInterface, ArrayAccess, \JsonSerializable
109113
* @var boolean[]
110114
*/
111115
protected static $openAPINullables = [
116+
'billingSequenceNumber' => false,
112117
'brand' => false,
113118
'checkoutAttemptId' => false,
114119
'cupsecureplusSmscode' => false,
@@ -117,6 +122,7 @@ class CardDetails implements ModelInterface, ArrayAccess, \JsonSerializable
117122
'encryptedCardNumber' => false,
118123
'encryptedExpiryMonth' => false,
119124
'encryptedExpiryYear' => false,
125+
'encryptedPassword' => false,
120126
'encryptedSecurityCode' => false,
121127
'expiryMonth' => false,
122128
'expiryYear' => false,
@@ -222,6 +228,7 @@ public function isNullableSetToNull(string $property): bool
222228
* @var string[]
223229
*/
224230
protected static $attributeMap = [
231+
'billingSequenceNumber' => 'billingSequenceNumber',
225232
'brand' => 'brand',
226233
'checkoutAttemptId' => 'checkoutAttemptId',
227234
'cupsecureplusSmscode' => 'cupsecureplus.smscode',
@@ -230,6 +237,7 @@ public function isNullableSetToNull(string $property): bool
230237
'encryptedCardNumber' => 'encryptedCardNumber',
231238
'encryptedExpiryMonth' => 'encryptedExpiryMonth',
232239
'encryptedExpiryYear' => 'encryptedExpiryYear',
240+
'encryptedPassword' => 'encryptedPassword',
233241
'encryptedSecurityCode' => 'encryptedSecurityCode',
234242
'expiryMonth' => 'expiryMonth',
235243
'expiryYear' => 'expiryYear',
@@ -255,6 +263,7 @@ public function isNullableSetToNull(string $property): bool
255263
* @var string[]
256264
*/
257265
protected static $setters = [
266+
'billingSequenceNumber' => 'setBillingSequenceNumber',
258267
'brand' => 'setBrand',
259268
'checkoutAttemptId' => 'setCheckoutAttemptId',
260269
'cupsecureplusSmscode' => 'setCupsecureplusSmscode',
@@ -263,6 +272,7 @@ public function isNullableSetToNull(string $property): bool
263272
'encryptedCardNumber' => 'setEncryptedCardNumber',
264273
'encryptedExpiryMonth' => 'setEncryptedExpiryMonth',
265274
'encryptedExpiryYear' => 'setEncryptedExpiryYear',
275+
'encryptedPassword' => 'setEncryptedPassword',
266276
'encryptedSecurityCode' => 'setEncryptedSecurityCode',
267277
'expiryMonth' => 'setExpiryMonth',
268278
'expiryYear' => 'setExpiryYear',
@@ -288,6 +298,7 @@ public function isNullableSetToNull(string $property): bool
288298
* @var string[]
289299
*/
290300
protected static $getters = [
301+
'billingSequenceNumber' => 'getBillingSequenceNumber',
291302
'brand' => 'getBrand',
292303
'checkoutAttemptId' => 'getCheckoutAttemptId',
293304
'cupsecureplusSmscode' => 'getCupsecureplusSmscode',
@@ -296,6 +307,7 @@ public function isNullableSetToNull(string $property): bool
296307
'encryptedCardNumber' => 'getEncryptedCardNumber',
297308
'encryptedExpiryMonth' => 'getEncryptedExpiryMonth',
298309
'encryptedExpiryYear' => 'getEncryptedExpiryYear',
310+
'encryptedPassword' => 'getEncryptedPassword',
299311
'encryptedSecurityCode' => 'getEncryptedSecurityCode',
300312
'expiryMonth' => 'getExpiryMonth',
301313
'expiryYear' => 'getExpiryYear',
@@ -408,6 +420,7 @@ public function getTypeAllowableValues()
408420
*/
409421
public function __construct(?array $data = null)
410422
{
423+
$this->setIfExists('billingSequenceNumber', $data ?? [], null);
411424
$this->setIfExists('brand', $data ?? [], null);
412425
$this->setIfExists('checkoutAttemptId', $data ?? [], null);
413426
$this->setIfExists('cupsecureplusSmscode', $data ?? [], null);
@@ -416,6 +429,7 @@ public function __construct(?array $data = null)
416429
$this->setIfExists('encryptedCardNumber', $data ?? [], null);
417430
$this->setIfExists('encryptedExpiryMonth', $data ?? [], null);
418431
$this->setIfExists('encryptedExpiryYear', $data ?? [], null);
432+
$this->setIfExists('encryptedPassword', $data ?? [], null);
419433
$this->setIfExists('encryptedSecurityCode', $data ?? [], null);
420434
$this->setIfExists('expiryMonth', $data ?? [], null);
421435
$this->setIfExists('expiryYear', $data ?? [], null);
@@ -495,6 +509,30 @@ public function valid()
495509
}
496510

497511

512+
/**
513+
* Gets billingSequenceNumber
514+
*
515+
* @return string|null
516+
*/
517+
public function getBillingSequenceNumber()
518+
{
519+
return $this->container['billingSequenceNumber'];
520+
}
521+
522+
/**
523+
* Sets billingSequenceNumber
524+
*
525+
* @param string|null $billingSequenceNumber The sequence number for the debit. For example, send **2** if this is the second debit for the subscription. The sequence number is included in the notification sent to the shopper.
526+
*
527+
* @return self
528+
*/
529+
public function setBillingSequenceNumber($billingSequenceNumber)
530+
{
531+
$this->container['billingSequenceNumber'] = $billingSequenceNumber;
532+
533+
return $this;
534+
}
535+
498536
/**
499537
* Gets brand
500538
*
@@ -689,6 +727,30 @@ public function setEncryptedExpiryYear($encryptedExpiryYear)
689727
return $this;
690728
}
691729

730+
/**
731+
* Gets encryptedPassword
732+
*
733+
* @return string|null
734+
*/
735+
public function getEncryptedPassword()
736+
{
737+
return $this->container['encryptedPassword'];
738+
}
739+
740+
/**
741+
* Sets encryptedPassword
742+
*
743+
* @param string|null $encryptedPassword This field contains an encrypted, one-time password or an authentication code provided by the cardholder.
744+
*
745+
* @return self
746+
*/
747+
public function setEncryptedPassword($encryptedPassword)
748+
{
749+
$this->container['encryptedPassword'] = $encryptedPassword;
750+
751+
return $this;
752+
}
753+
692754
/**
693755
* Gets encryptedSecurityCode
694756
*

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

0 commit comments

Comments
 (0)