Skip to content

Commit ae60720

Browse files
AdyenAutomationBotAdyenAutomationBot
and
AdyenAutomationBot
authored
Update all services (#627)
* [reformat][adyen-sdk-automation] automated change * style(fmt): code formatted --------- Co-authored-by: AdyenAutomationBot <Adyen Automation [email protected]>
1 parent 524c9cb commit ae60720

File tree

981 files changed

+28061
-256
lines changed

Some content is hidden

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

981 files changed

+28061
-256
lines changed

src/Adyen/Model/AcsWebhooks/Amount.php

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -409,6 +409,32 @@ public function jsonSerialize()
409409
return ObjectSerializer::sanitizeForSerialization($this);
410410
}
411411

412+
public function toArray(): array
413+
{
414+
$array = [];
415+
foreach (self::$openAPITypes as $propertyName => $propertyType) {
416+
$propertyValue = $this[$propertyName];
417+
if ($propertyValue !== null) {
418+
// Check if the property value is an object and has a toArray() method
419+
if (is_object($propertyValue) && method_exists($propertyValue, 'toArray')) {
420+
$array[$propertyName] = $propertyValue->toArray();
421+
// Check if it's type datetime
422+
} elseif ($propertyValue instanceof \DateTime) {
423+
$array[$propertyName] = $propertyValue->format(DATE_ATOM);
424+
// If it's an array type we should check whether it contains objects and if so call toArray method
425+
} elseif (is_array($propertyValue)) {
426+
$array[$propertyName] = array_map(function ($item) {
427+
return $item instanceof ModelInterface ? $item->toArray() : $item;
428+
}, $propertyValue);
429+
} else {
430+
// Otherwise, directly assign the property value to the array
431+
$array[$propertyName] = $propertyValue;
432+
}
433+
}
434+
}
435+
return $array;
436+
}
437+
412438
/**
413439
* Gets the string presentation of the object
414440
*

src/Adyen/Model/AcsWebhooks/AuthenticationInfo.php

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1207,6 +1207,32 @@ public function jsonSerialize()
12071207
return ObjectSerializer::sanitizeForSerialization($this);
12081208
}
12091209

1210+
public function toArray(): array
1211+
{
1212+
$array = [];
1213+
foreach (self::$openAPITypes as $propertyName => $propertyType) {
1214+
$propertyValue = $this[$propertyName];
1215+
if ($propertyValue !== null) {
1216+
// Check if the property value is an object and has a toArray() method
1217+
if (is_object($propertyValue) && method_exists($propertyValue, 'toArray')) {
1218+
$array[$propertyName] = $propertyValue->toArray();
1219+
// Check if it's type datetime
1220+
} elseif ($propertyValue instanceof \DateTime) {
1221+
$array[$propertyName] = $propertyValue->format(DATE_ATOM);
1222+
// If it's an array type we should check whether it contains objects and if so call toArray method
1223+
} elseif (is_array($propertyValue)) {
1224+
$array[$propertyName] = array_map(function ($item) {
1225+
return $item instanceof ModelInterface ? $item->toArray() : $item;
1226+
}, $propertyValue);
1227+
} else {
1228+
// Otherwise, directly assign the property value to the array
1229+
$array[$propertyName] = $propertyValue;
1230+
}
1231+
}
1232+
}
1233+
return $array;
1234+
}
1235+
12101236
/**
12111237
* Gets the string presentation of the object
12121238
*

src/Adyen/Model/AcsWebhooks/AuthenticationNotificationData.php

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -589,6 +589,32 @@ public function jsonSerialize()
589589
return ObjectSerializer::sanitizeForSerialization($this);
590590
}
591591

592+
public function toArray(): array
593+
{
594+
$array = [];
595+
foreach (self::$openAPITypes as $propertyName => $propertyType) {
596+
$propertyValue = $this[$propertyName];
597+
if ($propertyValue !== null) {
598+
// Check if the property value is an object and has a toArray() method
599+
if (is_object($propertyValue) && method_exists($propertyValue, 'toArray')) {
600+
$array[$propertyName] = $propertyValue->toArray();
601+
// Check if it's type datetime
602+
} elseif ($propertyValue instanceof \DateTime) {
603+
$array[$propertyName] = $propertyValue->format(DATE_ATOM);
604+
// If it's an array type we should check whether it contains objects and if so call toArray method
605+
} elseif (is_array($propertyValue)) {
606+
$array[$propertyName] = array_map(function ($item) {
607+
return $item instanceof ModelInterface ? $item->toArray() : $item;
608+
}, $propertyValue);
609+
} else {
610+
// Otherwise, directly assign the property value to the array
611+
$array[$propertyName] = $propertyValue;
612+
}
613+
}
614+
}
615+
return $array;
616+
}
617+
592618
/**
593619
* Gets the string presentation of the object
594620
*

src/Adyen/Model/AcsWebhooks/AuthenticationNotificationRequest.php

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -477,6 +477,32 @@ public function jsonSerialize()
477477
return ObjectSerializer::sanitizeForSerialization($this);
478478
}
479479

480+
public function toArray(): array
481+
{
482+
$array = [];
483+
foreach (self::$openAPITypes as $propertyName => $propertyType) {
484+
$propertyValue = $this[$propertyName];
485+
if ($propertyValue !== null) {
486+
// Check if the property value is an object and has a toArray() method
487+
if (is_object($propertyValue) && method_exists($propertyValue, 'toArray')) {
488+
$array[$propertyName] = $propertyValue->toArray();
489+
// Check if it's type datetime
490+
} elseif ($propertyValue instanceof \DateTime) {
491+
$array[$propertyName] = $propertyValue->format(DATE_ATOM);
492+
// If it's an array type we should check whether it contains objects and if so call toArray method
493+
} elseif (is_array($propertyValue)) {
494+
$array[$propertyName] = array_map(function ($item) {
495+
return $item instanceof ModelInterface ? $item->toArray() : $item;
496+
}, $propertyValue);
497+
} else {
498+
// Otherwise, directly assign the property value to the array
499+
$array[$propertyName] = $propertyValue;
500+
}
501+
}
502+
}
503+
return $array;
504+
}
505+
480506
/**
481507
* Gets the string presentation of the object
482508
*

src/Adyen/Model/AcsWebhooks/BalancePlatformNotificationResponse.php

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -369,6 +369,32 @@ public function jsonSerialize()
369369
return ObjectSerializer::sanitizeForSerialization($this);
370370
}
371371

372+
public function toArray(): array
373+
{
374+
$array = [];
375+
foreach (self::$openAPITypes as $propertyName => $propertyType) {
376+
$propertyValue = $this[$propertyName];
377+
if ($propertyValue !== null) {
378+
// Check if the property value is an object and has a toArray() method
379+
if (is_object($propertyValue) && method_exists($propertyValue, 'toArray')) {
380+
$array[$propertyName] = $propertyValue->toArray();
381+
// Check if it's type datetime
382+
} elseif ($propertyValue instanceof \DateTime) {
383+
$array[$propertyName] = $propertyValue->format(DATE_ATOM);
384+
// If it's an array type we should check whether it contains objects and if so call toArray method
385+
} elseif (is_array($propertyValue)) {
386+
$array[$propertyName] = array_map(function ($item) {
387+
return $item instanceof ModelInterface ? $item->toArray() : $item;
388+
}, $propertyValue);
389+
} else {
390+
// Otherwise, directly assign the property value to the array
391+
$array[$propertyName] = $propertyValue;
392+
}
393+
}
394+
}
395+
return $array;
396+
}
397+
372398
/**
373399
* Gets the string presentation of the object
374400
*

src/Adyen/Model/AcsWebhooks/ChallengeInfo.php

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -617,6 +617,32 @@ public function jsonSerialize()
617617
return ObjectSerializer::sanitizeForSerialization($this);
618618
}
619619

620+
public function toArray(): array
621+
{
622+
$array = [];
623+
foreach (self::$openAPITypes as $propertyName => $propertyType) {
624+
$propertyValue = $this[$propertyName];
625+
if ($propertyValue !== null) {
626+
// Check if the property value is an object and has a toArray() method
627+
if (is_object($propertyValue) && method_exists($propertyValue, 'toArray')) {
628+
$array[$propertyName] = $propertyValue->toArray();
629+
// Check if it's type datetime
630+
} elseif ($propertyValue instanceof \DateTime) {
631+
$array[$propertyName] = $propertyValue->format(DATE_ATOM);
632+
// If it's an array type we should check whether it contains objects and if so call toArray method
633+
} elseif (is_array($propertyValue)) {
634+
$array[$propertyName] = array_map(function ($item) {
635+
return $item instanceof ModelInterface ? $item->toArray() : $item;
636+
}, $propertyValue);
637+
} else {
638+
// Otherwise, directly assign the property value to the array
639+
$array[$propertyName] = $propertyValue;
640+
}
641+
}
642+
}
643+
return $array;
644+
}
645+
620646
/**
621647
* Gets the string presentation of the object
622648
*

src/Adyen/Model/AcsWebhooks/PurchaseInfo.php

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -446,6 +446,32 @@ public function jsonSerialize()
446446
return ObjectSerializer::sanitizeForSerialization($this);
447447
}
448448

449+
public function toArray(): array
450+
{
451+
$array = [];
452+
foreach (self::$openAPITypes as $propertyName => $propertyType) {
453+
$propertyValue = $this[$propertyName];
454+
if ($propertyValue !== null) {
455+
// Check if the property value is an object and has a toArray() method
456+
if (is_object($propertyValue) && method_exists($propertyValue, 'toArray')) {
457+
$array[$propertyName] = $propertyValue->toArray();
458+
// Check if it's type datetime
459+
} elseif ($propertyValue instanceof \DateTime) {
460+
$array[$propertyName] = $propertyValue->format(DATE_ATOM);
461+
// If it's an array type we should check whether it contains objects and if so call toArray method
462+
} elseif (is_array($propertyValue)) {
463+
$array[$propertyName] = array_map(function ($item) {
464+
return $item instanceof ModelInterface ? $item->toArray() : $item;
465+
}, $propertyValue);
466+
} else {
467+
// Otherwise, directly assign the property value to the array
468+
$array[$propertyName] = $propertyValue;
469+
}
470+
}
471+
}
472+
return $array;
473+
}
474+
449475
/**
450476
* Gets the string presentation of the object
451477
*

src/Adyen/Model/AcsWebhooks/Resource.php

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -437,6 +437,32 @@ public function jsonSerialize()
437437
return ObjectSerializer::sanitizeForSerialization($this);
438438
}
439439

440+
public function toArray(): array
441+
{
442+
$array = [];
443+
foreach (self::$openAPITypes as $propertyName => $propertyType) {
444+
$propertyValue = $this[$propertyName];
445+
if ($propertyValue !== null) {
446+
// Check if the property value is an object and has a toArray() method
447+
if (is_object($propertyValue) && method_exists($propertyValue, 'toArray')) {
448+
$array[$propertyName] = $propertyValue->toArray();
449+
// Check if it's type datetime
450+
} elseif ($propertyValue instanceof \DateTime) {
451+
$array[$propertyName] = $propertyValue->format(DATE_ATOM);
452+
// If it's an array type we should check whether it contains objects and if so call toArray method
453+
} elseif (is_array($propertyValue)) {
454+
$array[$propertyName] = array_map(function ($item) {
455+
return $item instanceof ModelInterface ? $item->toArray() : $item;
456+
}, $propertyValue);
457+
} else {
458+
// Otherwise, directly assign the property value to the array
459+
$array[$propertyName] = $propertyValue;
460+
}
461+
}
462+
}
463+
return $array;
464+
}
465+
440466
/**
441467
* Gets the string presentation of the object
442468
*

src/Adyen/Model/BalanceControl/Amount.php

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -409,6 +409,32 @@ public function jsonSerialize()
409409
return ObjectSerializer::sanitizeForSerialization($this);
410410
}
411411

412+
public function toArray(): array
413+
{
414+
$array = [];
415+
foreach (self::$openAPITypes as $propertyName => $propertyType) {
416+
$propertyValue = $this[$propertyName];
417+
if ($propertyValue !== null) {
418+
// Check if the property value is an object and has a toArray() method
419+
if (is_object($propertyValue) && method_exists($propertyValue, 'toArray')) {
420+
$array[$propertyName] = $propertyValue->toArray();
421+
// Check if it's type datetime
422+
} elseif ($propertyValue instanceof \DateTime) {
423+
$array[$propertyName] = $propertyValue->format(DATE_ATOM);
424+
// If it's an array type we should check whether it contains objects and if so call toArray method
425+
} elseif (is_array($propertyValue)) {
426+
$array[$propertyName] = array_map(function ($item) {
427+
return $item instanceof ModelInterface ? $item->toArray() : $item;
428+
}, $propertyValue);
429+
} else {
430+
// Otherwise, directly assign the property value to the array
431+
$array[$propertyName] = $propertyValue;
432+
}
433+
}
434+
}
435+
return $array;
436+
}
437+
412438
/**
413439
* Gets the string presentation of the object
414440
*

src/Adyen/Model/BalanceControl/BalanceTransferRequest.php

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -592,6 +592,32 @@ public function jsonSerialize()
592592
return ObjectSerializer::sanitizeForSerialization($this);
593593
}
594594

595+
public function toArray(): array
596+
{
597+
$array = [];
598+
foreach (self::$openAPITypes as $propertyName => $propertyType) {
599+
$propertyValue = $this[$propertyName];
600+
if ($propertyValue !== null) {
601+
// Check if the property value is an object and has a toArray() method
602+
if (is_object($propertyValue) && method_exists($propertyValue, 'toArray')) {
603+
$array[$propertyName] = $propertyValue->toArray();
604+
// Check if it's type datetime
605+
} elseif ($propertyValue instanceof \DateTime) {
606+
$array[$propertyName] = $propertyValue->format(DATE_ATOM);
607+
// If it's an array type we should check whether it contains objects and if so call toArray method
608+
} elseif (is_array($propertyValue)) {
609+
$array[$propertyName] = array_map(function ($item) {
610+
return $item instanceof ModelInterface ? $item->toArray() : $item;
611+
}, $propertyValue);
612+
} else {
613+
// Otherwise, directly assign the property value to the array
614+
$array[$propertyName] = $propertyValue;
615+
}
616+
}
617+
}
618+
return $array;
619+
}
620+
595621
/**
596622
* Gets the string presentation of the object
597623
*

src/Adyen/Model/BalanceControl/BalanceTransferResponse.php

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -740,6 +740,32 @@ public function jsonSerialize()
740740
return ObjectSerializer::sanitizeForSerialization($this);
741741
}
742742

743+
public function toArray(): array
744+
{
745+
$array = [];
746+
foreach (self::$openAPITypes as $propertyName => $propertyType) {
747+
$propertyValue = $this[$propertyName];
748+
if ($propertyValue !== null) {
749+
// Check if the property value is an object and has a toArray() method
750+
if (is_object($propertyValue) && method_exists($propertyValue, 'toArray')) {
751+
$array[$propertyName] = $propertyValue->toArray();
752+
// Check if it's type datetime
753+
} elseif ($propertyValue instanceof \DateTime) {
754+
$array[$propertyName] = $propertyValue->format(DATE_ATOM);
755+
// If it's an array type we should check whether it contains objects and if so call toArray method
756+
} elseif (is_array($propertyValue)) {
757+
$array[$propertyName] = array_map(function ($item) {
758+
return $item instanceof ModelInterface ? $item->toArray() : $item;
759+
}, $propertyValue);
760+
} else {
761+
// Otherwise, directly assign the property value to the array
762+
$array[$propertyName] = $propertyValue;
763+
}
764+
}
765+
}
766+
return $array;
767+
}
768+
743769
/**
744770
* Gets the string presentation of the object
745771
*

0 commit comments

Comments
 (0)