From d666c79a918f4bd373fae1a5e5d725f0477b172e Mon Sep 17 00:00:00 2001 From: AdyenAutomationBot <38424300+AdyenAutomationBot@users.noreply.github.com> Date: Wed, 13 Aug 2025 10:49:50 +0000 Subject: [PATCH 1/2] [adyen-sdk-automation] automated changes --- src/Adyen/Model/BinLookup/ObjectSerializer.php | 6 ++---- src/Adyen/Model/Checkout/CheckoutPaymentMethod.php | 4 ++-- .../Model/Checkout/CreateCheckoutSessionRequest.php | 2 +- .../Model/Checkout/CreateCheckoutSessionResponse.php | 2 +- src/Adyen/Model/Checkout/DonationPaymentRequest.php | 2 +- src/Adyen/Model/Checkout/MbwayDetails.php | 4 ++-- src/Adyen/Model/Checkout/ObjectSerializer.php | 6 ++---- src/Adyen/Model/Checkout/PayToPaymentMethod.php | 1 - src/Adyen/Model/Checkout/PaymentLinkRequest.php | 2 +- src/Adyen/Model/Checkout/PaymentLinkResponse.php | 2 +- src/Adyen/Model/Checkout/PaymentRequest.php | 2 +- src/Adyen/Model/Checkout/Result.php | 2 +- src/Adyen/Model/Checkout/UPIPaymentMethod.php | 1 - src/Adyen/Model/Checkout/VippsDetails.php | 2 +- src/Adyen/Model/Disputes/ObjectSerializer.php | 6 ++---- src/Adyen/Model/Payments/ObjectSerializer.php | 6 ++---- src/Adyen/Model/PaymentsApp/ObjectSerializer.php | 6 ++---- src/Adyen/Model/Payout/ObjectSerializer.php | 6 ++---- src/Adyen/Model/PosMobile/ObjectSerializer.php | 6 ++---- src/Adyen/Model/Recurring/ObjectSerializer.php | 6 ++---- src/Adyen/Model/StoredValue/ObjectSerializer.php | 6 ++---- src/Adyen/Service/Checkout/RecurringApi.php | 3 ++- src/Adyen/Service/Checkout/UtilityApi.php | 2 +- src/Adyen/Service/RecurringApi.php | 12 ++++++------ 24 files changed, 39 insertions(+), 58 deletions(-) diff --git a/src/Adyen/Model/BinLookup/ObjectSerializer.php b/src/Adyen/Model/BinLookup/ObjectSerializer.php index 67b57c23b..d9c9dec53 100644 --- a/src/Adyen/Model/BinLookup/ObjectSerializer.php +++ b/src/Adyen/Model/BinLookup/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/Checkout/CheckoutPaymentMethod.php b/src/Adyen/Model/Checkout/CheckoutPaymentMethod.php index 269d51815..4dd2ab851 100644 --- a/src/Adyen/Model/Checkout/CheckoutPaymentMethod.php +++ b/src/Adyen/Model/Checkout/CheckoutPaymentMethod.php @@ -2070,7 +2070,7 @@ public function getShopperEmail() /** * Sets shopperEmail * - * @param string $shopperEmail + * @param string $shopperEmail * * @return self */ @@ -2094,7 +2094,7 @@ public function getTelephoneNumber() /** * Sets telephoneNumber * - * @param string $telephoneNumber + * @param string $telephoneNumber * * @return self */ diff --git a/src/Adyen/Model/Checkout/CreateCheckoutSessionRequest.php b/src/Adyen/Model/Checkout/CreateCheckoutSessionRequest.php index 535be260c..7e117fa74 100644 --- a/src/Adyen/Model/Checkout/CreateCheckoutSessionRequest.php +++ b/src/Adyen/Model/Checkout/CreateCheckoutSessionRequest.php @@ -1430,7 +1430,7 @@ public function getLineItems() /** * Sets lineItems * - * @param \Adyen\Model\Checkout\LineItem[]|null $lineItems Price and product information about the purchased items, to be included on the invoice sent to the shopper. > This field is required for 3x 4x Oney, Affirm, Afterpay, Clearpay, Klarna, Ratepay, Riverty, and Zip. + * @param \Adyen\Model\Checkout\LineItem[]|null $lineItems Price and product information about the purchased items, to be included on the invoice sent to the shopper. > This field is required for 3x 4x Oney, Affirm, Afterpay, Clearpay, Klarna, Ratepay, and Riverty. * * @return self */ diff --git a/src/Adyen/Model/Checkout/CreateCheckoutSessionResponse.php b/src/Adyen/Model/Checkout/CreateCheckoutSessionResponse.php index 3bae1a23c..21c2063c6 100644 --- a/src/Adyen/Model/Checkout/CreateCheckoutSessionResponse.php +++ b/src/Adyen/Model/Checkout/CreateCheckoutSessionResponse.php @@ -1481,7 +1481,7 @@ public function getLineItems() /** * Sets lineItems * - * @param \Adyen\Model\Checkout\LineItem[]|null $lineItems Price and product information about the purchased items, to be included on the invoice sent to the shopper. > This field is required for 3x 4x Oney, Affirm, Afterpay, Clearpay, Klarna, Ratepay, Riverty, and Zip. + * @param \Adyen\Model\Checkout\LineItem[]|null $lineItems Price and product information about the purchased items, to be included on the invoice sent to the shopper. > This field is required for 3x 4x Oney, Affirm, Afterpay, Clearpay, Klarna, Ratepay, and Riverty. * * @return self */ diff --git a/src/Adyen/Model/Checkout/DonationPaymentRequest.php b/src/Adyen/Model/Checkout/DonationPaymentRequest.php index 502a04a1a..d018f3308 100644 --- a/src/Adyen/Model/Checkout/DonationPaymentRequest.php +++ b/src/Adyen/Model/Checkout/DonationPaymentRequest.php @@ -1133,7 +1133,7 @@ public function getLineItems() /** * Sets lineItems * - * @param \Adyen\Model\Checkout\LineItem[]|null $lineItems Price and product information about the purchased items, to be included on the invoice sent to the shopper. > This field is required for 3x 4x Oney, Affirm, Afterpay, Clearpay, Klarna, Ratepay, Riverty, and Zip. + * @param \Adyen\Model\Checkout\LineItem[]|null $lineItems Price and product information about the purchased items, to be included on the invoice sent to the shopper. > This field is required for 3x 4x Oney, Affirm, Afterpay, Clearpay, Klarna, Ratepay, and Riverty. * * @return self */ diff --git a/src/Adyen/Model/Checkout/MbwayDetails.php b/src/Adyen/Model/Checkout/MbwayDetails.php index 9f8c4c83c..a60aa9239 100644 --- a/src/Adyen/Model/Checkout/MbwayDetails.php +++ b/src/Adyen/Model/Checkout/MbwayDetails.php @@ -358,7 +358,7 @@ public function getShopperEmail() /** * Sets shopperEmail * - * @param string $shopperEmail + * @param string $shopperEmail * * @return self */ @@ -382,7 +382,7 @@ public function getTelephoneNumber() /** * Sets telephoneNumber * - * @param string $telephoneNumber + * @param string $telephoneNumber * * @return self */ diff --git a/src/Adyen/Model/Checkout/ObjectSerializer.php b/src/Adyen/Model/Checkout/ObjectSerializer.php index c9a8102b9..1e8e6df61 100644 --- a/src/Adyen/Model/Checkout/ObjectSerializer.php +++ b/src/Adyen/Model/Checkout/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/Checkout/PayToPaymentMethod.php b/src/Adyen/Model/Checkout/PayToPaymentMethod.php index efd654a37..b2ff170fa 100644 --- a/src/Adyen/Model/Checkout/PayToPaymentMethod.php +++ b/src/Adyen/Model/Checkout/PayToPaymentMethod.php @@ -14,7 +14,6 @@ namespace Adyen\Model\Checkout; - use Adyen\Model\Checkout\ObjectSerializer; /** diff --git a/src/Adyen/Model/Checkout/PaymentLinkRequest.php b/src/Adyen/Model/Checkout/PaymentLinkRequest.php index c161d193d..efca52518 100644 --- a/src/Adyen/Model/Checkout/PaymentLinkRequest.php +++ b/src/Adyen/Model/Checkout/PaymentLinkRequest.php @@ -1012,7 +1012,7 @@ public function getLineItems() /** * Sets lineItems * - * @param \Adyen\Model\Checkout\LineItem[]|null $lineItems Price and product information about the purchased items, to be included on the invoice sent to the shopper. This parameter is required for open invoice (_buy now, pay later_) payment methods such Afterpay, Clearpay, Klarna, RatePay, Riverty, and Zip. + * @param \Adyen\Model\Checkout\LineItem[]|null $lineItems Price and product information about the purchased items, to be included on the invoice sent to the shopper. > This field is required for 3x 4x Oney, Affirm, Afterpay, Clearpay, Klarna, Ratepay, and Riverty. * * @return self */ diff --git a/src/Adyen/Model/Checkout/PaymentLinkResponse.php b/src/Adyen/Model/Checkout/PaymentLinkResponse.php index 5742cdbf0..d55f71763 100644 --- a/src/Adyen/Model/Checkout/PaymentLinkResponse.php +++ b/src/Adyen/Model/Checkout/PaymentLinkResponse.php @@ -1102,7 +1102,7 @@ public function getLineItems() /** * Sets lineItems * - * @param \Adyen\Model\Checkout\LineItem[]|null $lineItems Price and product information about the purchased items, to be included on the invoice sent to the shopper. This parameter is required for open invoice (_buy now, pay later_) payment methods such Afterpay, Clearpay, Klarna, RatePay, Riverty, and Zip. + * @param \Adyen\Model\Checkout\LineItem[]|null $lineItems Price and product information about the purchased items, to be included on the invoice sent to the shopper. > This field is required for 3x 4x Oney, Affirm, Afterpay, Clearpay, Klarna, Ratepay, and Riverty. * * @return self */ diff --git a/src/Adyen/Model/Checkout/PaymentRequest.php b/src/Adyen/Model/Checkout/PaymentRequest.php index cfbc74c5c..f535fbaef 100644 --- a/src/Adyen/Model/Checkout/PaymentRequest.php +++ b/src/Adyen/Model/Checkout/PaymentRequest.php @@ -1701,7 +1701,7 @@ public function getLineItems() /** * Sets lineItems * - * @param \Adyen\Model\Checkout\LineItem[]|null $lineItems Price and product information about the purchased items, to be included on the invoice sent to the shopper. > This field is required for 3x 4x Oney, Affirm, Afterpay, Clearpay, Klarna, Ratepay, Riverty, and Zip. + * @param \Adyen\Model\Checkout\LineItem[]|null $lineItems Price and product information about the purchased items, to be included on the invoice sent to the shopper. > This field is required for 3x 4x Oney, Affirm, Afterpay, Clearpay, Klarna, Ratepay, and Riverty. * * @return self */ diff --git a/src/Adyen/Model/Checkout/Result.php b/src/Adyen/Model/Checkout/Result.php index f409e9302..6dd17f86e 100644 --- a/src/Adyen/Model/Checkout/Result.php +++ b/src/Adyen/Model/Checkout/Result.php @@ -14,7 +14,6 @@ namespace Adyen\Model\Checkout; - use Adyen\Model\Checkout\ObjectSerializer; /** @@ -46,3 +45,4 @@ public static function getAllowableEnumValues() ]; } } + diff --git a/src/Adyen/Model/Checkout/UPIPaymentMethod.php b/src/Adyen/Model/Checkout/UPIPaymentMethod.php index 785ca65d6..7ce446609 100644 --- a/src/Adyen/Model/Checkout/UPIPaymentMethod.php +++ b/src/Adyen/Model/Checkout/UPIPaymentMethod.php @@ -14,7 +14,6 @@ namespace Adyen\Model\Checkout; - use Adyen\Model\Checkout\ObjectSerializer; /** diff --git a/src/Adyen/Model/Checkout/VippsDetails.php b/src/Adyen/Model/Checkout/VippsDetails.php index cc3fcd8e9..9fd828745 100644 --- a/src/Adyen/Model/Checkout/VippsDetails.php +++ b/src/Adyen/Model/Checkout/VippsDetails.php @@ -412,7 +412,7 @@ public function getTelephoneNumber() /** * Sets telephoneNumber * - * @param string $telephoneNumber + * @param string $telephoneNumber * * @return self */ diff --git a/src/Adyen/Model/Disputes/ObjectSerializer.php b/src/Adyen/Model/Disputes/ObjectSerializer.php index d77f1730a..ec6232593 100644 --- a/src/Adyen/Model/Disputes/ObjectSerializer.php +++ b/src/Adyen/Model/Disputes/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/Payments/ObjectSerializer.php b/src/Adyen/Model/Payments/ObjectSerializer.php index 7938941f0..13446888e 100644 --- a/src/Adyen/Model/Payments/ObjectSerializer.php +++ b/src/Adyen/Model/Payments/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/PaymentsApp/ObjectSerializer.php b/src/Adyen/Model/PaymentsApp/ObjectSerializer.php index a9aae963f..9f9959282 100644 --- a/src/Adyen/Model/PaymentsApp/ObjectSerializer.php +++ b/src/Adyen/Model/PaymentsApp/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/Payout/ObjectSerializer.php b/src/Adyen/Model/Payout/ObjectSerializer.php index 1f3961622..96e192c0c 100644 --- a/src/Adyen/Model/Payout/ObjectSerializer.php +++ b/src/Adyen/Model/Payout/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/PosMobile/ObjectSerializer.php b/src/Adyen/Model/PosMobile/ObjectSerializer.php index cf8a85eb6..6ed79921b 100644 --- a/src/Adyen/Model/PosMobile/ObjectSerializer.php +++ b/src/Adyen/Model/PosMobile/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/Recurring/ObjectSerializer.php b/src/Adyen/Model/Recurring/ObjectSerializer.php index 50f6dc097..ad9f78192 100644 --- a/src/Adyen/Model/Recurring/ObjectSerializer.php +++ b/src/Adyen/Model/Recurring/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/StoredValue/ObjectSerializer.php b/src/Adyen/Model/StoredValue/ObjectSerializer.php index 1bf61977b..ffd02efdc 100644 --- a/src/Adyen/Model/StoredValue/ObjectSerializer.php +++ b/src/Adyen/Model/StoredValue/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/Service/Checkout/RecurringApi.php b/src/Adyen/Service/Checkout/RecurringApi.php index 70f099ede..bc4c51cff 100644 --- a/src/Adyen/Service/Checkout/RecurringApi.php +++ b/src/Adyen/Service/Checkout/RecurringApi.php @@ -44,13 +44,14 @@ public function __construct(Client $client) * * @param string $storedPaymentMethodId * @param array|null $requestOptions ['queryParams' => ['shopperReference'=> string, 'merchantAccount'=> string]] - + * @throws AdyenException */ public function deleteTokenForStoredPaymentDetails(string $storedPaymentMethodId, ?array $requestOptions = null) { $endpoint = $this->baseURL . str_replace(['{storedPaymentMethodId}'], [$storedPaymentMethodId], "/storedPaymentMethods/{storedPaymentMethodId}"); $this->requestHttp($endpoint, strtolower('DELETE'), null, $requestOptions); + } /** diff --git a/src/Adyen/Service/Checkout/UtilityApi.php b/src/Adyen/Service/Checkout/UtilityApi.php index 6bbb00557..4559f214a 100644 --- a/src/Adyen/Service/Checkout/UtilityApi.php +++ b/src/Adyen/Service/Checkout/UtilityApi.php @@ -57,7 +57,7 @@ public function getApplePaySession(\Adyen\Model\Checkout\ApplePaySessionRequest /** * Create originKey values for domains * - * @deprecated since Adyen Checkout API v67. + * @deprecated since Adyen Checkout API v67. * @param \Adyen\Model\Checkout\UtilityRequest $utilityRequest * @param array|null $requestOptions * @return \Adyen\Model\Checkout\UtilityResponse diff --git a/src/Adyen/Service/RecurringApi.php b/src/Adyen/Service/RecurringApi.php index 3a815a3f0..16fe8dbb2 100644 --- a/src/Adyen/Service/RecurringApi.php +++ b/src/Adyen/Service/RecurringApi.php @@ -42,7 +42,7 @@ public function __construct(Client $client) /** * Create new permits linked to a recurring contract. * - * @deprecated since Adyen Recurring API v68. + * @deprecated since Adyen Recurring API v68. * @param \Adyen\Model\Recurring\CreatePermitRequest $createPermitRequest * @param array|null $requestOptions * @return \Adyen\Model\Recurring\CreatePermitResult @@ -58,7 +58,7 @@ public function createPermit(\Adyen\Model\Recurring\CreatePermitRequest $createP /** * Disable stored payment details * - * @deprecated since Adyen Recurring API v68. + * @deprecated since Adyen Recurring API v68. * @param \Adyen\Model\Recurring\DisableRequest $disableRequest * @param array|null $requestOptions * @return \Adyen\Model\Recurring\DisableResult @@ -74,7 +74,7 @@ public function disable(\Adyen\Model\Recurring\DisableRequest $disableRequest, ? /** * Disable an existing permit. * - * @deprecated since Adyen Recurring API v68. + * @deprecated since Adyen Recurring API v68. * @param \Adyen\Model\Recurring\DisablePermitRequest $disablePermitRequest * @param array|null $requestOptions * @return \Adyen\Model\Recurring\DisablePermitResult @@ -90,7 +90,7 @@ public function disablePermit(\Adyen\Model\Recurring\DisablePermitRequest $disab /** * Get stored payment details * - * @deprecated since Adyen Recurring API v68. + * @deprecated since Adyen Recurring API v68. * @param \Adyen\Model\Recurring\RecurringDetailsRequest $recurringDetailsRequest * @param array|null $requestOptions * @return \Adyen\Model\Recurring\RecurringDetailsResult @@ -106,7 +106,7 @@ public function listRecurringDetails(\Adyen\Model\Recurring\RecurringDetailsRequ /** * Ask issuer to notify the shopper * - * @deprecated since Adyen Recurring API v68. + * @deprecated since Adyen Recurring API v68. * @param \Adyen\Model\Recurring\NotifyShopperRequest $notifyShopperRequest * @param array|null $requestOptions * @return \Adyen\Model\Recurring\NotifyShopperResult @@ -122,7 +122,7 @@ public function notifyShopper(\Adyen\Model\Recurring\NotifyShopperRequest $notif /** * Schedule running the Account Updater * - * @deprecated since Adyen Recurring API v68. + * @deprecated since Adyen Recurring API v68. * @param \Adyen\Model\Recurring\ScheduleAccountUpdaterRequest $scheduleAccountUpdaterRequest * @param array|null $requestOptions * @return \Adyen\Model\Recurring\ScheduleAccountUpdaterResult From b8b0712a1f48747c389f92bef5c8034e0e4c8ee0 Mon Sep 17 00:00:00 2001 From: AdyenAutomationBot Date: Wed, 13 Aug 2025 10:53:12 +0000 Subject: [PATCH 2/2] style(fmt): code formatted --- src/Adyen/Model/BinLookup/ObjectSerializer.php | 6 ++++-- src/Adyen/Model/Checkout/CheckoutPaymentMethod.php | 4 ++-- src/Adyen/Model/Checkout/MbwayDetails.php | 4 ++-- src/Adyen/Model/Checkout/ObjectSerializer.php | 6 ++++-- src/Adyen/Model/Checkout/PayToPaymentMethod.php | 1 + src/Adyen/Model/Checkout/Result.php | 2 +- src/Adyen/Model/Checkout/UPIPaymentMethod.php | 1 + src/Adyen/Model/Checkout/VippsDetails.php | 2 +- src/Adyen/Model/Disputes/ObjectSerializer.php | 6 ++++-- src/Adyen/Model/Payments/ObjectSerializer.php | 6 ++++-- src/Adyen/Model/PaymentsApp/ObjectSerializer.php | 6 ++++-- src/Adyen/Model/Payout/ObjectSerializer.php | 6 ++++-- src/Adyen/Model/PosMobile/ObjectSerializer.php | 6 ++++-- src/Adyen/Model/Recurring/ObjectSerializer.php | 6 ++++-- src/Adyen/Model/StoredValue/ObjectSerializer.php | 6 ++++-- src/Adyen/Service/Checkout/RecurringApi.php | 3 +-- src/Adyen/Service/Checkout/UtilityApi.php | 2 +- src/Adyen/Service/RecurringApi.php | 12 ++++++------ 18 files changed, 52 insertions(+), 33 deletions(-) diff --git a/src/Adyen/Model/BinLookup/ObjectSerializer.php b/src/Adyen/Model/BinLookup/ObjectSerializer.php index d9c9dec53..67b57c23b 100644 --- a/src/Adyen/Model/BinLookup/ObjectSerializer.php +++ b/src/Adyen/Model/BinLookup/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/Checkout/CheckoutPaymentMethod.php b/src/Adyen/Model/Checkout/CheckoutPaymentMethod.php index 4dd2ab851..269d51815 100644 --- a/src/Adyen/Model/Checkout/CheckoutPaymentMethod.php +++ b/src/Adyen/Model/Checkout/CheckoutPaymentMethod.php @@ -2070,7 +2070,7 @@ public function getShopperEmail() /** * Sets shopperEmail * - * @param string $shopperEmail + * @param string $shopperEmail * * @return self */ @@ -2094,7 +2094,7 @@ public function getTelephoneNumber() /** * Sets telephoneNumber * - * @param string $telephoneNumber + * @param string $telephoneNumber * * @return self */ diff --git a/src/Adyen/Model/Checkout/MbwayDetails.php b/src/Adyen/Model/Checkout/MbwayDetails.php index a60aa9239..9f8c4c83c 100644 --- a/src/Adyen/Model/Checkout/MbwayDetails.php +++ b/src/Adyen/Model/Checkout/MbwayDetails.php @@ -358,7 +358,7 @@ public function getShopperEmail() /** * Sets shopperEmail * - * @param string $shopperEmail + * @param string $shopperEmail * * @return self */ @@ -382,7 +382,7 @@ public function getTelephoneNumber() /** * Sets telephoneNumber * - * @param string $telephoneNumber + * @param string $telephoneNumber * * @return self */ diff --git a/src/Adyen/Model/Checkout/ObjectSerializer.php b/src/Adyen/Model/Checkout/ObjectSerializer.php index 1e8e6df61..c9a8102b9 100644 --- a/src/Adyen/Model/Checkout/ObjectSerializer.php +++ b/src/Adyen/Model/Checkout/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/Checkout/PayToPaymentMethod.php b/src/Adyen/Model/Checkout/PayToPaymentMethod.php index b2ff170fa..efd654a37 100644 --- a/src/Adyen/Model/Checkout/PayToPaymentMethod.php +++ b/src/Adyen/Model/Checkout/PayToPaymentMethod.php @@ -14,6 +14,7 @@ namespace Adyen\Model\Checkout; + use Adyen\Model\Checkout\ObjectSerializer; /** diff --git a/src/Adyen/Model/Checkout/Result.php b/src/Adyen/Model/Checkout/Result.php index 6dd17f86e..f409e9302 100644 --- a/src/Adyen/Model/Checkout/Result.php +++ b/src/Adyen/Model/Checkout/Result.php @@ -14,6 +14,7 @@ namespace Adyen\Model\Checkout; + use Adyen\Model\Checkout\ObjectSerializer; /** @@ -45,4 +46,3 @@ public static function getAllowableEnumValues() ]; } } - diff --git a/src/Adyen/Model/Checkout/UPIPaymentMethod.php b/src/Adyen/Model/Checkout/UPIPaymentMethod.php index 7ce446609..785ca65d6 100644 --- a/src/Adyen/Model/Checkout/UPIPaymentMethod.php +++ b/src/Adyen/Model/Checkout/UPIPaymentMethod.php @@ -14,6 +14,7 @@ namespace Adyen\Model\Checkout; + use Adyen\Model\Checkout\ObjectSerializer; /** diff --git a/src/Adyen/Model/Checkout/VippsDetails.php b/src/Adyen/Model/Checkout/VippsDetails.php index 9fd828745..cc3fcd8e9 100644 --- a/src/Adyen/Model/Checkout/VippsDetails.php +++ b/src/Adyen/Model/Checkout/VippsDetails.php @@ -412,7 +412,7 @@ public function getTelephoneNumber() /** * Sets telephoneNumber * - * @param string $telephoneNumber + * @param string $telephoneNumber * * @return self */ diff --git a/src/Adyen/Model/Disputes/ObjectSerializer.php b/src/Adyen/Model/Disputes/ObjectSerializer.php index ec6232593..d77f1730a 100644 --- a/src/Adyen/Model/Disputes/ObjectSerializer.php +++ b/src/Adyen/Model/Disputes/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/Payments/ObjectSerializer.php b/src/Adyen/Model/Payments/ObjectSerializer.php index 13446888e..7938941f0 100644 --- a/src/Adyen/Model/Payments/ObjectSerializer.php +++ b/src/Adyen/Model/Payments/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/PaymentsApp/ObjectSerializer.php b/src/Adyen/Model/PaymentsApp/ObjectSerializer.php index 9f9959282..a9aae963f 100644 --- a/src/Adyen/Model/PaymentsApp/ObjectSerializer.php +++ b/src/Adyen/Model/PaymentsApp/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/Payout/ObjectSerializer.php b/src/Adyen/Model/Payout/ObjectSerializer.php index 96e192c0c..1f3961622 100644 --- a/src/Adyen/Model/Payout/ObjectSerializer.php +++ b/src/Adyen/Model/Payout/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/PosMobile/ObjectSerializer.php b/src/Adyen/Model/PosMobile/ObjectSerializer.php index 6ed79921b..cf8a85eb6 100644 --- a/src/Adyen/Model/PosMobile/ObjectSerializer.php +++ b/src/Adyen/Model/PosMobile/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/Recurring/ObjectSerializer.php b/src/Adyen/Model/Recurring/ObjectSerializer.php index ad9f78192..50f6dc097 100644 --- a/src/Adyen/Model/Recurring/ObjectSerializer.php +++ b/src/Adyen/Model/Recurring/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/StoredValue/ObjectSerializer.php b/src/Adyen/Model/StoredValue/ObjectSerializer.php index ffd02efdc..1bf61977b 100644 --- a/src/Adyen/Model/StoredValue/ObjectSerializer.php +++ b/src/Adyen/Model/StoredValue/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/Service/Checkout/RecurringApi.php b/src/Adyen/Service/Checkout/RecurringApi.php index bc4c51cff..70f099ede 100644 --- a/src/Adyen/Service/Checkout/RecurringApi.php +++ b/src/Adyen/Service/Checkout/RecurringApi.php @@ -44,14 +44,13 @@ public function __construct(Client $client) * * @param string $storedPaymentMethodId * @param array|null $requestOptions ['queryParams' => ['shopperReference'=> string, 'merchantAccount'=> string]] - + * @throws AdyenException */ public function deleteTokenForStoredPaymentDetails(string $storedPaymentMethodId, ?array $requestOptions = null) { $endpoint = $this->baseURL . str_replace(['{storedPaymentMethodId}'], [$storedPaymentMethodId], "/storedPaymentMethods/{storedPaymentMethodId}"); $this->requestHttp($endpoint, strtolower('DELETE'), null, $requestOptions); - } /** diff --git a/src/Adyen/Service/Checkout/UtilityApi.php b/src/Adyen/Service/Checkout/UtilityApi.php index 4559f214a..6bbb00557 100644 --- a/src/Adyen/Service/Checkout/UtilityApi.php +++ b/src/Adyen/Service/Checkout/UtilityApi.php @@ -57,7 +57,7 @@ public function getApplePaySession(\Adyen\Model\Checkout\ApplePaySessionRequest /** * Create originKey values for domains * - * @deprecated since Adyen Checkout API v67. + * @deprecated since Adyen Checkout API v67. * @param \Adyen\Model\Checkout\UtilityRequest $utilityRequest * @param array|null $requestOptions * @return \Adyen\Model\Checkout\UtilityResponse diff --git a/src/Adyen/Service/RecurringApi.php b/src/Adyen/Service/RecurringApi.php index 16fe8dbb2..3a815a3f0 100644 --- a/src/Adyen/Service/RecurringApi.php +++ b/src/Adyen/Service/RecurringApi.php @@ -42,7 +42,7 @@ public function __construct(Client $client) /** * Create new permits linked to a recurring contract. * - * @deprecated since Adyen Recurring API v68. + * @deprecated since Adyen Recurring API v68. * @param \Adyen\Model\Recurring\CreatePermitRequest $createPermitRequest * @param array|null $requestOptions * @return \Adyen\Model\Recurring\CreatePermitResult @@ -58,7 +58,7 @@ public function createPermit(\Adyen\Model\Recurring\CreatePermitRequest $createP /** * Disable stored payment details * - * @deprecated since Adyen Recurring API v68. + * @deprecated since Adyen Recurring API v68. * @param \Adyen\Model\Recurring\DisableRequest $disableRequest * @param array|null $requestOptions * @return \Adyen\Model\Recurring\DisableResult @@ -74,7 +74,7 @@ public function disable(\Adyen\Model\Recurring\DisableRequest $disableRequest, ? /** * Disable an existing permit. * - * @deprecated since Adyen Recurring API v68. + * @deprecated since Adyen Recurring API v68. * @param \Adyen\Model\Recurring\DisablePermitRequest $disablePermitRequest * @param array|null $requestOptions * @return \Adyen\Model\Recurring\DisablePermitResult @@ -90,7 +90,7 @@ public function disablePermit(\Adyen\Model\Recurring\DisablePermitRequest $disab /** * Get stored payment details * - * @deprecated since Adyen Recurring API v68. + * @deprecated since Adyen Recurring API v68. * @param \Adyen\Model\Recurring\RecurringDetailsRequest $recurringDetailsRequest * @param array|null $requestOptions * @return \Adyen\Model\Recurring\RecurringDetailsResult @@ -106,7 +106,7 @@ public function listRecurringDetails(\Adyen\Model\Recurring\RecurringDetailsRequ /** * Ask issuer to notify the shopper * - * @deprecated since Adyen Recurring API v68. + * @deprecated since Adyen Recurring API v68. * @param \Adyen\Model\Recurring\NotifyShopperRequest $notifyShopperRequest * @param array|null $requestOptions * @return \Adyen\Model\Recurring\NotifyShopperResult @@ -122,7 +122,7 @@ public function notifyShopper(\Adyen\Model\Recurring\NotifyShopperRequest $notif /** * Schedule running the Account Updater * - * @deprecated since Adyen Recurring API v68. + * @deprecated since Adyen Recurring API v68. * @param \Adyen\Model\Recurring\ScheduleAccountUpdaterRequest $scheduleAccountUpdaterRequest * @param array|null $requestOptions * @return \Adyen\Model\Recurring\ScheduleAccountUpdaterResult