From 15b638253552ce037ee4e56946a232ab2e7a8729 Mon Sep 17 00:00:00 2001 From: AdyenAutomationBot <38424300+AdyenAutomationBot@users.noreply.github.com> Date: Tue, 25 Nov 2025 09:11:06 +0000 Subject: [PATCH 1/2] [adyen-sdk-automation] automated changes --- src/Adyen/Model/AcsWebhooks/Amount.php | 4 +- .../Model/AcsWebhooks/ObjectSerializer.php | 6 +- .../BalanceWebhooks/ObjectSerializer.php | 6 +- .../Model/ConfigurationWebhooks/Amount.php | 4 +- .../ConfigurationWebhooks/BulkAddress.php | 124 ++++++++++++++++++ .../CapabilitySettings.php | 8 +- .../Model/ConfigurationWebhooks/Card.php | 7 +- .../CardConfiguration.php | 22 ++-- .../Model/ConfigurationWebhooks/Device.php | 31 +++++ .../NetworkTokenNotificationDataV2.php | 31 +++++ .../ObjectSerializer.php | 6 +- .../SweepConfigurationV2.php | 4 +- .../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 + .../NegativeBalanceWarningWebhooks/Amount.php | 4 +- .../ObjectSerializer.php | 6 +- .../Model/ReportWebhooks/ObjectSerializer.php | 6 +- .../TokenizationWebhooks/ObjectSerializer.php | 6 +- .../Model/TransactionWebhooks/Amount.php | 4 +- .../TransactionWebhooks/BankCategoryData.php | 2 +- .../TransactionWebhooks/ObjectSerializer.php | 6 +- .../TransactionWebhooks/PlatformPayment.php | 2 +- .../TransferViewCategoryData.php | 4 +- src/Adyen/Model/TransferWebhooks/Amount.php | 4 +- .../Model/TransferWebhooks/BankAccountV3.php | 43 +++++- .../TransferWebhooks/BankCategoryData.php | 2 +- .../ConfirmationTrackingData.php | 4 +- .../HKLocalAccountIdentification.php | 2 +- .../TransferWebhooks/ObjectSerializer.php | 6 +- .../TransferWebhooks/PlatformPayment.php | 2 +- .../Model/TransferWebhooks/TransferData.php | 6 +- .../TransferDataCategoryData.php | 4 +- .../Model/TransferWebhooks/TransferEvent.php | 2 + 41 files changed, 338 insertions(+), 95 deletions(-) diff --git a/src/Adyen/Model/AcsWebhooks/Amount.php b/src/Adyen/Model/AcsWebhooks/Amount.php index 6eb235519..8aafcfe4b 100644 --- a/src/Adyen/Model/AcsWebhooks/Amount.php +++ b/src/Adyen/Model/AcsWebhooks/Amount.php @@ -299,7 +299,7 @@ public function getCurrency() /** * Sets currency * - * @param string $currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). + * @param string $currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes) of the amount. * * @return self */ @@ -323,7 +323,7 @@ public function getValue() /** * Sets value * - * @param int $value The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). + * @param int $value The numeric value of the amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). * * @return self */ 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/Amount.php b/src/Adyen/Model/ConfigurationWebhooks/Amount.php index 9010d2adf..4761835a7 100644 --- a/src/Adyen/Model/ConfigurationWebhooks/Amount.php +++ b/src/Adyen/Model/ConfigurationWebhooks/Amount.php @@ -299,7 +299,7 @@ public function getCurrency() /** * Sets currency * - * @param string $currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). + * @param string $currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes) of the amount. * * @return self */ @@ -323,7 +323,7 @@ public function getValue() /** * Sets value * - * @param int $value The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). + * @param int $value The numeric value of the amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). * * @return self */ diff --git a/src/Adyen/Model/ConfigurationWebhooks/BulkAddress.php b/src/Adyen/Model/ConfigurationWebhooks/BulkAddress.php index 57bc97172..43fa20149 100644 --- a/src/Adyen/Model/ConfigurationWebhooks/BulkAddress.php +++ b/src/Adyen/Model/ConfigurationWebhooks/BulkAddress.php @@ -46,7 +46,11 @@ class BulkAddress implements ModelInterface, ArrayAccess, \JsonSerializable 'country' => 'string', 'email' => 'string', 'houseNumberOrName' => 'string', + 'line1' => 'string', + 'line2' => 'string', + 'line3' => 'string', 'mobile' => 'string', + 'name' => 'string', 'postalCode' => 'string', 'stateOrProvince' => 'string', 'street' => 'string' @@ -65,7 +69,11 @@ class BulkAddress implements ModelInterface, ArrayAccess, \JsonSerializable 'country' => null, 'email' => null, 'houseNumberOrName' => null, + 'line1' => null, + 'line2' => null, + 'line3' => null, 'mobile' => null, + 'name' => null, 'postalCode' => null, 'stateOrProvince' => null, 'street' => null @@ -82,7 +90,11 @@ class BulkAddress implements ModelInterface, ArrayAccess, \JsonSerializable 'country' => false, 'email' => false, 'houseNumberOrName' => false, + 'line1' => false, + 'line2' => false, + 'line3' => false, 'mobile' => false, + 'name' => false, 'postalCode' => false, 'stateOrProvince' => false, 'street' => false @@ -179,7 +191,11 @@ public function isNullableSetToNull(string $property): bool 'country' => 'country', 'email' => 'email', 'houseNumberOrName' => 'houseNumberOrName', + 'line1' => 'line1', + 'line2' => 'line2', + 'line3' => 'line3', 'mobile' => 'mobile', + 'name' => 'name', 'postalCode' => 'postalCode', 'stateOrProvince' => 'stateOrProvince', 'street' => 'street' @@ -196,7 +212,11 @@ public function isNullableSetToNull(string $property): bool 'country' => 'setCountry', 'email' => 'setEmail', 'houseNumberOrName' => 'setHouseNumberOrName', + 'line1' => 'setLine1', + 'line2' => 'setLine2', + 'line3' => 'setLine3', 'mobile' => 'setMobile', + 'name' => 'setName', 'postalCode' => 'setPostalCode', 'stateOrProvince' => 'setStateOrProvince', 'street' => 'setStreet' @@ -213,7 +233,11 @@ public function isNullableSetToNull(string $property): bool 'country' => 'getCountry', 'email' => 'getEmail', 'houseNumberOrName' => 'getHouseNumberOrName', + 'line1' => 'getLine1', + 'line2' => 'getLine2', + 'line3' => 'getLine3', 'mobile' => 'getMobile', + 'name' => 'getName', 'postalCode' => 'getPostalCode', 'stateOrProvince' => 'getStateOrProvince', 'street' => 'getStreet' @@ -281,7 +305,11 @@ 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('name', $data ?? [], null); $this->setIfExists('postalCode', $data ?? [], null); $this->setIfExists('stateOrProvince', $data ?? [], null); $this->setIfExists('street', $data ?? [], null); @@ -452,6 +480,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 * @@ -476,6 +576,30 @@ public function setMobile($mobile) return $this; } + /** + * Gets name + * + * @return string|null + */ + public function getName() + { + return $this->container['name']; + } + + /** + * Sets name + * + * @param string|null $name The recipient’s name (person or contact), for example ‘John Doe’. + * + * @return self + */ + public function setName($name) + { + $this->container['name'] = $name; + + return $this; + } + /** * Gets postalCode * 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/Card.php b/src/Adyen/Model/ConfigurationWebhooks/Card.php index 3efd3fb23..8f8a66eee 100644 --- a/src/Adyen/Model/ConfigurationWebhooks/Card.php +++ b/src/Adyen/Model/ConfigurationWebhooks/Card.php @@ -386,9 +386,6 @@ public function listInvalidProperties() ); } - if ($this->container['number'] === null) { - $invalidProperties[] = "'number' can't be null"; - } return $invalidProperties; } @@ -681,7 +678,7 @@ public function setLastFour($lastFour) /** * Gets number * - * @return string + * @return string|null */ public function getNumber() { @@ -691,7 +688,7 @@ public function getNumber() /** * Sets number * - * @param string $number The primary account number (PAN) of the card. > The PAN is masked by default and returned only for single-use virtual cards. + * @param string|null $number The primary account number (PAN) of the card. > The PAN is masked by default and returned only for single-use virtual cards. * * @return self */ diff --git a/src/Adyen/Model/ConfigurationWebhooks/CardConfiguration.php b/src/Adyen/Model/ConfigurationWebhooks/CardConfiguration.php index 950260a09..f6b78dbe6 100644 --- a/src/Adyen/Model/ConfigurationWebhooks/CardConfiguration.php +++ b/src/Adyen/Model/ConfigurationWebhooks/CardConfiguration.php @@ -380,7 +380,7 @@ public function getActivation() /** * Sets activation * - * @param string|null $activation Overrides the activation label design ID defined in the `configurationProfileId`. The activation label is attached to the card and contains the activation instructions. + * @param string|null $activation The activation label attached to the card that contains the activation instructions. This field overrides the activation label design ID defined in the card configuration profile. * * @return self */ @@ -452,7 +452,7 @@ public function getCardImageId() /** * Sets cardImageId * - * @param string|null $cardImageId The ID of the card image. This is the image that will be printed on the full front of the card. + * @param string|null $cardImageId The unique identifier of the card image. This image is printed on the full front of the card. * * @return self */ @@ -476,7 +476,7 @@ public function getCarrier() /** * Sets carrier * - * @param string|null $carrier Overrides the carrier design ID defined in the `configurationProfileId`. The carrier is the letter or packaging to which the card is attached. + * @param string|null $carrier The letter or packaging to which the card is attached. This field overrides the carrier design ID defined in the card configuration profile. * * @return self */ @@ -500,7 +500,7 @@ public function getCarrierImageId() /** * Sets carrierImageId * - * @param string|null $carrierImageId The ID of the carrier image. This is the image that will printed on the letter to which the card is attached. + * @param string|null $carrierImageId The unique identifier of the carrier image. This image is printed on the letter to which the card is attached. * * @return self */ @@ -524,7 +524,7 @@ public function getConfigurationProfileId() /** * Sets configurationProfileId * - * @param string $configurationProfileId The ID of the card configuration profile that contains the settings of the card. For example, the envelope and PIN mailer designs or the logistics company handling the shipment. All the settings in the profile are applied to the card, unless you provide other fields to override them. For example, send the `shipmentMethod` to override the logistics company defined in the card configuration profile. + * @param string $configurationProfileId The unique identifier of the card configuration profile that contains the settings that are applied to the card. For example, the envelope and PIN mailer designs or the logistics company handling the shipment. You can override some of the existing settings in the configuration profile by providing the corresponding fields in the `configuration` object. For example, send the `shipmentMethod` to override the logistics company defined in the card configuration profile. * * @return self */ @@ -548,7 +548,7 @@ public function getCurrency() /** * Sets currency * - * @param string|null $currency The three-letter [ISO-4217](https://en.wikipedia.org/wiki/ISO_4217) currency code of the card. For example, **EUR**. + * @param string|null $currency The three-letter [ISO-4217](https://en.wikipedia.org/wiki/ISO_4217) currency code of the card. For example, **EUR**. This field overrides the existing currency setting on the card configuration profile. * * @return self */ @@ -572,7 +572,7 @@ public function getEnvelope() /** * Sets envelope * - * @param string|null $envelope Overrides the envelope design ID defined in the `configurationProfileId`. + * @param string|null $envelope Overrides the envelope design ID defined in the card configuration profile. * * @return self */ @@ -596,7 +596,7 @@ public function getInsert() /** * Sets insert * - * @param string|null $insert Overrides the insert design ID defined in the `configurationProfileId`. An insert is any additional material, such as marketing materials, that are shipped together with the card. + * @param string|null $insert Any additional material, such as marketing material, that is shipped together with the card. This field overrides the insert design ID defined in the card configuration profile. * * @return self */ @@ -644,7 +644,7 @@ public function getLogoImageId() /** * Sets logoImageId * - * @param string|null $logoImageId The ID of the logo image. This is the image that will be printed on the partial front of the card, such as a logo on the upper right corner. + * @param string|null $logoImageId The unique identifier of the logo image. This image is printed on the partial front of the card, for example, a logo on the upper right corner. * * @return self */ @@ -668,7 +668,7 @@ public function getPinMailer() /** * Sets pinMailer * - * @param string|null $pinMailer Overrides the PIN mailer design ID defined in the `configurationProfileId`. The PIN mailer is the letter on which the PIN is printed. + * @param string|null $pinMailer The letter on which the PIN of the card is printed. This field overrides the PIN mailer design ID defined in the card configuration profile. * * @return self */ @@ -692,7 +692,7 @@ public function getShipmentMethod() /** * Sets shipmentMethod * - * @param string|null $shipmentMethod Overrides the logistics company defined in the `configurationProfileId`. + * @param string|null $shipmentMethod The logistics company that ships the card. This field overrides the logistics company defined in the card configuration profile. * * @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/SweepConfigurationV2.php b/src/Adyen/Model/ConfigurationWebhooks/SweepConfigurationV2.php index 47cfe9ffe..9c0a7076b 100644 --- a/src/Adyen/Model/ConfigurationWebhooks/SweepConfigurationV2.php +++ b/src/Adyen/Model/ConfigurationWebhooks/SweepConfigurationV2.php @@ -334,6 +334,7 @@ public function getModelName() public const REASON_REFUSED_BY_CUSTOMER = 'refusedByCustomer'; public const REASON_ROUTE_NOT_FOUND = 'routeNotFound'; public const REASON_SCA_FAILED = 'scaFailed'; + public const REASON_SCHEME_ADVICE = 'schemeAdvice'; public const REASON_TRANSFER_INSTRUMENT_DOES_NOT_EXIST = 'transferInstrumentDoesNotExist'; public const REASON_UNKNOWN = 'unknown'; public const STATUS_ACTIVE = 'active'; @@ -401,6 +402,7 @@ public function getReasonAllowableValues() self::REASON_REFUSED_BY_CUSTOMER, self::REASON_ROUTE_NOT_FOUND, self::REASON_SCA_FAILED, + self::REASON_SCHEME_ADVICE, self::REASON_TRANSFER_INSTRUMENT_DOES_NOT_EXIST, self::REASON_UNKNOWN, ]; @@ -695,7 +697,7 @@ public function getPriorities() /** * Sets priorities * - * @param string[]|null $priorities The list of priorities for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. You can provide multiple priorities, ordered by your preference. Adyen will try to pay out using the priorities in the given order. If the first priority is not currently supported or enabled for your platform, the system will try the next one, and so on. The request will be accepted as long as **at least one** of the provided priorities is valid (i.e., supported by Adyen and activated for your platform). For example, if you provide `[\"wire\",\"regular\"]`, and `wire` is not supported but `regular` is, the request will still be accepted and processed. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers within the United States and in [SEPA locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). Set `category` to **bank**. For more details, see optional priorities setup for [marketplaces](https://docs.adyen.com/marketplaces/payout-to-users/scheduled-payouts#optional-priorities-setup) or [platforms](https://docs.adyen.com/platforms/payout-to-users/scheduled-payouts#optional-priorities-setup). + * @param string[]|null $priorities The list of priorities for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. You can provide multiple priorities, ordered by your preference. Adyen will try to pay out using the priorities in the given order. If the first priority is not currently supported or enabled for your platform, the system will try the next one, and so on. The request will be accepted as long as **at least one** of the provided priorities is valid (i.e., supported by Adyen and activated for your platform). For example, if you provide `[\"wire\",\"regular\"]`, and `wire` is not supported but `regular` is, the request will still be accepted and processed. Possible values: * **regular**: For normal, low-value transactions. * **fast**: A faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: The fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: For instant funds transfers within the United States and in [SEPA locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: For high-value transfers to a recipient in a different country. * **internal**: For transfers to an Adyen-issued business bank account (by bank account number/IBAN). Set `category` to **bank**. For more details, see optional priorities setup for [marketplaces](https://docs.adyen.com/marketplaces/payout-to-users/scheduled-payouts#optional-priorities-setup) or [platforms](https://docs.adyen.com/platforms/payout-to-users/scheduled-payouts#optional-priorities-setup). * * @return self */ 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/Amount.php b/src/Adyen/Model/NegativeBalanceWarningWebhooks/Amount.php index ea2fa4e7f..9e9c495f4 100644 --- a/src/Adyen/Model/NegativeBalanceWarningWebhooks/Amount.php +++ b/src/Adyen/Model/NegativeBalanceWarningWebhooks/Amount.php @@ -299,7 +299,7 @@ public function getCurrency() /** * Sets currency * - * @param string $currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). + * @param string $currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes) of the amount. * * @return self */ @@ -323,7 +323,7 @@ public function getValue() /** * Sets value * - * @param int $value The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). + * @param int $value The numeric value of the amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). * * @return self */ 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/Amount.php b/src/Adyen/Model/TransactionWebhooks/Amount.php index b6cc6e6d9..3b8179d0c 100644 --- a/src/Adyen/Model/TransactionWebhooks/Amount.php +++ b/src/Adyen/Model/TransactionWebhooks/Amount.php @@ -299,7 +299,7 @@ public function getCurrency() /** * Sets currency * - * @param string $currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). + * @param string $currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes) of the amount. * * @return self */ @@ -323,7 +323,7 @@ public function getValue() /** * Sets value * - * @param int $value The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). + * @param int $value The numeric value of the amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). * * @return self */ diff --git a/src/Adyen/Model/TransactionWebhooks/BankCategoryData.php b/src/Adyen/Model/TransactionWebhooks/BankCategoryData.php index 31d4b0a52..81d39f6b0 100644 --- a/src/Adyen/Model/TransactionWebhooks/BankCategoryData.php +++ b/src/Adyen/Model/TransactionWebhooks/BankCategoryData.php @@ -345,7 +345,7 @@ public function getPriority() /** * Sets priority * - * @param string|null $priority The priority for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. Required for transfers with `category` **bank**. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers within the United States and in [SEPA locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). + * @param string|null $priority The priority for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. Required for transfers with `category` **bank**. Possible values: * **regular**: For normal, low-value transactions. * **fast**: A faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: The fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: For instant funds transfers within the United States and in [SEPA locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: For high-value transfers to a recipient in a different country. * **internal**: For transfers to an Adyen-issued business bank account (by bank account number/IBAN). * * @return self */ 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..96a0b1265 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..c6afe5dbd 100644 --- a/src/Adyen/Model/TransactionWebhooks/TransferViewCategoryData.php +++ b/src/Adyen/Model/TransactionWebhooks/TransferViewCategoryData.php @@ -390,7 +390,7 @@ public function getPriority() /** * Sets priority * - * @param string|null $priority The priority for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. Required for transfers with `category` **bank**. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers within the United States and in [SEPA locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). + * @param string|null $priority The priority for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. Required for transfers with `category` **bank**. Possible values: * **regular**: For normal, low-value transactions. * **fast**: A faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: The fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: For instant funds transfers within the United States and in [SEPA locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: For high-value transfers to a recipient in a different country. * **internal**: For transfers to an Adyen-issued business bank account (by bank account number/IBAN). * * @return self */ @@ -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/Amount.php b/src/Adyen/Model/TransferWebhooks/Amount.php index 0cb50a466..2d35a3cee 100644 --- a/src/Adyen/Model/TransferWebhooks/Amount.php +++ b/src/Adyen/Model/TransferWebhooks/Amount.php @@ -299,7 +299,7 @@ public function getCurrency() /** * Sets currency * - * @param string $currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). + * @param string $currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes) of the amount. * * @return self */ @@ -323,7 +323,7 @@ public function getValue() /** * Sets value * - * @param int $value The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). + * @param int $value The numeric value of the amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). * * @return self */ diff --git a/src/Adyen/Model/TransferWebhooks/BankAccountV3.php b/src/Adyen/Model/TransferWebhooks/BankAccountV3.php index 1621563f5..eda73ca40 100644 --- a/src/Adyen/Model/TransferWebhooks/BankAccountV3.php +++ b/src/Adyen/Model/TransferWebhooks/BankAccountV3.php @@ -42,7 +42,8 @@ class BankAccountV3 implements ModelInterface, ArrayAccess, \JsonSerializable */ protected static $openAPITypes = [ 'accountHolder' => '\Adyen\Model\TransferWebhooks\PartyIdentification', - 'accountIdentification' => '\Adyen\Model\TransferWebhooks\BankAccountV3AccountIdentification' + 'accountIdentification' => '\Adyen\Model\TransferWebhooks\BankAccountV3AccountIdentification', + 'storedPaymentMethodId' => 'string' ]; /** @@ -54,7 +55,8 @@ class BankAccountV3 implements ModelInterface, ArrayAccess, \JsonSerializable */ protected static $openAPIFormats = [ 'accountHolder' => null, - 'accountIdentification' => null + 'accountIdentification' => null, + 'storedPaymentMethodId' => null ]; /** @@ -64,7 +66,8 @@ class BankAccountV3 implements ModelInterface, ArrayAccess, \JsonSerializable */ protected static $openAPINullables = [ 'accountHolder' => false, - 'accountIdentification' => false + 'accountIdentification' => false, + 'storedPaymentMethodId' => false ]; /** @@ -154,7 +157,8 @@ public function isNullableSetToNull(string $property): bool */ protected static $attributeMap = [ 'accountHolder' => 'accountHolder', - 'accountIdentification' => 'accountIdentification' + 'accountIdentification' => 'accountIdentification', + 'storedPaymentMethodId' => 'storedPaymentMethodId' ]; /** @@ -164,7 +168,8 @@ public function isNullableSetToNull(string $property): bool */ protected static $setters = [ 'accountHolder' => 'setAccountHolder', - 'accountIdentification' => 'setAccountIdentification' + 'accountIdentification' => 'setAccountIdentification', + 'storedPaymentMethodId' => 'setStoredPaymentMethodId' ]; /** @@ -174,7 +179,8 @@ public function isNullableSetToNull(string $property): bool */ protected static $getters = [ 'accountHolder' => 'getAccountHolder', - 'accountIdentification' => 'getAccountIdentification' + 'accountIdentification' => 'getAccountIdentification', + 'storedPaymentMethodId' => 'getStoredPaymentMethodId' ]; /** @@ -236,6 +242,7 @@ public function __construct(?array $data = null) { $this->setIfExists('accountHolder', $data ?? [], null); $this->setIfExists('accountIdentification', $data ?? [], null); + $this->setIfExists('storedPaymentMethodId', $data ?? [], null); } /** @@ -333,6 +340,30 @@ public function setAccountIdentification($accountIdentification) return $this; } + + /** + * Gets storedPaymentMethodId + * + * @return string|null + */ + public function getStoredPaymentMethodId() + { + return $this->container['storedPaymentMethodId']; + } + + /** + * Sets storedPaymentMethodId + * + * @param string|null $storedPaymentMethodId The unique token that identifies the stored bank account details of the counterparty for a payout. + * + * @return self + */ + public function setStoredPaymentMethodId($storedPaymentMethodId) + { + $this->container['storedPaymentMethodId'] = $storedPaymentMethodId; + + return $this; + } /** * Returns true if offset exists. False otherwise. * diff --git a/src/Adyen/Model/TransferWebhooks/BankCategoryData.php b/src/Adyen/Model/TransferWebhooks/BankCategoryData.php index 3d66774a2..012691a80 100644 --- a/src/Adyen/Model/TransferWebhooks/BankCategoryData.php +++ b/src/Adyen/Model/TransferWebhooks/BankCategoryData.php @@ -345,7 +345,7 @@ public function getPriority() /** * Sets priority * - * @param string|null $priority The priority for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. Required for transfers with `category` **bank**. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers within the United States and in [SEPA locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). + * @param string|null $priority The priority for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. Required for transfers with `category` **bank**. Possible values: * **regular**: For normal, low-value transactions. * **fast**: A faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: The fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: For instant funds transfers within the United States and in [SEPA locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: For high-value transfers to a recipient in a different country. * **internal**: For transfers to an Adyen-issued business bank account (by bank account number/IBAN). * * @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..762abd103 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..ea71390e9 100644 --- a/src/Adyen/Model/TransferWebhooks/TransferData.php +++ b/src/Adyen/Model/TransferWebhooks/TransferData.php @@ -411,6 +411,7 @@ public function getModelName() public const REASON_REFUSED_BY_CUSTOMER = 'refusedByCustomer'; public const REASON_ROUTE_NOT_FOUND = 'routeNotFound'; public const REASON_SCA_FAILED = 'scaFailed'; + public const REASON_SCHEME_ADVICE = 'schemeAdvice'; public const REASON_TRANSFER_INSTRUMENT_DOES_NOT_EXIST = 'transferInstrumentDoesNotExist'; public const REASON_UNKNOWN = 'unknown'; public const STATUS_APPROVAL_PENDING = 'approvalPending'; @@ -578,6 +579,7 @@ public function getReasonAllowableValues() self::REASON_REFUSED_BY_CUSTOMER, self::REASON_ROUTE_NOT_FOUND, self::REASON_SCA_FAILED, + self::REASON_SCHEME_ADVICE, self::REASON_TRANSFER_INSTRUMENT_DOES_NOT_EXIST, self::REASON_UNKNOWN, ]; @@ -982,7 +984,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#responses-200-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#responses-200-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 */ @@ -1470,7 +1472,7 @@ public function getStatus() /** * Sets status * - * @param string $status The result of the transfer. For example: - **received**: an outgoing transfer request is created. - **authorised**: the transfer request is authorized and the funds are reserved. - **booked**: the funds are deducted from your user's balance account. - **failed**: the transfer is rejected by the counterparty's bank. - **returned**: the transfer is returned by the counterparty's bank. + * @param string $status The result of the transfer. For example: - **received**: an outgoing transfer request is created. - **refused**: the transfer request is rejected by Adyen for one of the following reasons: - Lack of funds in the balance account. - Transfer limit exceeded. - Transaction rule requirements violated. - **authorised**: the transfer request is authorized and the funds are reserved. - **booked**: the funds are deducted from your user's balance account. - **failed**: the transfer is rejected by the counterparty's bank. - **returned**: the transfer is returned by the counterparty's bank. * * @return self */ diff --git a/src/Adyen/Model/TransferWebhooks/TransferDataCategoryData.php b/src/Adyen/Model/TransferWebhooks/TransferDataCategoryData.php index b02419b2b..e975a1f7f 100644 --- a/src/Adyen/Model/TransferWebhooks/TransferDataCategoryData.php +++ b/src/Adyen/Model/TransferWebhooks/TransferDataCategoryData.php @@ -390,7 +390,7 @@ public function getPriority() /** * Sets priority * - * @param string|null $priority The priority for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. Required for transfers with `category` **bank**. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers within the United States and in [SEPA locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). + * @param string|null $priority The priority for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. Required for transfers with `category` **bank**. Possible values: * **regular**: For normal, low-value transactions. * **fast**: A faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: The fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: For instant funds transfers within the United States and in [SEPA locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: For high-value transfers to a recipient in a different country. * **internal**: For transfers to an Adyen-issued business bank account (by bank account number/IBAN). * * @return self */ @@ -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/TransferEvent.php b/src/Adyen/Model/TransferWebhooks/TransferEvent.php index 4dc29e263..0283f2ce6 100644 --- a/src/Adyen/Model/TransferWebhooks/TransferEvent.php +++ b/src/Adyen/Model/TransferWebhooks/TransferEvent.php @@ -337,6 +337,7 @@ public function getModelName() public const REASON_REFUSED_BY_CUSTOMER = 'refusedByCustomer'; public const REASON_ROUTE_NOT_FOUND = 'routeNotFound'; public const REASON_SCA_FAILED = 'scaFailed'; + public const REASON_SCHEME_ADVICE = 'schemeAdvice'; public const REASON_TRANSFER_INSTRUMENT_DOES_NOT_EXIST = 'transferInstrumentDoesNotExist'; public const REASON_UNKNOWN = 'unknown'; public const STATUS_APPROVAL_PENDING = 'approvalPending'; @@ -440,6 +441,7 @@ public function getReasonAllowableValues() self::REASON_REFUSED_BY_CUSTOMER, self::REASON_ROUTE_NOT_FOUND, self::REASON_SCA_FAILED, + self::REASON_SCHEME_ADVICE, self::REASON_TRANSFER_INSTRUMENT_DOES_NOT_EXIST, self::REASON_UNKNOWN, ]; From 723f3fe15bbf2f638534c5b6ca522a49dff3ef31 Mon Sep 17 00:00:00 2001 From: AdyenAutomationBot Date: Tue, 25 Nov 2025 09:14:27 +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); }