Skip to content

Commit 3138401

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

File tree

114 files changed

+8272
-124
lines changed

Some content is hidden

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

114 files changed

+8272
-124
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/AchDetails.php

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ class AchDetails implements ModelInterface, ArrayAccess, \JsonSerializable
5050
'encryptedBankLocationId' => 'string',
5151
'ownerName' => 'string',
5252
'recurringDetailReference' => 'string',
53+
'sdkData' => 'string',
5354
'storedPaymentMethodId' => 'string',
5455
'transferInstrumentId' => 'string',
5556
'type' => 'string'
@@ -72,6 +73,7 @@ class AchDetails implements ModelInterface, ArrayAccess, \JsonSerializable
7273
'encryptedBankLocationId' => null,
7374
'ownerName' => null,
7475
'recurringDetailReference' => null,
76+
'sdkData' => null,
7577
'storedPaymentMethodId' => null,
7678
'transferInstrumentId' => null,
7779
'type' => null
@@ -92,6 +94,7 @@ class AchDetails implements ModelInterface, ArrayAccess, \JsonSerializable
9294
'encryptedBankLocationId' => false,
9395
'ownerName' => false,
9496
'recurringDetailReference' => false,
97+
'sdkData' => false,
9598
'storedPaymentMethodId' => false,
9699
'transferInstrumentId' => false,
97100
'type' => false
@@ -192,6 +195,7 @@ public function isNullableSetToNull(string $property): bool
192195
'encryptedBankLocationId' => 'encryptedBankLocationId',
193196
'ownerName' => 'ownerName',
194197
'recurringDetailReference' => 'recurringDetailReference',
198+
'sdkData' => 'sdkData',
195199
'storedPaymentMethodId' => 'storedPaymentMethodId',
196200
'transferInstrumentId' => 'transferInstrumentId',
197201
'type' => 'type'
@@ -212,6 +216,7 @@ public function isNullableSetToNull(string $property): bool
212216
'encryptedBankLocationId' => 'setEncryptedBankLocationId',
213217
'ownerName' => 'setOwnerName',
214218
'recurringDetailReference' => 'setRecurringDetailReference',
219+
'sdkData' => 'setSdkData',
215220
'storedPaymentMethodId' => 'setStoredPaymentMethodId',
216221
'transferInstrumentId' => 'setTransferInstrumentId',
217222
'type' => 'setType'
@@ -232,6 +237,7 @@ public function isNullableSetToNull(string $property): bool
232237
'encryptedBankLocationId' => 'getEncryptedBankLocationId',
233238
'ownerName' => 'getOwnerName',
234239
'recurringDetailReference' => 'getRecurringDetailReference',
240+
'sdkData' => 'getSdkData',
235241
'storedPaymentMethodId' => 'getStoredPaymentMethodId',
236242
'transferInstrumentId' => 'getTransferInstrumentId',
237243
'type' => 'getType'
@@ -355,6 +361,7 @@ public function __construct(?array $data = null)
355361
$this->setIfExists('encryptedBankLocationId', $data ?? [], null);
356362
$this->setIfExists('ownerName', $data ?? [], null);
357363
$this->setIfExists('recurringDetailReference', $data ?? [], null);
364+
$this->setIfExists('sdkData', $data ?? [], null);
358365
$this->setIfExists('storedPaymentMethodId', $data ?? [], null);
359366
$this->setIfExists('transferInstrumentId', $data ?? [], null);
360367
$this->setIfExists('type', $data ?? [], null);
@@ -667,6 +674,30 @@ public function setRecurringDetailReference($recurringDetailReference)
667674
return $this;
668675
}
669676

677+
/**
678+
* Gets sdkData
679+
*
680+
* @return string|null
681+
*/
682+
public function getSdkData()
683+
{
684+
return $this->container['sdkData'];
685+
}
686+
687+
/**
688+
* Sets sdkData
689+
*
690+
* @param string|null $sdkData Base64-encoded JSON object containing SDK related parameters required by the SDK
691+
*
692+
* @return self
693+
*/
694+
public function setSdkData($sdkData)
695+
{
696+
$this->container['sdkData'] = $sdkData;
697+
698+
return $this;
699+
}
700+
670701
/**
671702
* Gets storedPaymentMethodId
672703
*

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

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ class AffirmDetails implements ModelInterface, ArrayAccess, \JsonSerializable
4242
*/
4343
protected static $openAPITypes = [
4444
'checkoutAttemptId' => 'string',
45+
'sdkData' => 'string',
4546
'type' => 'string'
4647
];
4748

@@ -54,6 +55,7 @@ class AffirmDetails implements ModelInterface, ArrayAccess, \JsonSerializable
5455
*/
5556
protected static $openAPIFormats = [
5657
'checkoutAttemptId' => null,
58+
'sdkData' => null,
5759
'type' => null
5860
];
5961

@@ -64,6 +66,7 @@ class AffirmDetails implements ModelInterface, ArrayAccess, \JsonSerializable
6466
*/
6567
protected static $openAPINullables = [
6668
'checkoutAttemptId' => false,
69+
'sdkData' => false,
6770
'type' => false
6871
];
6972

@@ -154,6 +157,7 @@ public function isNullableSetToNull(string $property): bool
154157
*/
155158
protected static $attributeMap = [
156159
'checkoutAttemptId' => 'checkoutAttemptId',
160+
'sdkData' => 'sdkData',
157161
'type' => 'type'
158162
];
159163

