Skip to content

Commit dea0da2

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

29 files changed

+235
-57
lines changed

src/Adyen/Model/AcsWebhooks/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/BalanceWebhooks/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/ConfigurationWebhooks/BulkAddress.php

Lines changed: 93 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@ class BulkAddress implements ModelInterface, ArrayAccess, \JsonSerializable
4646
'country' => 'string',
4747
'email' => 'string',
4848
'houseNumberOrName' => 'string',
49+
'line1' => 'string',
50+
'line2' => 'string',
51+
'line3' => 'string',
4952
'mobile' => 'string',
5053
'postalCode' => 'string',
5154
'stateOrProvince' => 'string',
@@ -65,6 +68,9 @@ class BulkAddress implements ModelInterface, ArrayAccess, \JsonSerializable
6568
'country' => null,
6669
'email' => null,
6770
'houseNumberOrName' => null,
71+
'line1' => null,
72+
'line2' => null,
73+
'line3' => null,
6874
'mobile' => null,
6975
'postalCode' => null,
7076
'stateOrProvince' => null,
@@ -82,6 +88,9 @@ class BulkAddress implements ModelInterface, ArrayAccess, \JsonSerializable
8288
'country' => false,
8389
'email' => false,
8490
'houseNumberOrName' => false,
91+
'line1' => false,
92+
'line2' => false,
93+
'line3' => false,
8594
'mobile' => false,
8695
'postalCode' => false,
8796
'stateOrProvince' => false,
@@ -179,6 +188,9 @@ public function isNullableSetToNull(string $property): bool
179188
'country' => 'country',
180189
'email' => 'email',
181190
'houseNumberOrName' => 'houseNumberOrName',
191+
'line1' => 'line1',
192+
'line2' => 'line2',
193+
'line3' => 'line3',
182194
'mobile' => 'mobile',
183195
'postalCode' => 'postalCode',
184196
'stateOrProvince' => 'stateOrProvince',
@@ -196,6 +208,9 @@ public function isNullableSetToNull(string $property): bool
196208
'country' => 'setCountry',
197209
'email' => 'setEmail',
198210
'houseNumberOrName' => 'setHouseNumberOrName',
211+
'line1' => 'setLine1',
212+
'line2' => 'setLine2',
213+
'line3' => 'setLine3',
199214
'mobile' => 'setMobile',
200215
'postalCode' => 'setPostalCode',
201216
'stateOrProvince' => 'setStateOrProvince',
@@ -213,6 +228,9 @@ public function isNullableSetToNull(string $property): bool
213228
'country' => 'getCountry',
214229
'email' => 'getEmail',
215230
'houseNumberOrName' => 'getHouseNumberOrName',
231+
'line1' => 'getLine1',
232+
'line2' => 'getLine2',
233+
'line3' => 'getLine3',
216234
'mobile' => 'getMobile',
217235
'postalCode' => 'getPostalCode',
218236
'stateOrProvince' => 'getStateOrProvince',
@@ -281,6 +299,9 @@ public function __construct(?array $data = null)
281299
$this->setIfExists('country', $data ?? [], null);
282300
$this->setIfExists('email', $data ?? [], null);
283301
$this->setIfExists('houseNumberOrName', $data ?? [], null);
302+
$this->setIfExists('line1', $data ?? [], null);
303+
$this->setIfExists('line2', $data ?? [], null);
304+
$this->setIfExists('line3', $data ?? [], null);
284305
$this->setIfExists('mobile', $data ?? [], null);
285306
$this->setIfExists('postalCode', $data ?? [], null);
286307
$this->setIfExists('stateOrProvince', $data ?? [], null);
@@ -452,6 +473,78 @@ public function setHouseNumberOrName($houseNumberOrName)
452473
return $this;
453474
}
454475

