Skip to content

Commit a9b2ac8

Browse files
authored
Merge pull request #60 from AltaPay/rename-authenticationresult-property
Rename AuthenticationResult property to Authentication
2 parents fad2b37 + 783fe81 commit a9b2ac8

File tree

4 files changed

+16
-6
lines changed

4 files changed

+16
-6
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

7+
## [3.5.3] - 2025-08-12
8+
### Added
9+
- Rename `AuthenticationResult` property to `Authentication` in `Transaction` class.
10+
711
## [3.5.2] - 2025-08-08
812
### Added
913
- Correct `Transaction` `CreditCardExpiry` type.

src/AbstractApi.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ abstract class AbstractApi
5555
/**
5656
* PHP API version
5757
*/
58-
const PHP_API_VERSION = '3.5.2';
58+
const PHP_API_VERSION = '3.5.3';
5959

6060
/**
6161
* Event dispatcher

src/Response/Embeds/AuthenticationResult.php renamed to src/Response/Embeds/Authentication.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525

2626
use Altapay\Response\AbstractResponse;
2727

28-
class AuthenticationResult extends AbstractResponse
28+
class Authentication extends AbstractResponse
2929
{
3030
/**
3131
* @var "CHALLENGE"|"FRICTIONLESS"|"UNKNOWN"
@@ -50,7 +50,7 @@ class AuthenticationResult extends AbstractResponse
5050
public $Version;
5151

5252
/**
53-
* @var "3DSECURE"
53+
* @var "3DSECURE"|"UNKNOWN"
5454
*/
5555
public $Type;
5656
}

src/Response/Embeds/Transaction.php

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ class Transaction extends AbstractResponse
6363
'class' => CardInformation::class,
6464
'array' => false
6565
],
66-
'AuthenticationResult' => [
67-
'class' => AuthenticationResult::class,
66+
'Authentication' => [
67+
'class' => Authentication::class,
6868
'array' => false
6969
]
7070
];
@@ -290,10 +290,16 @@ class Transaction extends AbstractResponse
290290
public $InvoiceOrderInfo;
291291

292292
/**
293-
* @var AuthenticationResult
293+
* @var Authentication
294+
* @deprecated Use $Authentication instead.
294295
*/
295296
public $AuthenticationResult;
296297

298+
/**
299+
* @var Authentication
300+
*/
301+
public $Authentication;
302+
297303
/**
298304
* @var DateTime
299305
*/

0 commit comments

Comments
 (0)