@@ -164,6 +168,7 @@ public function isNullableSetToNull(string $property): bool
164168
*/
165169
protected static $setters = [
166170
'checkoutAttemptId' => 'setCheckoutAttemptId',
171+
'sdkData' => 'setSdkData',
167172
'type' => 'setType'
168173
];
169174

@@ -174,6 +179,7 @@ public function isNullableSetToNull(string $property): bool
174179
*/
175180
protected static $getters = [
176181
'checkoutAttemptId' => 'getCheckoutAttemptId',
182+
'sdkData' => 'getSdkData',
177183
'type' => 'getType'
178184
];
179185

@@ -247,6 +253,7 @@ public function getTypeAllowableValues()
247253
public function __construct(?array $data = null)
248254
{
249255
$this->setIfExists('checkoutAttemptId', $data ?? [], null);
256+
$this->setIfExists('sdkData', $data ?? [], null);
250257
$this->setIfExists('type', $data ?? [], null);
251258
}
252259

@@ -325,6 +332,30 @@ public function setCheckoutAttemptId($checkoutAttemptId)
325332
return $this;
326333
}
327334

335+
/**
336+
* Gets sdkData
337+
*
338+
* @return string|null
339+
*/
340+
public function getSdkData()
341+
{
342+
return $this->container['sdkData'];
343+
}
344+
345+
/**
346+
* Sets sdkData
347+
*
348+
* @param string|null $sdkData Base64-encoded JSON object containing SDK related parameters required by the SDK
349+
*
350+
* @return self
351+
*/
352+
public function setSdkData($sdkData)
353+
{
354+
$this->container['sdkData'] = $sdkData;
355+
356+
return $this;
357+
}
358+
328359
/**
329360
* Gets type
330361
*

src/Adyen/Model/Checkout/AfterpayDetails.php

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ class AfterpayDetails implements ModelInterface, ArrayAccess, \JsonSerializable
4646
'deliveryAddress' => 'string',
4747
'personalDetails' => 'string',
4848
'recurringDetailReference' => 'string',
49+
'sdkData' => 'string',
4950
'storedPaymentMethodId' => 'string',
5051
'type' => 'string'
5152
];
@@ -63,6 +64,7 @@ class AfterpayDetails implements ModelInterface, ArrayAccess, \JsonSerializable
6364
'deliveryAddress' => null,
6465
'personalDetails' => null,
6566
'recurringDetailReference' => null,
67+
'sdkData' => null,
6668
'storedPaymentMethodId' => null,
6769
'type' => null
6870
];
@@ -78,6 +80,7 @@ class AfterpayDetails implements ModelInterface, ArrayAccess, \JsonSerializable
7880
'deliveryAddress' => false,
7981
'personalDetails' => false,
8082
'recurringDetailReference' => false,
83+
'sdkData' => false,
8184
'storedPaymentMethodId' => false,
8285
'type' => false
8386
];
@@ -173,6 +176,7 @@ public function isNullableSetToNull(string $property): bool
173176
'deliveryAddress' => 'deliveryAddress',
174177
'personalDetails' => 'personalDetails',
175178
'recurringDetailReference' => 'recurringDetailReference',
179+
'sdkData' => 'sdkData',
176180
'storedPaymentMethodId' => 'storedPaymentMethodId',
177181
'type' => 'type'
178182
];
@@ -188,6 +192,7 @@ public function isNullableSetToNull(string $property): bool
188192
'deliveryAddress' => 'setDeliveryAddress',
189193
'personalDetails' => 'setPersonalDetails',
190194
'recurringDetailReference' => 'setRecurringDetailReference',
195+
'sdkData' => 'setSdkData',
191196
'storedPaymentMethodId' => 'setStoredPaymentMethodId',
192197
'type' => 'setType'
193198
];
@@ -203,6 +208,7 @@ public function isNullableSetToNull(string $property): bool
203208
'deliveryAddress' => 'getDeliveryAddress',
204209
'personalDetails' => 'getPersonalDetails',
205210
'recurringDetailReference' => 'getRecurringDetailReference',
211+
'sdkData' => 'getSdkData',
206212
'storedPaymentMethodId' => 'getStoredPaymentMethodId',
207213
'type' => 'getType'
208214
];
@@ -287,6 +293,7 @@ public function __construct(?array $data = null)
287293
$this->setIfExists('deliveryAddress', $data ?? [], null);
288294
$this->setIfExists('personalDetails', $data ?? [], null);
289295
$this->setIfExists('recurringDetailReference', $data ?? [], null);
296+
$this->setIfExists('sdkData', $data ?? [], null);
290297
$this->setIfExists('storedPaymentMethodId', $data ?? [], null);
291298
$this->setIfExists('type', $data ?? [], null);
292299
}
@@ -467,6 +474,30 @@ public function setRecurringDetailReference($recurringDetailReference)
467474
return $this;
468475
}
469476

477+
/**
478+
* Gets sdkData
479+
*
480+
* @return string|null
481+
*/
482+
public function getSdkData()
483+
{
484+
return $this->container['sdkData'];
485+
}
486+
487+
/**
488+
* Sets sdkData
489+
*
490+
* @param string|null $sdkData Base64-encoded JSON object containing SDK related parameters required by the SDK
491+
*
492+
* @return self
493+
*/
494+
public function setSdkData($sdkData)
495+
{
496+
$this->container['sdkData'] = $sdkData;
497+
498+
return $this;
499+
}
500+
470501
/**
471502
* Gets storedPaymentMethodId
472503
*

0 commit comments

Comments
 (0)