476+
/**
477+
* Gets line1
478+
*
479+
* @return string|null
480+
*/
481+
public function getLine1()
482+
{
483+
return $this->container['line1'];
484+
}
485+
486+
/**
487+
* Sets line1
488+
*
489+
* @param string|null $line1 The name of the street and the number of the building. For example: **Simon Carmiggeltstraat 6-50**.
490+
*
491+
* @return self
492+
*/
493+
public function setLine1($line1)
494+
{
495+
$this->container['line1'] = $line1;
496+
497+
return $this;
498+
}
499+
500+
/**
501+
* Gets line2
502+
*
503+
* @return string|null
504+
*/
505+
public function getLine2()
506+
{
507+
return $this->container['line2'];
508+
}
509+
510+
/**
511+
* Sets line2
512+
*
513+
* @param string|null $line2 Additional information about the delivery address. For example, an apartment number.
514+
*
515+
* @return self
516+
*/
517+
public function setLine2($line2)
518+
{
519+
$this->container['line2'] = $line2;
520+
521+
return $this;
522+
}
523+
524+
/**
525+
* Gets line3
526+
*
527+
* @return string|null
528+
*/
529+
public function getLine3()
530+
{
531+
return $this->container['line3'];
532+
}
533+
534+
/**
535+
* Sets line3
536+
*
537+
* @param string|null $line3 Additional information about the delivery address.
538+
*
539+
* @return self
540+
*/
541+
public function setLine3($line3)
542+
{
543+
$this->container['line3'] = $line3;
544+
545+
return $this;
546+
}
547+
455548
/**
456549
* Gets mobile
457550
*

src/Adyen/Model/ConfigurationWebhooks/CapabilitySettings.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ public function getAmountPerIndustry()
355355
/**
356356
* Sets amountPerIndustry
357357
*
358-
* @param array<string,\Adyen\Model\ConfigurationWebhooks\Amount>|null $amountPerIndustry
358+
* @param array<string,\Adyen\Model\ConfigurationWebhooks\Amount>|null $amountPerIndustry
359359
*
360360
* @return self
361361
*/
@@ -379,7 +379,7 @@ public function getAuthorizedCardUsers()
379379
/**
380380
* Sets authorizedCardUsers
381381
*
382-
* @param bool|null $authorizedCardUsers
382+
* @param bool|null $authorizedCardUsers
383383
*
384384
* @return self
385385
*/
@@ -403,7 +403,7 @@ public function getFundingSource()
403403
/**
404404
* Sets fundingSource
405405
*
406-
* @param string[]|null $fundingSource
406+
* @param string[]|null $fundingSource
407407
*
408408
* @return self
409409
*/
@@ -436,7 +436,7 @@ public function getInterval()
436436
/**
437437
* Sets interval
438438
*
439-
* @param string|null $interval
439+
* @param string|null $interval
440440
*
441441
* @return self
442442
*/

src/Adyen/Model/ConfigurationWebhooks/Device.php

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ class Device implements ModelInterface, ArrayAccess, \JsonSerializable
4141
* @var string[]
4242
*/
4343
protected static $openAPITypes = [
44+
'deviceId' => 'string',
4445
'formFactor' => 'string',
4546
'osName' => 'string'
4647
];
@@ -53,6 +54,7 @@ class Device implements ModelInterface, ArrayAccess, \JsonSerializable
5354
* @psalm-var array<string, string|null>
5455
*/
5556
protected static $openAPIFormats = [
57+
'deviceId' => null,
5658
'formFactor' => null,
5759
'osName' => null
5860
];
@@ -63,6 +65,7 @@ class Device implements ModelInterface, ArrayAccess, \JsonSerializable
6365
* @var boolean[]
6466
*/
6567
protected static $openAPINullables = [
68+
'deviceId' => false,
6669
'formFactor' => false,
6770
'osName' => false
6871
];
@@ -153,6 +156,7 @@ public function isNullableSetToNull(string $property): bool
153156
* @var string[]
154157
*/
155158
protected static $attributeMap = [
159+
'deviceId' => 'deviceId',
156160
'formFactor' => 'formFactor',
157161
'osName' => 'osName'
158162
];
@@ -163,6 +167,7 @@ public function isNullableSetToNull(string $property): bool
163167
* @var string[]
164168
*/
165169
protected static $setters = [
170+
'deviceId' => 'setDeviceId',
166171
'formFactor' => 'setFormFactor',
167172
'osName' => 'setOsName'
168173
];
@@ -173,6 +178,7 @@ public function isNullableSetToNull(string $property): bool
173178
* @var string[]
174179
*/
175180
protected static $getters = [
181+
'deviceId' => 'getDeviceId',
176182
'formFactor' => 'getFormFactor',
177183
'osName' => 'getOsName'
178184
];
@@ -234,6 +240,7 @@ public function getModelName()
234240
*/
235241
public function __construct(?array $data = null)
236242
{
243+
$this->setIfExists('deviceId', $data ?? [], null);
237244
$this->setIfExists('formFactor', $data ?? [], null);
238245
$this->setIfExists('osName', $data ?? [], null);
239246
}
@@ -280,6 +287,30 @@ public function valid()
280287
}
281288

282289

