Skip to content

Releases: elliotjreed/royal-mail-tracking

5.0.0

15 Dec 11:34
32b4d22
Compare
Choose a tag to compare

Minimum PHP version now 8.2.

4.2.0

21 Aug 11:07
7cb57e9
Compare
Choose a tag to compare

Adds optional parameter for specifying the base API endpoint, eg:

$tracking = (new \ElliotJReed\RoyalMail\Tracking\Events(
    new \GuzzleHttp\Client(),
    'aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee',
    '12345678901234567890123456789012345678901234567890',
    true, // Optional, when true (default: true) exceptions will be thrown for tracking errors
    true, // Optional, when true (default: true) exceptions will be thrown for technical (eg. 500 HTTP response) errors
    'https://api.royalmail.net/mailpieces/v2' // Optional, when set the default API endpoint can be overridden (default: 'https://api.royalmail.net/mailpieces/v2')
));
$signature = (new \ElliotJReed\RoyalMail\Tracking\Signature(
    new \GuzzleHttp\Client(),
    'aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee',
    '12345678901234567890123456789012345678901234567890',
    true, // Optional, when true (default: true) exceptions will be thrown for tracking errors
    true, // Optional, when true (default: true) exceptions will be thrown for technical (eg. 500 HTTP response) errors
    'https://api.royalmail.net/mailpieces/v2' // Optional, when set the default API endpoint can be overridden (default: 'https://api.royalmail.net/mailpieces/v2')
));
$summary = (new \ElliotJReed\RoyalMail\Tracking\Summary(
    new \GuzzleHttp\Client(),
    'aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee',
    '12345678901234567890123456789012345678901234567890',
    true, // Optional, when true (default: true) exceptions will be thrown for tracking errors
    true, // Optional, when true (default: true) exceptions will be thrown for technical (eg. 500 HTTP response) errors
    'https://api.royalmail.net/mailpieces/v2' // Optional, when set the default API endpoint can be overridden (default: 'https://api.royalmail.net/mailpieces/v2')
));

4.1.0

04 Apr 09:31
035f4fb
Compare
Choose a tag to compare

Fixes exception getResponse() return type to allow null

3.0.0

09 Mar 19:18
bf7eed5
Compare
Choose a tag to compare

Sets minimum required PHP version to 8.1 (PHP 8.0 no longer supported).

2.4.0

09 Mar 19:13
c5b77c8
Compare
Choose a tag to compare
  • Catches authorisation error in Event
  • Fixes deprecation warning in PHP 8.2 for self reference in callback