From 9f4344ba767b4c15a138976a29dd9ad14eb1e5e8 Mon Sep 17 00:00:00 2001 From: Shahbaz Date: Mon, 11 Aug 2025 18:36:29 +0500 Subject: [PATCH 1/6] Rename AuthenticationResult property to Authentication --- src/Response/Embeds/Authentication.php | 56 ++++++++++++++++++++ src/Response/Embeds/AuthenticationResult.php | 2 +- src/Response/Embeds/Transaction.php | 10 ++-- 3 files changed, 63 insertions(+), 5 deletions(-) create mode 100644 src/Response/Embeds/Authentication.php diff --git a/src/Response/Embeds/Authentication.php b/src/Response/Embeds/Authentication.php new file mode 100644 index 0000000..cf930c1 --- /dev/null +++ b/src/Response/Embeds/Authentication.php @@ -0,0 +1,56 @@ + CardInformation::class, 'array' => false ], - 'AuthenticationResult' => [ - 'class' => AuthenticationResult::class, + 'Authentication' => [ + 'class' => Authentication::class, 'array' => false ] ]; + /** * @var string */ @@ -291,13 +292,14 @@ class Transaction extends AbstractResponse /** * @var AuthenticationResult + * @deprecated Use $Authentication instead. */ public $AuthenticationResult; /** - * @var DateTime + * @var Authentication */ - public $AuthorisationExpiryDate; + public $Authentication; /** * @param string $IsTokenized From 5fa99845665b4039ffb9a45e1ae821cd603ae4d2 Mon Sep 17 00:00:00 2001 From: Shahbaz Date: Mon, 11 Aug 2025 18:41:01 +0500 Subject: [PATCH 2/6] Remove extra linebreak --- src/Response/Embeds/Transaction.php | 1 - 1 file changed, 1 deletion(-) diff --git a/src/Response/Embeds/Transaction.php b/src/Response/Embeds/Transaction.php index afe3dd0..74ad8c9 100644 --- a/src/Response/Embeds/Transaction.php +++ b/src/Response/Embeds/Transaction.php @@ -69,7 +69,6 @@ class Transaction extends AbstractResponse ] ]; - /** * @var string */ From 82480568ea74e41172cc8cee9c99beaf88c21bf1 Mon Sep 17 00:00:00 2001 From: Shahbaz Date: Mon, 11 Aug 2025 18:44:03 +0500 Subject: [PATCH 3/6] Update PHPDoc --- src/Response/Embeds/Transaction.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Response/Embeds/Transaction.php b/src/Response/Embeds/Transaction.php index 74ad8c9..f10b8fb 100644 --- a/src/Response/Embeds/Transaction.php +++ b/src/Response/Embeds/Transaction.php @@ -290,7 +290,7 @@ class Transaction extends AbstractResponse public $InvoiceOrderInfo; /** - * @var AuthenticationResult + * @var Authentication * @deprecated Use $Authentication instead. */ public $AuthenticationResult; From 3e2865b6685846db77df6ade3b21c28ecf0df793 Mon Sep 17 00:00:00 2001 From: Shahbaz Date: Mon, 11 Aug 2025 18:53:10 +0500 Subject: [PATCH 4/6] Update doc for Authentication Type and remove the AuthenticationResult class --- src/Response/Embeds/Authentication.php | 2 +- src/Response/Embeds/AuthenticationResult.php | 56 -------------------- 2 files changed, 1 insertion(+), 57 deletions(-) delete mode 100644 src/Response/Embeds/AuthenticationResult.php diff --git a/src/Response/Embeds/Authentication.php b/src/Response/Embeds/Authentication.php index cf930c1..a9d0ef3 100644 --- a/src/Response/Embeds/Authentication.php +++ b/src/Response/Embeds/Authentication.php @@ -50,7 +50,7 @@ class Authentication extends AbstractResponse public $Version; /** - * @var "3DSECURE" + * @var "3DSECURE"|"UNKNOWN" */ public $Type; } diff --git a/src/Response/Embeds/AuthenticationResult.php b/src/Response/Embeds/AuthenticationResult.php deleted file mode 100644 index cf930c1..0000000 --- a/src/Response/Embeds/AuthenticationResult.php +++ /dev/null @@ -1,56 +0,0 @@ - Date: Mon, 11 Aug 2025 18:57:18 +0500 Subject: [PATCH 5/6] Add AuthorisationExpiryDate --- src/Response/Embeds/Transaction.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Response/Embeds/Transaction.php b/src/Response/Embeds/Transaction.php index f10b8fb..ecab8ba 100644 --- a/src/Response/Embeds/Transaction.php +++ b/src/Response/Embeds/Transaction.php @@ -300,6 +300,11 @@ class Transaction extends AbstractResponse */ public $Authentication; + /** + * @var DateTime + */ + public $AuthorisationExpiryDate; + /** * @param string $IsTokenized * From 783fe8162197dcdb6f5b52c6a452a32ada8f8509 Mon Sep 17 00:00:00 2001 From: Shahbaz Date: Tue, 12 Aug 2025 16:54:19 +0500 Subject: [PATCH 6/6] Update version and release notes --- CHANGELOG.md | 4 ++++ src/AbstractApi.php | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 11601a0..4c8abad 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [3.5.3] - 2025-08-12 +### Added +- Rename `AuthenticationResult` property to `Authentication` in `Transaction` class. + ## [3.5.2] - 2025-08-08 ### Added - Correct `Transaction` `CreditCardExpiry` type. diff --git a/src/AbstractApi.php b/src/AbstractApi.php index 2620c21..d5eba3f 100644 --- a/src/AbstractApi.php +++ b/src/AbstractApi.php @@ -55,7 +55,7 @@ abstract class AbstractApi /** * PHP API version */ - const PHP_API_VERSION = '3.5.2'; + const PHP_API_VERSION = '3.5.3'; /** * Event dispatcher