From ff2aef608a0fb7f9d9b29d5b23b39fe84723e46b Mon Sep 17 00:00:00 2001 From: AdyenAutomationBot <38424300+AdyenAutomationBot@users.noreply.github.com> Date: Wed, 22 Oct 2025 12:24:10 +0000 Subject: [PATCH 1/2] [adyen-sdk-automation] automated changes --- .../Model/AcsWebhooks/ObjectSerializer.php | 6 +- .../BalanceWebhooks/ObjectSerializer.php | 6 +- .../ConfigurationWebhooks/BulkAddress.php | 93 +++++++++++++++++++ .../CapabilitySettings.php | 8 +- .../Model/ConfigurationWebhooks/Device.php | 31 +++++++ .../NetworkTokenNotificationDataV2.php | 31 +++++++ .../ObjectSerializer.php | 6 +- .../VerificationError.php | 4 +- .../VerificationErrorRecursive.php | 4 +- .../BalancePlatformNotificationResponse.php | 2 +- .../DisputeEventNotification.php | 4 +- .../DisputeWebhooks/ObjectSerializer.php | 6 +- .../AccountCapabilityData.php | 2 +- .../ManagementWebhooks/ObjectSerializer.php | 6 +- .../TerminalAssignmentNotificationRequest.php | 33 ++++++- .../ManagementWebhooks/VerificationError.php | 2 + .../VerificationErrorRecursive.php | 2 + .../ObjectSerializer.php | 6 +- .../Model/ReportWebhooks/ObjectSerializer.php | 6 +- .../TokenizationWebhooks/ObjectSerializer.php | 6 +- .../TransactionWebhooks/ObjectSerializer.php | 6 +- .../TransactionWebhooks/PlatformPayment.php | 2 +- .../TransferViewCategoryData.php | 2 +- .../ConfirmationTrackingData.php | 4 +- .../HKLocalAccountIdentification.php | 2 +- .../TransferWebhooks/ObjectSerializer.php | 6 +- .../TransferWebhooks/PlatformPayment.php | 2 +- .../Model/TransferWebhooks/TransferData.php | 2 +- .../TransferDataCategoryData.php | 2 +- 29 files changed, 235 insertions(+), 57 deletions(-) diff --git a/src/Adyen/Model/AcsWebhooks/ObjectSerializer.php b/src/Adyen/Model/AcsWebhooks/ObjectSerializer.php index 6db99ef45..0a63233a9 100644 --- a/src/Adyen/Model/AcsWebhooks/ObjectSerializer.php +++ b/src/Adyen/Model/AcsWebhooks/ObjectSerializer.php @@ -82,7 +82,7 @@ public static function sanitizeForSerialization($data, $type = null, $format = n } } } else { - foreach ($data as $property => $value) { + foreach($data as $property => $value) { $values[$property] = self::sanitizeForSerialization($value); } } @@ -118,9 +118,7 @@ public static function sanitizeFilename($filename) */ public static function sanitizeTimestamp($timestamp) { - if (!is_string($timestamp)) { - return $timestamp; - } + if (!is_string($timestamp)) return $timestamp; return preg_replace('/(:\d{2}.\d{6})\d*/', '$1', $timestamp); } diff --git a/src/Adyen/Model/BalanceWebhooks/ObjectSerializer.php b/src/Adyen/Model/BalanceWebhooks/ObjectSerializer.php index 0f6e3af93..38122b33c 100644 --- a/src/Adyen/Model/BalanceWebhooks/ObjectSerializer.php +++ b/src/Adyen/Model/BalanceWebhooks/ObjectSerializer.php @@ -82,7 +82,7 @@ public static function sanitizeForSerialization($data, $type = null, $format = n } } } else { - foreach ($data as $property => $value) { + foreach($data as $property => $value) { $values[$property] = self::sanitizeForSerialization($value); } } @@ -118,9 +118,7 @@ public static function sanitizeFilename($filename) */ public static function sanitizeTimestamp($timestamp) { - if (!is_string($timestamp)) { - return $timestamp; - } + if (!is_string($timestamp)) return $timestamp; return preg_replace('/(:\d{2}.\d{6})\d*/', '$1', $timestamp); } diff --git a/src/Adyen/Model/ConfigurationWebhooks/BulkAddress.php b/src/Adyen/Model/ConfigurationWebhooks/BulkAddress.php index 57bc97172..710d5ed79 100644 --- a/src/Adyen/Model/ConfigurationWebhooks/BulkAddress.php +++ b/src/Adyen/Model/ConfigurationWebhooks/BulkAddress.php @@ -46,6 +46,9 @@ class BulkAddress implements ModelInterface, ArrayAccess, \JsonSerializable 'country' => 'string', 'email' => 'string', 'houseNumberOrName' => 'string', + 'line1' => 'string', + 'line2' => 'string', + 'line3' => 'string', 'mobile' => 'string', 'postalCode' => 'string', 'stateOrProvince' => 'string', @@ -65,6 +68,9 @@ class BulkAddress implements ModelInterface, ArrayAccess, \JsonSerializable 'country' => null, 'email' => null, 'houseNumberOrName' => null, + 'line1' => null, + 'line2' => null, + 'line3' => null, 'mobile' => null, 'postalCode' => null, 'stateOrProvince' => null, @@ -82,6 +88,9 @@ class BulkAddress implements ModelInterface, ArrayAccess, \JsonSerializable 'country' => false, 'email' => false, 'houseNumberOrName' => false, + 'line1' => false, + 'line2' => false, + 'line3' => false, 'mobile' => false, 'postalCode' => false, 'stateOrProvince' => false, @@ -179,6 +188,9 @@ public function isNullableSetToNull(string $property): bool 'country' => 'country', 'email' => 'email', 'houseNumberOrName' => 'houseNumberOrName', + 'line1' => 'line1', + 'line2' => 'line2', + 'line3' => 'line3', 'mobile' => 'mobile', 'postalCode' => 'postalCode', 'stateOrProvince' => 'stateOrProvince', @@ -196,6 +208,9 @@ public function isNullableSetToNull(string $property): bool 'country' => 'setCountry', 'email' => 'setEmail', 'houseNumberOrName' => 'setHouseNumberOrName', + 'line1' => 'setLine1', + 'line2' => 'setLine2', + 'line3' => 'setLine3', 'mobile' => 'setMobile', 'postalCode' => 'setPostalCode', 'stateOrProvince' => 'setStateOrProvince', @@ -213,6 +228,9 @@ public function isNullableSetToNull(string $property): bool 'country' => 'getCountry', 'email' => 'getEmail', 'houseNumberOrName' => 'getHouseNumberOrName', + 'line1' => 'getLine1', + 'line2' => 'getLine2', + 'line3' => 'getLine3', 'mobile' => 'getMobile', 'postalCode' => 'getPostalCode', 'stateOrProvince' => 'getStateOrProvince', @@ -281,6 +299,9 @@ public function __construct(?array $data = null) $this->setIfExists('country', $data ?? [], null); $this->setIfExists('email', $data ?? [], null); $this->setIfExists('houseNumberOrName', $data ?? [], null); + $this->setIfExists('line1', $data ?? [], null); + $this->setIfExists('line2', $data ?? [], null); + $this->setIfExists('line3', $data ?? [], null); $this->setIfExists('mobile', $data ?? [], null); $this->setIfExists('postalCode', $data ?? [], null); $this->setIfExists('stateOrProvince', $data ?? [], null); @@ -452,6 +473,78 @@ public function setHouseNumberOrName($houseNumberOrName) return $this; } + /** + * Gets line1 + * + * @return string|null + */ + public function getLine1() + { + return $this->container['line1']; + } + + /** + * Sets line1 + * + * @param string|null $line1 The name of the street and the number of the building. For example: **Simon Carmiggeltstraat 6-50**. + * + * @return self + */ + public function setLine1($line1) + { + $this->container['line1'] = $line1; + + return $this; + } + + /** + * Gets line2 + * + * @return string|null + */ + public function getLine2() + { + return $this->container['line2']; + } + + /** + * Sets line2 + * + * @param string|null $line2 Additional information about the delivery address. For example, an apartment number. + * + * @return self + */ + public function setLine2($line2) + { + $this->container['line2'] = $line2; + + return $this; + } + + /** + * Gets line3 + * + * @return string|null + */ + public function getLine3() + { + return $this->container['line3']; + } + + /** + * Sets line3 + * + * @param string|null $line3 Additional information about the delivery address. + * + * @return self + */ + public function setLine3($line3) + { + $this->container['line3'] = $line3; + + return $this; + } + /** * Gets mobile * diff --git a/src/Adyen/Model/ConfigurationWebhooks/CapabilitySettings.php b/src/Adyen/Model/ConfigurationWebhooks/CapabilitySettings.php index c411751db..43508c053 100644 --- a/src/Adyen/Model/ConfigurationWebhooks/CapabilitySettings.php +++ b/src/Adyen/Model/ConfigurationWebhooks/CapabilitySettings.php @@ -355,7 +355,7 @@ public function getAmountPerIndustry() /** * Sets amountPerIndustry * - * @param array|null $amountPerIndustry + * @param array|null $amountPerIndustry * * @return self */ @@ -379,7 +379,7 @@ public function getAuthorizedCardUsers() /** * Sets authorizedCardUsers * - * @param bool|null $authorizedCardUsers + * @param bool|null $authorizedCardUsers * * @return self */ @@ -403,7 +403,7 @@ public function getFundingSource() /** * Sets fundingSource * - * @param string[]|null $fundingSource + * @param string[]|null $fundingSource * * @return self */ @@ -436,7 +436,7 @@ public function getInterval() /** * Sets interval * - * @param string|null $interval + * @param string|null $interval * * @return self */ diff --git a/src/Adyen/Model/ConfigurationWebhooks/Device.php b/src/Adyen/Model/ConfigurationWebhooks/Device.php index 1a47965c5..26ba5438a 100644 --- a/src/Adyen/Model/ConfigurationWebhooks/Device.php +++ b/src/Adyen/Model/ConfigurationWebhooks/Device.php @@ -41,6 +41,7 @@ class Device implements ModelInterface, ArrayAccess, \JsonSerializable * @var string[] */ protected static $openAPITypes = [ + 'deviceId' => 'string', 'formFactor' => 'string', 'osName' => 'string' ]; @@ -53,6 +54,7 @@ class Device implements ModelInterface, ArrayAccess, \JsonSerializable * @psalm-var array */ protected static $openAPIFormats = [ + 'deviceId' => null, 'formFactor' => null, 'osName' => null ]; @@ -63,6 +65,7 @@ class Device implements ModelInterface, ArrayAccess, \JsonSerializable * @var boolean[] */ protected static $openAPINullables = [ + 'deviceId' => false, 'formFactor' => false, 'osName' => false ]; @@ -153,6 +156,7 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $attributeMap = [ + 'deviceId' => 'deviceId', 'formFactor' => 'formFactor', 'osName' => 'osName' ]; @@ -163,6 +167,7 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $setters = [ + 'deviceId' => 'setDeviceId', 'formFactor' => 'setFormFactor', 'osName' => 'setOsName' ]; @@ -173,6 +178,7 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $getters = [ + 'deviceId' => 'getDeviceId', 'formFactor' => 'getFormFactor', 'osName' => 'getOsName' ]; @@ -234,6 +240,7 @@ public function getModelName() */ public function __construct(?array $data = null) { + $this->setIfExists('deviceId', $data ?? [], null); $this->setIfExists('formFactor', $data ?? [], null); $this->setIfExists('osName', $data ?? [], null); } @@ -280,6 +287,30 @@ public function valid() } + /** + * Gets deviceId + * + * @return string|null + */ + public function getDeviceId() + { + return $this->container['deviceId']; + } + + /** + * Sets deviceId + * + * @param string|null $deviceId The unique identifier of the device used for provisioning the network token. + * + * @return self + */ + public function setDeviceId($deviceId) + { + $this->container['deviceId'] = $deviceId; + + return $this; + } + /** * Gets formFactor * diff --git a/src/Adyen/Model/ConfigurationWebhooks/NetworkTokenNotificationDataV2.php b/src/Adyen/Model/ConfigurationWebhooks/NetworkTokenNotificationDataV2.php index 619b27af1..e43817d69 100644 --- a/src/Adyen/Model/ConfigurationWebhooks/NetworkTokenNotificationDataV2.php +++ b/src/Adyen/Model/ConfigurationWebhooks/NetworkTokenNotificationDataV2.php @@ -47,6 +47,7 @@ class NetworkTokenNotificationDataV2 implements ModelInterface, ArrayAccess, \Js 'decision' => 'string', 'id' => 'string', 'paymentInstrumentId' => 'string', + 'schemeRiskScore' => 'string', 'status' => 'string', 'tokenLastFour' => 'string', 'tokenRequestor' => '\Adyen\Model\ConfigurationWebhooks\NetworkTokenRequestor', @@ -70,6 +71,7 @@ class NetworkTokenNotificationDataV2 implements ModelInterface, ArrayAccess, \Js 'decision' => null, 'id' => null, 'paymentInstrumentId' => null, + 'schemeRiskScore' => null, 'status' => null, 'tokenLastFour' => null, 'tokenRequestor' => null, @@ -91,6 +93,7 @@ class NetworkTokenNotificationDataV2 implements ModelInterface, ArrayAccess, \Js 'decision' => false, 'id' => false, 'paymentInstrumentId' => false, + 'schemeRiskScore' => false, 'status' => false, 'tokenLastFour' => false, 'tokenRequestor' => false, @@ -192,6 +195,7 @@ public function isNullableSetToNull(string $property): bool 'decision' => 'decision', 'id' => 'id', 'paymentInstrumentId' => 'paymentInstrumentId', + 'schemeRiskScore' => 'schemeRiskScore', 'status' => 'status', 'tokenLastFour' => 'tokenLastFour', 'tokenRequestor' => 'tokenRequestor', @@ -213,6 +217,7 @@ public function isNullableSetToNull(string $property): bool 'decision' => 'setDecision', 'id' => 'setId', 'paymentInstrumentId' => 'setPaymentInstrumentId', + 'schemeRiskScore' => 'setSchemeRiskScore', 'status' => 'setStatus', 'tokenLastFour' => 'setTokenLastFour', 'tokenRequestor' => 'setTokenRequestor', @@ -234,6 +239,7 @@ public function isNullableSetToNull(string $property): bool 'decision' => 'getDecision', 'id' => 'getId', 'paymentInstrumentId' => 'getPaymentInstrumentId', + 'schemeRiskScore' => 'getSchemeRiskScore', 'status' => 'getStatus', 'tokenLastFour' => 'getTokenLastFour', 'tokenRequestor' => 'getTokenRequestor', @@ -306,6 +312,7 @@ public function __construct(?array $data = null) $this->setIfExists('decision', $data ?? [], null); $this->setIfExists('id', $data ?? [], null); $this->setIfExists('paymentInstrumentId', $data ?? [], null); + $this->setIfExists('schemeRiskScore', $data ?? [], null); $this->setIfExists('status', $data ?? [], null); $this->setIfExists('tokenLastFour', $data ?? [], null); $this->setIfExists('tokenRequestor', $data ?? [], null); @@ -501,6 +508,30 @@ public function setPaymentInstrumentId($paymentInstrumentId) return $this; } + /** + * Gets schemeRiskScore + * + * @return string|null + */ + public function getSchemeRiskScore() + { + return $this->container['schemeRiskScore']; + } + + /** + * Sets schemeRiskScore + * + * @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 + * + * @return self + */ + public function setSchemeRiskScore($schemeRiskScore) + { + $this->container['schemeRiskScore'] = $schemeRiskScore; + + return $this; + } + /** * Gets status * diff --git a/src/Adyen/Model/ConfigurationWebhooks/ObjectSerializer.php b/src/Adyen/Model/ConfigurationWebhooks/ObjectSerializer.php index 450c8f930..9e2833460 100644 --- a/src/Adyen/Model/ConfigurationWebhooks/ObjectSerializer.php +++ b/src/Adyen/Model/ConfigurationWebhooks/ObjectSerializer.php @@ -82,7 +82,7 @@ public static function sanitizeForSerialization($data, $type = null, $format = n } } } else { - foreach ($data as $property => $value) { + foreach($data as $property => $value) { $values[$property] = self::sanitizeForSerialization($value); } } @@ -118,9 +118,7 @@ public static function sanitizeFilename($filename) */ public static function sanitizeTimestamp($timestamp) { - if (!is_string($timestamp)) { - return $timestamp; - } + if (!is_string($timestamp)) return $timestamp; return preg_replace('/(:\d{2}.\d{6})\d*/', '$1', $timestamp); } diff --git a/src/Adyen/Model/ConfigurationWebhooks/VerificationError.php b/src/Adyen/Model/ConfigurationWebhooks/VerificationError.php index 76c61c5af..8d480c9bd 100644 --- a/src/Adyen/Model/ConfigurationWebhooks/VerificationError.php +++ b/src/Adyen/Model/ConfigurationWebhooks/VerificationError.php @@ -298,6 +298,7 @@ public function getModelName() public const CAPABILITIES_WITHDRAW_FROM_ATM_IN_RESTRICTED_COUNTRIES_COMMERCIAL = 'withdrawFromAtmInRestrictedCountriesCommercial'; public const CAPABILITIES_WITHDRAW_FROM_ATM_IN_RESTRICTED_COUNTRIES_CONSUMER = 'withdrawFromAtmInRestrictedCountriesConsumer'; public const TYPE_DATA_MISSING = 'dataMissing'; + public const TYPE_DATA_REVIEW = 'dataReview'; public const TYPE_INVALID_INPUT = 'invalidInput'; public const TYPE_PENDING_STATUS = 'pendingStatus'; @@ -375,6 +376,7 @@ public function getTypeAllowableValues() { return [ self::TYPE_DATA_MISSING, + self::TYPE_DATA_REVIEW, self::TYPE_INVALID_INPUT, self::TYPE_PENDING_STATUS, ]; @@ -595,7 +597,7 @@ public function getType() /** * Sets type * - * @param string|null $type The type of error. Possible values: * **invalidInput** * **dataMissing** * **pendingStatus** + * @param string|null $type The type of error. Possible values: * **invalidInput** * **dataMissing** * **pendingStatus** * **dataReview** * * @return self */ diff --git a/src/Adyen/Model/ConfigurationWebhooks/VerificationErrorRecursive.php b/src/Adyen/Model/ConfigurationWebhooks/VerificationErrorRecursive.php index 6ca45a345..1eaab57dc 100644 --- a/src/Adyen/Model/ConfigurationWebhooks/VerificationErrorRecursive.php +++ b/src/Adyen/Model/ConfigurationWebhooks/VerificationErrorRecursive.php @@ -292,6 +292,7 @@ public function getModelName() public const CAPABILITIES_WITHDRAW_FROM_ATM_IN_RESTRICTED_COUNTRIES_COMMERCIAL = 'withdrawFromAtmInRestrictedCountriesCommercial'; public const CAPABILITIES_WITHDRAW_FROM_ATM_IN_RESTRICTED_COUNTRIES_CONSUMER = 'withdrawFromAtmInRestrictedCountriesConsumer'; public const TYPE_DATA_MISSING = 'dataMissing'; + public const TYPE_DATA_REVIEW = 'dataReview'; public const TYPE_INVALID_INPUT = 'invalidInput'; public const TYPE_PENDING_STATUS = 'pendingStatus'; @@ -369,6 +370,7 @@ public function getTypeAllowableValues() { return [ self::TYPE_DATA_MISSING, + self::TYPE_DATA_REVIEW, self::TYPE_INVALID_INPUT, self::TYPE_PENDING_STATUS, ]; @@ -540,7 +542,7 @@ public function getType() /** * Sets type * - * @param string|null $type The type of error. Possible values: * **invalidInput** * **dataMissing** * **pendingStatus** + * @param string|null $type The type of error. Possible values: * **invalidInput** * **dataMissing** * **pendingStatus** * **dataReview** * * @return self */ diff --git a/src/Adyen/Model/DisputeWebhooks/BalancePlatformNotificationResponse.php b/src/Adyen/Model/DisputeWebhooks/BalancePlatformNotificationResponse.php index e68afcd20..279ffc378 100644 --- a/src/Adyen/Model/DisputeWebhooks/BalancePlatformNotificationResponse.php +++ b/src/Adyen/Model/DisputeWebhooks/BalancePlatformNotificationResponse.php @@ -286,7 +286,7 @@ public function getNotificationResponse() /** * Sets notificationResponse * - * @param string|null $notificationResponse Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks#accept-notifications). + * @param string|null $notificationResponse Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). * * @return self */ diff --git a/src/Adyen/Model/DisputeWebhooks/DisputeEventNotification.php b/src/Adyen/Model/DisputeWebhooks/DisputeEventNotification.php index 9b44c7caf..64322e1aa 100644 --- a/src/Adyen/Model/DisputeWebhooks/DisputeEventNotification.php +++ b/src/Adyen/Model/DisputeWebhooks/DisputeEventNotification.php @@ -269,6 +269,7 @@ public function getModelName() public const TYPE_FRAUD = 'fraud'; public const TYPE_NOT_DELIVERED = 'notDelivered'; public const TYPE_DUPLICATE = 'duplicate'; + public const TYPE_OTHER = 'other'; /** * Gets allowable values of the enum @@ -281,6 +282,7 @@ public function getTypeAllowableValues() self::TYPE_FRAUD, self::TYPE_NOT_DELIVERED, self::TYPE_DUPLICATE, + self::TYPE_OTHER, ]; } /** @@ -422,7 +424,7 @@ public function getCreationDate() /** * Sets creationDate * - * @param \DateTime|null $creationDate The date and time when the event was triggered, in ISO 8601 extended format. For example, **2020-12-18T10:15:30+01:00**. + * @param \DateTime|null $creationDate The date and time when the event was triggered, in ISO 8601 extended format. For example, **2025-03-19T10:15:30+01:00**. * * @return self */ diff --git a/src/Adyen/Model/DisputeWebhooks/ObjectSerializer.php b/src/Adyen/Model/DisputeWebhooks/ObjectSerializer.php index 42303fca0..a77ea6d7b 100644 --- a/src/Adyen/Model/DisputeWebhooks/ObjectSerializer.php +++ b/src/Adyen/Model/DisputeWebhooks/ObjectSerializer.php @@ -82,7 +82,7 @@ public static function sanitizeForSerialization($data, $type = null, $format = n } } } else { - foreach ($data as $property => $value) { + foreach($data as $property => $value) { $values[$property] = self::sanitizeForSerialization($value); } } @@ -118,9 +118,7 @@ public static function sanitizeFilename($filename) */ public static function sanitizeTimestamp($timestamp) { - if (!is_string($timestamp)) { - return $timestamp; - } + if (!is_string($timestamp)) return $timestamp; return preg_replace('/(:\d{2}.\d{6})\d*/', '$1', $timestamp); } diff --git a/src/Adyen/Model/ManagementWebhooks/AccountCapabilityData.php b/src/Adyen/Model/ManagementWebhooks/AccountCapabilityData.php index 031af66b2..112d23ada 100644 --- a/src/Adyen/Model/ManagementWebhooks/AccountCapabilityData.php +++ b/src/Adyen/Model/ManagementWebhooks/AccountCapabilityData.php @@ -413,7 +413,7 @@ public function getProblems() /** * Sets problems * - * @param \Adyen\Model\ManagementWebhooks\CapabilityProblem[]|null $problems List of entities that has problems with verification. The information includes the details of the errors and the actions that you can take to resolve them. + * @param \Adyen\Model\ManagementWebhooks\CapabilityProblem[]|null $problems List of entities that have problems with verification. The information includes the details of the errors and the actions that you can take to resolve them. * * @return self */ diff --git a/src/Adyen/Model/ManagementWebhooks/ObjectSerializer.php b/src/Adyen/Model/ManagementWebhooks/ObjectSerializer.php index 17248af8e..7cadc1727 100644 --- a/src/Adyen/Model/ManagementWebhooks/ObjectSerializer.php +++ b/src/Adyen/Model/ManagementWebhooks/ObjectSerializer.php @@ -82,7 +82,7 @@ public static function sanitizeForSerialization($data, $type = null, $format = n } } } else { - foreach ($data as $property => $value) { + foreach($data as $property => $value) { $values[$property] = self::sanitizeForSerialization($value); } } @@ -118,9 +118,7 @@ public static function sanitizeFilename($filename) */ public static function sanitizeTimestamp($timestamp) { - if (!is_string($timestamp)) { - return $timestamp; - } + if (!is_string($timestamp)) return $timestamp; return preg_replace('/(:\d{2}.\d{6})\d*/', '$1', $timestamp); } diff --git a/src/Adyen/Model/ManagementWebhooks/TerminalAssignmentNotificationRequest.php b/src/Adyen/Model/ManagementWebhooks/TerminalAssignmentNotificationRequest.php index 0fca2a7e3..40467e475 100644 --- a/src/Adyen/Model/ManagementWebhooks/TerminalAssignmentNotificationRequest.php +++ b/src/Adyen/Model/ManagementWebhooks/TerminalAssignmentNotificationRequest.php @@ -43,6 +43,7 @@ class TerminalAssignmentNotificationRequest implements ModelInterface, ArrayAcce protected static $openAPITypes = [ 'assignedToAccount' => 'string', 'assignedToStore' => 'string', + 'assignedToStoreId' => 'string', 'eventDate' => 'string', 'pspReference' => 'string', 'uniqueTerminalId' => 'string' @@ -58,6 +59,7 @@ class TerminalAssignmentNotificationRequest implements ModelInterface, ArrayAcce protected static $openAPIFormats = [ 'assignedToAccount' => null, 'assignedToStore' => null, + 'assignedToStoreId' => null, 'eventDate' => null, 'pspReference' => null, 'uniqueTerminalId' => null @@ -71,6 +73,7 @@ class TerminalAssignmentNotificationRequest implements ModelInterface, ArrayAcce protected static $openAPINullables = [ 'assignedToAccount' => false, 'assignedToStore' => false, + 'assignedToStoreId' => false, 'eventDate' => false, 'pspReference' => false, 'uniqueTerminalId' => false @@ -164,6 +167,7 @@ public function isNullableSetToNull(string $property): bool protected static $attributeMap = [ 'assignedToAccount' => 'assignedToAccount', 'assignedToStore' => 'assignedToStore', + 'assignedToStoreId' => 'assignedToStoreId', 'eventDate' => 'eventDate', 'pspReference' => 'pspReference', 'uniqueTerminalId' => 'uniqueTerminalId' @@ -177,6 +181,7 @@ public function isNullableSetToNull(string $property): bool protected static $setters = [ 'assignedToAccount' => 'setAssignedToAccount', 'assignedToStore' => 'setAssignedToStore', + 'assignedToStoreId' => 'setAssignedToStoreId', 'eventDate' => 'setEventDate', 'pspReference' => 'setPspReference', 'uniqueTerminalId' => 'setUniqueTerminalId' @@ -190,6 +195,7 @@ public function isNullableSetToNull(string $property): bool protected static $getters = [ 'assignedToAccount' => 'getAssignedToAccount', 'assignedToStore' => 'getAssignedToStore', + 'assignedToStoreId' => 'getAssignedToStoreId', 'eventDate' => 'getEventDate', 'pspReference' => 'getPspReference', 'uniqueTerminalId' => 'getUniqueTerminalId' @@ -254,6 +260,7 @@ public function __construct(?array $data = null) { $this->setIfExists('assignedToAccount', $data ?? [], null); $this->setIfExists('assignedToStore', $data ?? [], null); + $this->setIfExists('assignedToStoreId', $data ?? [], null); $this->setIfExists('eventDate', $data ?? [], null); $this->setIfExists('pspReference', $data ?? [], null); $this->setIfExists('uniqueTerminalId', $data ?? [], null); @@ -350,7 +357,7 @@ public function getAssignedToStore() /** * Sets assignedToStore * - * @param string|null $assignedToStore The unique identifier of the store to which the terminal is assigned. + * @param string|null $assignedToStore The store that the terminal is assigned to, identified by the store reference (also known as store code). * * @return self */ @@ -361,6 +368,30 @@ public function setAssignedToStore($assignedToStore) return $this; } + /** + * Gets assignedToStoreId + * + * @return string|null + */ + public function getAssignedToStoreId() + { + return $this->container['assignedToStoreId']; + } + + /** + * Sets assignedToStoreId + * + * @param string|null $assignedToStoreId The unique identifier of the store to which the terminal is assigned. + * + * @return self + */ + public function setAssignedToStoreId($assignedToStoreId) + { + $this->container['assignedToStoreId'] = $assignedToStoreId; + + return $this; + } + /** * Gets eventDate * diff --git a/src/Adyen/Model/ManagementWebhooks/VerificationError.php b/src/Adyen/Model/ManagementWebhooks/VerificationError.php index 263c9ad04..34c1ba3bb 100644 --- a/src/Adyen/Model/ManagementWebhooks/VerificationError.php +++ b/src/Adyen/Model/ManagementWebhooks/VerificationError.php @@ -237,6 +237,7 @@ public function getModelName() } public const TYPE_DATA_MISSING = 'dataMissing'; + public const TYPE_DATA_REVIEW = 'dataReview'; public const TYPE_INVALID_INPUT = 'invalidInput'; public const TYPE_PENDING_STATUS = 'pendingStatus'; @@ -249,6 +250,7 @@ public function getTypeAllowableValues() { return [ self::TYPE_DATA_MISSING, + self::TYPE_DATA_REVIEW, self::TYPE_INVALID_INPUT, self::TYPE_PENDING_STATUS, ]; diff --git a/src/Adyen/Model/ManagementWebhooks/VerificationErrorRecursive.php b/src/Adyen/Model/ManagementWebhooks/VerificationErrorRecursive.php index 5d6d18c76..f9816bce6 100644 --- a/src/Adyen/Model/ManagementWebhooks/VerificationErrorRecursive.php +++ b/src/Adyen/Model/ManagementWebhooks/VerificationErrorRecursive.php @@ -231,6 +231,7 @@ public function getModelName() } public const TYPE_DATA_MISSING = 'dataMissing'; + public const TYPE_DATA_REVIEW = 'dataReview'; public const TYPE_INVALID_INPUT = 'invalidInput'; public const TYPE_PENDING_STATUS = 'pendingStatus'; @@ -243,6 +244,7 @@ public function getTypeAllowableValues() { return [ self::TYPE_DATA_MISSING, + self::TYPE_DATA_REVIEW, self::TYPE_INVALID_INPUT, self::TYPE_PENDING_STATUS, ]; diff --git a/src/Adyen/Model/NegativeBalanceWarningWebhooks/ObjectSerializer.php b/src/Adyen/Model/NegativeBalanceWarningWebhooks/ObjectSerializer.php index 54a916786..e029fdb82 100644 --- a/src/Adyen/Model/NegativeBalanceWarningWebhooks/ObjectSerializer.php +++ b/src/Adyen/Model/NegativeBalanceWarningWebhooks/ObjectSerializer.php @@ -82,7 +82,7 @@ public static function sanitizeForSerialization($data, $type = null, $format = n } } } else { - foreach ($data as $property => $value) { + foreach($data as $property => $value) { $values[$property] = self::sanitizeForSerialization($value); } } @@ -118,9 +118,7 @@ public static function sanitizeFilename($filename) */ public static function sanitizeTimestamp($timestamp) { - if (!is_string($timestamp)) { - return $timestamp; - } + if (!is_string($timestamp)) return $timestamp; return preg_replace('/(:\d{2}.\d{6})\d*/', '$1', $timestamp); } diff --git a/src/Adyen/Model/ReportWebhooks/ObjectSerializer.php b/src/Adyen/Model/ReportWebhooks/ObjectSerializer.php index 819fa4aa9..c025665ac 100644 --- a/src/Adyen/Model/ReportWebhooks/ObjectSerializer.php +++ b/src/Adyen/Model/ReportWebhooks/ObjectSerializer.php @@ -82,7 +82,7 @@ public static function sanitizeForSerialization($data, $type = null, $format = n } } } else { - foreach ($data as $property => $value) { + foreach($data as $property => $value) { $values[$property] = self::sanitizeForSerialization($value); } } @@ -118,9 +118,7 @@ public static function sanitizeFilename($filename) */ public static function sanitizeTimestamp($timestamp) { - if (!is_string($timestamp)) { - return $timestamp; - } + if (!is_string($timestamp)) return $timestamp; return preg_replace('/(:\d{2}.\d{6})\d*/', '$1', $timestamp); } diff --git a/src/Adyen/Model/TokenizationWebhooks/ObjectSerializer.php b/src/Adyen/Model/TokenizationWebhooks/ObjectSerializer.php index d3e7abd5f..5bdde3cbf 100644 --- a/src/Adyen/Model/TokenizationWebhooks/ObjectSerializer.php +++ b/src/Adyen/Model/TokenizationWebhooks/ObjectSerializer.php @@ -82,7 +82,7 @@ public static function sanitizeForSerialization($data, $type = null, $format = n } } } else { - foreach ($data as $property => $value) { + foreach($data as $property => $value) { $values[$property] = self::sanitizeForSerialization($value); } } @@ -118,9 +118,7 @@ public static function sanitizeFilename($filename) */ public static function sanitizeTimestamp($timestamp) { - if (!is_string($timestamp)) { - return $timestamp; - } + if (!is_string($timestamp)) return $timestamp; return preg_replace('/(:\d{2}.\d{6})\d*/', '$1', $timestamp); } diff --git a/src/Adyen/Model/TransactionWebhooks/ObjectSerializer.php b/src/Adyen/Model/TransactionWebhooks/ObjectSerializer.php index e6ca71de1..1c17a3a34 100644 --- a/src/Adyen/Model/TransactionWebhooks/ObjectSerializer.php +++ b/src/Adyen/Model/TransactionWebhooks/ObjectSerializer.php @@ -82,7 +82,7 @@ public static function sanitizeForSerialization($data, $type = null, $format = n } } } else { - foreach ($data as $property => $value) { + foreach($data as $property => $value) { $values[$property] = self::sanitizeForSerialization($value); } } @@ -118,9 +118,7 @@ public static function sanitizeFilename($filename) */ public static function sanitizeTimestamp($timestamp) { - if (!is_string($timestamp)) { - return $timestamp; - } + if (!is_string($timestamp)) return $timestamp; return preg_replace('/(:\d{2}.\d{6})\d*/', '$1', $timestamp); } diff --git a/src/Adyen/Model/TransactionWebhooks/PlatformPayment.php b/src/Adyen/Model/TransactionWebhooks/PlatformPayment.php index 763836c2b..c066f57c9 100644 --- a/src/Adyen/Model/TransactionWebhooks/PlatformPayment.php +++ b/src/Adyen/Model/TransactionWebhooks/PlatformPayment.php @@ -467,7 +467,7 @@ public function getPlatformPaymentType() /** * Sets platformPaymentType * - * @param string|null $platformPaymentType Specifies the nature of the transfer. This parameter helps categorize transfers so you can reconcile transactions at a later time, using the Balance Platform Accounting Report for [marketplaces](https://docs.adyen.com/marketplaces/reports-and-fees/balance-platform-accounting-report/) or [platforms](https://docs.adyen.com/platforms/reports-and-fees/balance-platform-accounting-report/). Possible values: * **AcquiringFees**: for the acquiring fee incurred on a transaction. * **AdyenCommission**: for the transaction fee due to Adyen under [blended rates](https://www.adyen.com/knowledge-hub/guides/payments-training-guide/get-the-best-from-your-card-processing). * **AdyenFees**: for all the transaction fees due to Adyen. This is the sum of Adyen's commission and Adyen's markup. * **AdyenMarkup**: for the transaction fee due to Adyen under [Interchange++ pricing](https://www.adyen.com/pricing). * **BalanceAccount**: or the sale amount of a transaction. * **Commission**: for your platform's commission on a transaction. * **DCCPlatformCommission**: for the DCC Commission for the platform on a transaction. * **Interchange**: for the interchange fee (fee paid to the issuer) incurred on a transaction. * **PaymentFee**: for all of the transaction fees. * **Remainder**: for the left over amount after currency conversion. * **SchemeFee**: for the scheme fee incurred on a transaction. This is the sum of the interchange fees and the acquiring fees. * **Surcharge**: for the surcharge paid by the customer on a transaction. * **Tip**: for the tip paid by the customer. * **TopUp**: for an incoming transfer to top up your user's balance account. * **VAT**: for the Value Added Tax. + * @param string|null $platformPaymentType Specifies the nature of the transfer. This parameter helps categorize transfers so you can reconcile transactions at a later time, using the Balance Platform Accounting Report for [marketplaces](https://docs.adyen.com/marketplaces/reports-and-fees/balance-platform-accounting-report/) or [platforms](https://docs.adyen.com/platforms/reports-and-fees/balance-platform-accounting-report/). Possible values: * **AcquiringFees**: the acquiring fee (the aggregated amount of interchange and scheme fee) incurred on a transaction. * **AdyenCommission**: the transaction fee due to Adyen under [blended rates](https://www.adyen.com/knowledge-hub/guides/payments-training-guide/get-the-best-from-your-card-processing). * **AdyenFees**: all transaction fees due to Adyen. This is the aggregated amount of Adyen's commission and markup. * **AdyenMarkup**: the transaction fee due to Adyen under [Interchange++ pricing](https://www.adyen.com/pricing). * **BalanceAccount**: the amount booked to your user after the deduction of the relevant fees. * **Commission**: your platform's or marketplace's commission on a transaction. * **DCCPlatformCommission**: the Dynamic Currency Conversion (DCC) fee on a transaction. * **Interchange**: the interchange fee (fee paid to the issuer) incurred on a transaction. * **PaymentFee**: the aggregated amount of all transaction fees. * **Remainder**: the leftover amount after currency conversion. * **SchemeFee**: the scheme fee incurred on a transaction. * **Surcharge**: the surcharge paid by the customer on a transaction. * **Tip**: the tip paid by the customer. * **TopUp**: an incoming transfer to top up your user's balance account. * **VAT**: the value-added tax charged on the payment. * * @return self */ diff --git a/src/Adyen/Model/TransactionWebhooks/TransferViewCategoryData.php b/src/Adyen/Model/TransactionWebhooks/TransferViewCategoryData.php index 139a6992a..b41502544 100644 --- a/src/Adyen/Model/TransactionWebhooks/TransferViewCategoryData.php +++ b/src/Adyen/Model/TransactionWebhooks/TransferViewCategoryData.php @@ -702,7 +702,7 @@ public function getPlatformPaymentType() /** * Sets platformPaymentType * - * @param string|null $platformPaymentType Specifies the nature of the transfer. This parameter helps categorize transfers so you can reconcile transactions at a later time, using the Balance Platform Accounting Report for [marketplaces](https://docs.adyen.com/marketplaces/reports-and-fees/balance-platform-accounting-report/) or [platforms](https://docs.adyen.com/platforms/reports-and-fees/balance-platform-accounting-report/). Possible values: * **AcquiringFees**: for the acquiring fee incurred on a transaction. * **AdyenCommission**: for the transaction fee due to Adyen under [blended rates](https://www.adyen.com/knowledge-hub/guides/payments-training-guide/get-the-best-from-your-card-processing). * **AdyenFees**: for all the transaction fees due to Adyen. This is the sum of Adyen's commission and Adyen's markup. * **AdyenMarkup**: for the transaction fee due to Adyen under [Interchange++ pricing](https://www.adyen.com/pricing). * **BalanceAccount**: or the sale amount of a transaction. * **Commission**: for your platform's commission on a transaction. * **DCCPlatformCommission**: for the DCC Commission for the platform on a transaction. * **Interchange**: for the interchange fee (fee paid to the issuer) incurred on a transaction. * **PaymentFee**: for all of the transaction fees. * **Remainder**: for the left over amount after currency conversion. * **SchemeFee**: for the scheme fee incurred on a transaction. This is the sum of the interchange fees and the acquiring fees. * **Surcharge**: for the surcharge paid by the customer on a transaction. * **Tip**: for the tip paid by the customer. * **TopUp**: for an incoming transfer to top up your user's balance account. * **VAT**: for the Value Added Tax. + * @param string|null $platformPaymentType Specifies the nature of the transfer. This parameter helps categorize transfers so you can reconcile transactions at a later time, using the Balance Platform Accounting Report for [marketplaces](https://docs.adyen.com/marketplaces/reports-and-fees/balance-platform-accounting-report/) or [platforms](https://docs.adyen.com/platforms/reports-and-fees/balance-platform-accounting-report/). Possible values: * **AcquiringFees**: the acquiring fee (the aggregated amount of interchange and scheme fee) incurred on a transaction. * **AdyenCommission**: the transaction fee due to Adyen under [blended rates](https://www.adyen.com/knowledge-hub/guides/payments-training-guide/get-the-best-from-your-card-processing). * **AdyenFees**: all transaction fees due to Adyen. This is the aggregated amount of Adyen's commission and markup. * **AdyenMarkup**: the transaction fee due to Adyen under [Interchange++ pricing](https://www.adyen.com/pricing). * **BalanceAccount**: the amount booked to your user after the deduction of the relevant fees. * **Commission**: your platform's or marketplace's commission on a transaction. * **DCCPlatformCommission**: the Dynamic Currency Conversion (DCC) fee on a transaction. * **Interchange**: the interchange fee (fee paid to the issuer) incurred on a transaction. * **PaymentFee**: the aggregated amount of all transaction fees. * **Remainder**: the leftover amount after currency conversion. * **SchemeFee**: the scheme fee incurred on a transaction. * **Surcharge**: the surcharge paid by the customer on a transaction. * **Tip**: the tip paid by the customer. * **TopUp**: an incoming transfer to top up your user's balance account. * **VAT**: the value-added tax charged on the payment. * * @return self */ diff --git a/src/Adyen/Model/TransferWebhooks/ConfirmationTrackingData.php b/src/Adyen/Model/TransferWebhooks/ConfirmationTrackingData.php index b08ad604f..894570e01 100644 --- a/src/Adyen/Model/TransferWebhooks/ConfirmationTrackingData.php +++ b/src/Adyen/Model/TransferWebhooks/ConfirmationTrackingData.php @@ -219,6 +219,7 @@ public function getModelName() } public const STATUS_CREDITED = 'credited'; + public const STATUS_ACCEPTED = 'accepted'; public const TYPE_CONFIRMATION = 'confirmation'; /** @@ -230,6 +231,7 @@ public function getStatusAllowableValues() { return [ self::STATUS_CREDITED, + self::STATUS_ACCEPTED, ]; } /** @@ -341,7 +343,7 @@ public function getStatus() /** * Sets status * - * @param string $status The status of the transfer. Possible values: - **credited**: the funds are credited to your user's transfer instrument or bank account. + * @param string $status The status of the transfer. Possible values: - **credited**: the funds are credited to your user's transfer instrument or bank account.- **accepted**: the request is accepted by the integration. * * @return self */ diff --git a/src/Adyen/Model/TransferWebhooks/HKLocalAccountIdentification.php b/src/Adyen/Model/TransferWebhooks/HKLocalAccountIdentification.php index ff368c984..1540dafdf 100644 --- a/src/Adyen/Model/TransferWebhooks/HKLocalAccountIdentification.php +++ b/src/Adyen/Model/TransferWebhooks/HKLocalAccountIdentification.php @@ -330,7 +330,7 @@ public function getAccountNumber() /** * Sets accountNumber * - * @param string $accountNumber The 9- to 15-character bank account number (alphanumeric), without separators or whitespace. Starts with the 3-digit branch code. + * @param string $accountNumber The 9- to 17-digit bank account number, without separators or whitespace. Starts with the 3-digit branch code. * * @return self */ diff --git a/src/Adyen/Model/TransferWebhooks/ObjectSerializer.php b/src/Adyen/Model/TransferWebhooks/ObjectSerializer.php index ba698c53f..916ec6dd1 100644 --- a/src/Adyen/Model/TransferWebhooks/ObjectSerializer.php +++ b/src/Adyen/Model/TransferWebhooks/ObjectSerializer.php @@ -82,7 +82,7 @@ public static function sanitizeForSerialization($data, $type = null, $format = n } } } else { - foreach ($data as $property => $value) { + foreach($data as $property => $value) { $values[$property] = self::sanitizeForSerialization($value); } } @@ -118,9 +118,7 @@ public static function sanitizeFilename($filename) */ public static function sanitizeTimestamp($timestamp) { - if (!is_string($timestamp)) { - return $timestamp; - } + if (!is_string($timestamp)) return $timestamp; return preg_replace('/(:\d{2}.\d{6})\d*/', '$1', $timestamp); } diff --git a/src/Adyen/Model/TransferWebhooks/PlatformPayment.php b/src/Adyen/Model/TransferWebhooks/PlatformPayment.php index 1389f2933..83ddaf399 100644 --- a/src/Adyen/Model/TransferWebhooks/PlatformPayment.php +++ b/src/Adyen/Model/TransferWebhooks/PlatformPayment.php @@ -467,7 +467,7 @@ public function getPlatformPaymentType() /** * Sets platformPaymentType * - * @param string|null $platformPaymentType Specifies the nature of the transfer. This parameter helps categorize transfers so you can reconcile transactions at a later time, using the Balance Platform Accounting Report for [marketplaces](https://docs.adyen.com/marketplaces/reports-and-fees/balance-platform-accounting-report/) or [platforms](https://docs.adyen.com/platforms/reports-and-fees/balance-platform-accounting-report/). Possible values: * **AcquiringFees**: for the acquiring fee incurred on a transaction. * **AdyenCommission**: for the transaction fee due to Adyen under [blended rates](https://www.adyen.com/knowledge-hub/guides/payments-training-guide/get-the-best-from-your-card-processing). * **AdyenFees**: for all the transaction fees due to Adyen. This is the sum of Adyen's commission and Adyen's markup. * **AdyenMarkup**: for the transaction fee due to Adyen under [Interchange++ pricing](https://www.adyen.com/pricing). * **BalanceAccount**: or the sale amount of a transaction. * **Commission**: for your platform's commission on a transaction. * **DCCPlatformCommission**: for the DCC Commission for the platform on a transaction. * **Interchange**: for the interchange fee (fee paid to the issuer) incurred on a transaction. * **PaymentFee**: for all of the transaction fees. * **Remainder**: for the left over amount after currency conversion. * **SchemeFee**: for the scheme fee incurred on a transaction. This is the sum of the interchange fees and the acquiring fees. * **Surcharge**: for the surcharge paid by the customer on a transaction. * **Tip**: for the tip paid by the customer. * **TopUp**: for an incoming transfer to top up your user's balance account. * **VAT**: for the Value Added Tax. + * @param string|null $platformPaymentType Specifies the nature of the transfer. This parameter helps categorize transfers so you can reconcile transactions at a later time, using the Balance Platform Accounting Report for [marketplaces](https://docs.adyen.com/marketplaces/reports-and-fees/balance-platform-accounting-report/) or [platforms](https://docs.adyen.com/platforms/reports-and-fees/balance-platform-accounting-report/). Possible values: * **AcquiringFees**: the acquiring fee (the aggregated amount of interchange and scheme fee) incurred on a transaction. * **AdyenCommission**: the transaction fee due to Adyen under [blended rates](https://www.adyen.com/knowledge-hub/guides/payments-training-guide/get-the-best-from-your-card-processing). * **AdyenFees**: all transaction fees due to Adyen. This is the aggregated amount of Adyen's commission and markup. * **AdyenMarkup**: the transaction fee due to Adyen under [Interchange++ pricing](https://www.adyen.com/pricing). * **BalanceAccount**: the amount booked to your user after the deduction of the relevant fees. * **Commission**: your platform's or marketplace's commission on a transaction. * **DCCPlatformCommission**: the Dynamic Currency Conversion (DCC) fee on a transaction. * **Interchange**: the interchange fee (fee paid to the issuer) incurred on a transaction. * **PaymentFee**: the aggregated amount of all transaction fees. * **Remainder**: the leftover amount after currency conversion. * **SchemeFee**: the scheme fee incurred on a transaction. * **Surcharge**: the surcharge paid by the customer on a transaction. * **Tip**: the tip paid by the customer. * **TopUp**: an incoming transfer to top up your user's balance account. * **VAT**: the value-added tax charged on the payment. * * @return self */ diff --git a/src/Adyen/Model/TransferWebhooks/TransferData.php b/src/Adyen/Model/TransferWebhooks/TransferData.php index 36fc234cc..0bd075fc4 100644 --- a/src/Adyen/Model/TransferWebhooks/TransferData.php +++ b/src/Adyen/Model/TransferWebhooks/TransferData.php @@ -982,7 +982,7 @@ public function getCategory() /** * Sets category * - * @param string $category The category of the transfer. Possible values: - **bank**: a transfer involving a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account. - **card**: a transfer involving a third-party card. - **internal**: a transfer between [balance accounts](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. - **issuedCard**: a transfer initiated by a Adyen-issued card. - **platformPayment**: funds movements related to payments that are acquired for your users. - **topUp**: an incoming transfer initiated by your user to top up their balance account. + * @param string $category The category of the transfer. Possible values: - **bank**: a transfer involving a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account. - **card**: a transfer involving a third-party card. - **internal**: a transfer between [balance accounts](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. - **issuedCard**: a transfer initiated by an Adyen-issued card. - **platformPayment**: funds movements related to payments that are acquired for your users. - **topUp**: an incoming transfer initiated by your user to top up their balance account. * * @return self */ diff --git a/src/Adyen/Model/TransferWebhooks/TransferDataCategoryData.php b/src/Adyen/Model/TransferWebhooks/TransferDataCategoryData.php index b02419b2b..9c5d021ed 100644 --- a/src/Adyen/Model/TransferWebhooks/TransferDataCategoryData.php +++ b/src/Adyen/Model/TransferWebhooks/TransferDataCategoryData.php @@ -702,7 +702,7 @@ public function getPlatformPaymentType() /** * Sets platformPaymentType * - * @param string|null $platformPaymentType Specifies the nature of the transfer. This parameter helps categorize transfers so you can reconcile transactions at a later time, using the Balance Platform Accounting Report for [marketplaces](https://docs.adyen.com/marketplaces/reports-and-fees/balance-platform-accounting-report/) or [platforms](https://docs.adyen.com/platforms/reports-and-fees/balance-platform-accounting-report/). Possible values: * **AcquiringFees**: for the acquiring fee incurred on a transaction. * **AdyenCommission**: for the transaction fee due to Adyen under [blended rates](https://www.adyen.com/knowledge-hub/guides/payments-training-guide/get-the-best-from-your-card-processing). * **AdyenFees**: for all the transaction fees due to Adyen. This is the sum of Adyen's commission and Adyen's markup. * **AdyenMarkup**: for the transaction fee due to Adyen under [Interchange++ pricing](https://www.adyen.com/pricing). * **BalanceAccount**: or the sale amount of a transaction. * **Commission**: for your platform's commission on a transaction. * **DCCPlatformCommission**: for the DCC Commission for the platform on a transaction. * **Interchange**: for the interchange fee (fee paid to the issuer) incurred on a transaction. * **PaymentFee**: for all of the transaction fees. * **Remainder**: for the left over amount after currency conversion. * **SchemeFee**: for the scheme fee incurred on a transaction. This is the sum of the interchange fees and the acquiring fees. * **Surcharge**: for the surcharge paid by the customer on a transaction. * **Tip**: for the tip paid by the customer. * **TopUp**: for an incoming transfer to top up your user's balance account. * **VAT**: for the Value Added Tax. + * @param string|null $platformPaymentType Specifies the nature of the transfer. This parameter helps categorize transfers so you can reconcile transactions at a later time, using the Balance Platform Accounting Report for [marketplaces](https://docs.adyen.com/marketplaces/reports-and-fees/balance-platform-accounting-report/) or [platforms](https://docs.adyen.com/platforms/reports-and-fees/balance-platform-accounting-report/). Possible values: * **AcquiringFees**: the acquiring fee (the aggregated amount of interchange and scheme fee) incurred on a transaction. * **AdyenCommission**: the transaction fee due to Adyen under [blended rates](https://www.adyen.com/knowledge-hub/guides/payments-training-guide/get-the-best-from-your-card-processing). * **AdyenFees**: all transaction fees due to Adyen. This is the aggregated amount of Adyen's commission and markup. * **AdyenMarkup**: the transaction fee due to Adyen under [Interchange++ pricing](https://www.adyen.com/pricing). * **BalanceAccount**: the amount booked to your user after the deduction of the relevant fees. * **Commission**: your platform's or marketplace's commission on a transaction. * **DCCPlatformCommission**: the Dynamic Currency Conversion (DCC) fee on a transaction. * **Interchange**: the interchange fee (fee paid to the issuer) incurred on a transaction. * **PaymentFee**: the aggregated amount of all transaction fees. * **Remainder**: the leftover amount after currency conversion. * **SchemeFee**: the scheme fee incurred on a transaction. * **Surcharge**: the surcharge paid by the customer on a transaction. * **Tip**: the tip paid by the customer. * **TopUp**: an incoming transfer to top up your user's balance account. * **VAT**: the value-added tax charged on the payment. * * @return self */ From 52cdfde4675cc381020f9e4de533df9892553dfe Mon Sep 17 00:00:00 2001 From: AdyenAutomationBot Date: Wed, 22 Oct 2025 12:27:41 +0000 Subject: [PATCH 2/2] style(fmt): code formatted --- src/Adyen/Model/AcsWebhooks/ObjectSerializer.php | 6 ++++-- src/Adyen/Model/BalanceWebhooks/ObjectSerializer.php | 6 ++++-- .../Model/ConfigurationWebhooks/CapabilitySettings.php | 8 ++++---- .../Model/ConfigurationWebhooks/ObjectSerializer.php | 6 ++++-- src/Adyen/Model/DisputeWebhooks/ObjectSerializer.php | 6 ++++-- src/Adyen/Model/ManagementWebhooks/ObjectSerializer.php | 6 ++++-- .../NegativeBalanceWarningWebhooks/ObjectSerializer.php | 6 ++++-- src/Adyen/Model/ReportWebhooks/ObjectSerializer.php | 6 ++++-- src/Adyen/Model/TokenizationWebhooks/ObjectSerializer.php | 6 ++++-- src/Adyen/Model/TransactionWebhooks/ObjectSerializer.php | 6 ++++-- src/Adyen/Model/TransferWebhooks/ObjectSerializer.php | 6 ++++-- 11 files changed, 44 insertions(+), 24 deletions(-) diff --git a/src/Adyen/Model/AcsWebhooks/ObjectSerializer.php b/src/Adyen/Model/AcsWebhooks/ObjectSerializer.php index 0a63233a9..6db99ef45 100644 --- a/src/Adyen/Model/AcsWebhooks/ObjectSerializer.php +++ b/src/Adyen/Model/AcsWebhooks/ObjectSerializer.php @@ -82,7 +82,7 @@ public static function sanitizeForSerialization($data, $type = null, $format = n } } } else { - foreach($data as $property => $value) { + foreach ($data as $property => $value) { $values[$property] = self::sanitizeForSerialization($value); } } @@ -118,7 +118,9 @@ public static function sanitizeFilename($filename) */ public static function sanitizeTimestamp($timestamp) { - if (!is_string($timestamp)) return $timestamp; + if (!is_string($timestamp)) { + return $timestamp; + } return preg_replace('/(:\d{2}.\d{6})\d*/', '$1', $timestamp); } diff --git a/src/Adyen/Model/BalanceWebhooks/ObjectSerializer.php b/src/Adyen/Model/BalanceWebhooks/ObjectSerializer.php index 38122b33c..0f6e3af93 100644 --- a/src/Adyen/Model/BalanceWebhooks/ObjectSerializer.php +++ b/src/Adyen/Model/BalanceWebhooks/ObjectSerializer.php @@ -82,7 +82,7 @@ public static function sanitizeForSerialization($data, $type = null, $format = n } } } else { - foreach($data as $property => $value) { + foreach ($data as $property => $value) { $values[$property] = self::sanitizeForSerialization($value); } } @@ -118,7 +118,9 @@ public static function sanitizeFilename($filename) */ public static function sanitizeTimestamp($timestamp) { - if (!is_string($timestamp)) return $timestamp; + if (!is_string($timestamp)) { + return $timestamp; + } return preg_replace('/(:\d{2}.\d{6})\d*/', '$1', $timestamp); } diff --git a/src/Adyen/Model/ConfigurationWebhooks/CapabilitySettings.php b/src/Adyen/Model/ConfigurationWebhooks/CapabilitySettings.php index 43508c053..c411751db 100644 --- a/src/Adyen/Model/ConfigurationWebhooks/CapabilitySettings.php +++ b/src/Adyen/Model/ConfigurationWebhooks/CapabilitySettings.php @@ -355,7 +355,7 @@ public function getAmountPerIndustry() /** * Sets amountPerIndustry * - * @param array|null $amountPerIndustry + * @param array|null $amountPerIndustry * * @return self */ @@ -379,7 +379,7 @@ public function getAuthorizedCardUsers() /** * Sets authorizedCardUsers * - * @param bool|null $authorizedCardUsers + * @param bool|null $authorizedCardUsers * * @return self */ @@ -403,7 +403,7 @@ public function getFundingSource() /** * Sets fundingSource * - * @param string[]|null $fundingSource + * @param string[]|null $fundingSource * * @return self */ @@ -436,7 +436,7 @@ public function getInterval() /** * Sets interval * - * @param string|null $interval + * @param string|null $interval * * @return self */ diff --git a/src/Adyen/Model/ConfigurationWebhooks/ObjectSerializer.php b/src/Adyen/Model/ConfigurationWebhooks/ObjectSerializer.php index 9e2833460..450c8f930 100644 --- a/src/Adyen/Model/ConfigurationWebhooks/ObjectSerializer.php +++ b/src/Adyen/Model/ConfigurationWebhooks/ObjectSerializer.php @@ -82,7 +82,7 @@ public static function sanitizeForSerialization($data, $type = null, $format = n } } } else { - foreach($data as $property => $value) { + foreach ($data as $property => $value) { $values[$property] = self::sanitizeForSerialization($value); } } @@ -118,7 +118,9 @@ public static function sanitizeFilename($filename) */ public static function sanitizeTimestamp($timestamp) { - if (!is_string($timestamp)) return $timestamp; + if (!is_string($timestamp)) { + return $timestamp; + } return preg_replace('/(:\d{2}.\d{6})\d*/', '$1', $timestamp); } diff --git a/src/Adyen/Model/DisputeWebhooks/ObjectSerializer.php b/src/Adyen/Model/DisputeWebhooks/ObjectSerializer.php index a77ea6d7b..42303fca0 100644 --- a/src/Adyen/Model/DisputeWebhooks/ObjectSerializer.php +++ b/src/Adyen/Model/DisputeWebhooks/ObjectSerializer.php @@ -82,7 +82,7 @@ public static function sanitizeForSerialization($data, $type = null, $format = n } } } else { - foreach($data as $property => $value) { + foreach ($data as $property => $value) { $values[$property] = self::sanitizeForSerialization($value); } } @@ -118,7 +118,9 @@ public static function sanitizeFilename($filename) */ public static function sanitizeTimestamp($timestamp) { - if (!is_string($timestamp)) return $timestamp; + if (!is_string($timestamp)) { + return $timestamp; + } return preg_replace('/(:\d{2}.\d{6})\d*/', '$1', $timestamp); } diff --git a/src/Adyen/Model/ManagementWebhooks/ObjectSerializer.php b/src/Adyen/Model/ManagementWebhooks/ObjectSerializer.php index 7cadc1727..17248af8e 100644 --- a/src/Adyen/Model/ManagementWebhooks/ObjectSerializer.php +++ b/src/Adyen/Model/ManagementWebhooks/ObjectSerializer.php @@ -82,7 +82,7 @@ public static function sanitizeForSerialization($data, $type = null, $format = n } } } else { - foreach($data as $property => $value) { + foreach ($data as $property => $value) { $values[$property] = self::sanitizeForSerialization($value); } } @@ -118,7 +118,9 @@ public static function sanitizeFilename($filename) */ public static function sanitizeTimestamp($timestamp) { - if (!is_string($timestamp)) return $timestamp; + if (!is_string($timestamp)) { + return $timestamp; + } return preg_replace('/(:\d{2}.\d{6})\d*/', '$1', $timestamp); } diff --git a/src/Adyen/Model/NegativeBalanceWarningWebhooks/ObjectSerializer.php b/src/Adyen/Model/NegativeBalanceWarningWebhooks/ObjectSerializer.php index e029fdb82..54a916786 100644 --- a/src/Adyen/Model/NegativeBalanceWarningWebhooks/ObjectSerializer.php +++ b/src/Adyen/Model/NegativeBalanceWarningWebhooks/ObjectSerializer.php @@ -82,7 +82,7 @@ public static function sanitizeForSerialization($data, $type = null, $format = n } } } else { - foreach($data as $property => $value) { + foreach ($data as $property => $value) { $values[$property] = self::sanitizeForSerialization($value); } } @@ -118,7 +118,9 @@ public static function sanitizeFilename($filename) */ public static function sanitizeTimestamp($timestamp) { - if (!is_string($timestamp)) return $timestamp; + if (!is_string($timestamp)) { + return $timestamp; + } return preg_replace('/(:\d{2}.\d{6})\d*/', '$1', $timestamp); } diff --git a/src/Adyen/Model/ReportWebhooks/ObjectSerializer.php b/src/Adyen/Model/ReportWebhooks/ObjectSerializer.php index c025665ac..819fa4aa9 100644 --- a/src/Adyen/Model/ReportWebhooks/ObjectSerializer.php +++ b/src/Adyen/Model/ReportWebhooks/ObjectSerializer.php @@ -82,7 +82,7 @@ public static function sanitizeForSerialization($data, $type = null, $format = n } } } else { - foreach($data as $property => $value) { + foreach ($data as $property => $value) { $values[$property] = self::sanitizeForSerialization($value); } } @@ -118,7 +118,9 @@ public static function sanitizeFilename($filename) */ public static function sanitizeTimestamp($timestamp) { - if (!is_string($timestamp)) return $timestamp; + if (!is_string($timestamp)) { + return $timestamp; + } return preg_replace('/(:\d{2}.\d{6})\d*/', '$1', $timestamp); } diff --git a/src/Adyen/Model/TokenizationWebhooks/ObjectSerializer.php b/src/Adyen/Model/TokenizationWebhooks/ObjectSerializer.php index 5bdde3cbf..d3e7abd5f 100644 --- a/src/Adyen/Model/TokenizationWebhooks/ObjectSerializer.php +++ b/src/Adyen/Model/TokenizationWebhooks/ObjectSerializer.php @@ -82,7 +82,7 @@ public static function sanitizeForSerialization($data, $type = null, $format = n } } } else { - foreach($data as $property => $value) { + foreach ($data as $property => $value) { $values[$property] = self::sanitizeForSerialization($value); } } @@ -118,7 +118,9 @@ public static function sanitizeFilename($filename) */ public static function sanitizeTimestamp($timestamp) { - if (!is_string($timestamp)) return $timestamp; + if (!is_string($timestamp)) { + return $timestamp; + } return preg_replace('/(:\d{2}.\d{6})\d*/', '$1', $timestamp); } diff --git a/src/Adyen/Model/TransactionWebhooks/ObjectSerializer.php b/src/Adyen/Model/TransactionWebhooks/ObjectSerializer.php index 1c17a3a34..e6ca71de1 100644 --- a/src/Adyen/Model/TransactionWebhooks/ObjectSerializer.php +++ b/src/Adyen/Model/TransactionWebhooks/ObjectSerializer.php @@ -82,7 +82,7 @@ public static function sanitizeForSerialization($data, $type = null, $format = n } } } else { - foreach($data as $property => $value) { + foreach ($data as $property => $value) { $values[$property] = self::sanitizeForSerialization($value); } } @@ -118,7 +118,9 @@ public static function sanitizeFilename($filename) */ public static function sanitizeTimestamp($timestamp) { - if (!is_string($timestamp)) return $timestamp; + if (!is_string($timestamp)) { + return $timestamp; + } return preg_replace('/(:\d{2}.\d{6})\d*/', '$1', $timestamp); } diff --git a/src/Adyen/Model/TransferWebhooks/ObjectSerializer.php b/src/Adyen/Model/TransferWebhooks/ObjectSerializer.php index 916ec6dd1..ba698c53f 100644 --- a/src/Adyen/Model/TransferWebhooks/ObjectSerializer.php +++ b/src/Adyen/Model/TransferWebhooks/ObjectSerializer.php @@ -82,7 +82,7 @@ public static function sanitizeForSerialization($data, $type = null, $format = n } } } else { - foreach($data as $property => $value) { + foreach ($data as $property => $value) { $values[$property] = self::sanitizeForSerialization($value); } } @@ -118,7 +118,9 @@ public static function sanitizeFilename($filename) */ public static function sanitizeTimestamp($timestamp) { - if (!is_string($timestamp)) return $timestamp; + if (!is_string($timestamp)) { + return $timestamp; + } return preg_replace('/(:\d{2}.\d{6})\d*/', '$1', $timestamp); }