290+
/**
291+
* Gets deviceId
292+
*
293+
* @return string|null
294+
*/
295+
public function getDeviceId()
296+
{
297+
return $this->container['deviceId'];
298+
}
299+
300+
/**
301+
* Sets deviceId
302+
*
303+
* @param string|null $deviceId The unique identifier of the device used for provisioning the network token.
304+
*
305+
* @return self
306+
*/
307+
public function setDeviceId($deviceId)
308+
{
309+
$this->container['deviceId'] = $deviceId;
310+
311+
return $this;
312+
}
313+
283314
/**
284315
* Gets formFactor
285316
*

src/Adyen/Model/ConfigurationWebhooks/NetworkTokenNotificationDataV2.php

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ class NetworkTokenNotificationDataV2 implements ModelInterface, ArrayAccess, \Js
4747
'decision' => 'string',
4848
'id' => 'string',
4949
'paymentInstrumentId' => 'string',
50+
'schemeRiskScore' => 'string',
5051
'status' => 'string',
5152
'tokenLastFour' => 'string',
5253
'tokenRequestor' => '\Adyen\Model\ConfigurationWebhooks\NetworkTokenRequestor',
@@ -70,6 +71,7 @@ class NetworkTokenNotificationDataV2 implements ModelInterface, ArrayAccess, \Js
7071
'decision' => null,
7172
'id' => null,
7273
'paymentInstrumentId' => null,
74+
'schemeRiskScore' => null,
7375
'status' => null,
7476
'tokenLastFour' => null,
7577
'tokenRequestor' => null,
@@ -91,6 +93,7 @@ class NetworkTokenNotificationDataV2 implements ModelInterface, ArrayAccess, \Js
9193
'decision' => false,
9294
'id' => false,
9395
'paymentInstrumentId' => false,
96+
'schemeRiskScore' => false,
9497
'status' => false,
9598
'tokenLastFour' => false,
9699
'tokenRequestor' => false,
@@ -192,6 +195,7 @@ public function isNullableSetToNull(string $property): bool
192195
'decision' => 'decision',
193196
'id' => 'id',
194197
'paymentInstrumentId' => 'paymentInstrumentId',
198+
'schemeRiskScore' => 'schemeRiskScore',
195199
'status' => 'status',
196200
'tokenLastFour' => 'tokenLastFour',
197201
'tokenRequestor' => 'tokenRequestor',
@@ -213,6 +217,7 @@ public function isNullableSetToNull(string $property): bool
213217
'decision' => 'setDecision',
214218
'id' => 'setId',
215219
'paymentInstrumentId' => 'setPaymentInstrumentId',
220+
'schemeRiskScore' => 'setSchemeRiskScore',
216221
'status' => 'setStatus',
217222
'tokenLastFour' => 'setTokenLastFour',
218223
'tokenRequestor' => 'setTokenRequestor',
@@ -234,6 +239,7 @@ public function isNullableSetToNull(string $property): bool
234239
'decision' => 'getDecision',
235240
'id' => 'getId',
236241
'paymentInstrumentId' => 'getPaymentInstrumentId',
242+
'schemeRiskScore' => 'getSchemeRiskScore',
237243
'status' => 'getStatus',
238244
'tokenLastFour' => 'getTokenLastFour',
239245
'tokenRequestor' => 'getTokenRequestor',
@@ -306,6 +312,7 @@ public function __construct(?array $data = null)
306312
$this->setIfExists('decision', $data ?? [], null);
307313
$this->setIfExists('id', $data ?? [], null);
308314
$this->setIfExists('paymentInstrumentId', $data ?? [], null);
315+
$this->setIfExists('schemeRiskScore', $data ?? [], null);
309316
$this->setIfExists('status', $data ?? [], null);
310317
$this->setIfExists('tokenLastFour', $data ?? [], null);
311318
$this->setIfExists('tokenRequestor', $data ?? [], null);
@@ -501,6 +508,30 @@ public function setPaymentInstrumentId($paymentInstrumentId)
501508
return $this;
502509
}
503510

511+
/**
512+
* Gets schemeRiskScore
513+
*
514+
* @return string|null
515+
*/
516+
public function getSchemeRiskScore()
517+
{
518+
return $this->container['schemeRiskScore'];
519+
}
520+
521+
/**
522+
* Sets schemeRiskScore
523+
*
524+
* @param string|null $schemeRiskScore The confidence score of scheme, indicating the degree of risk associated with a token. A high score indicates a high level of risk. A low score indicates a low level of risk. Possible values for visa : **00** to **99**, a value of 00 signifies no score was provided by visa
525+
*
526+
* @return self
527+
*/
528+
public function setSchemeRiskScore($schemeRiskScore)
529+
{
530+
$this->container['schemeRiskScore'] = $schemeRiskScore;
531+
532+
return $this;
533+
}
534+
504535
/**
505536
* Gets status
506537
*

0 commit comments

Comments
 (0)