This repository was archived by the owner on Feb 4, 2025. It is now read-only.
File tree 4 files changed +13
-1
lines changed
4 files changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
5
5
The format is based on [ Keep a Changelog] ( https://keepachangelog.com/en/1.0.0/ ) . Please note this changelog affects
6
6
this package and not the Oxxa API.
7
7
8
+ ## [ 2.4.1]
9
+
10
+ ### Fixed
11
+
12
+ - Add missing price for additional domains when retrieving SSL products.
13
+
8
14
## [ 2.4.0]
9
15
10
16
### Added
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ class Price
7
7
public function __construct (
8
8
public int $ period ,
9
9
public float $ price ,
10
+ public ?float $ priceAdditional = null ,
10
11
) {
11
12
}
12
13
}
Original file line number Diff line number Diff line change @@ -37,9 +37,14 @@ public function sslProducts(array $additionalParameters = []): OxxaResult
37
37
$ sslNode
38
38
->filter ('pricing > period ' )
39
39
->each (function (Crawler $ periodNode ) use (&$ pricing ) {
40
+ $ priceExtraDomainNode = $ periodNode ->filter ('price_extra_domain ' );
41
+
40
42
$ pricing [] = new Price (
41
43
period: (int ) $ periodNode ->attr ('months ' ),
42
44
price: (float ) $ periodNode ->filter ('price ' )->text (),
45
+ priceAdditional: $ priceExtraDomainNode ->count () && $ priceExtraDomainNode ->text () !== ''
46
+ ? (float ) $ periodNode ->filter ('price_extra_domain ' )->text ()
47
+ : null ,
43
48
);
44
49
});
45
50
}
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ class Oxxa implements OxxaClient
14
14
{
15
15
private const TIMEOUT = 180 ;
16
16
17
- private const VERSION = '2.4.0 ' ;
17
+ private const VERSION = '2.4.1 ' ;
18
18
19
19
private const USER_AGENT = 'oxxa-api-client/ ' .self ::VERSION ;
20
20
You can’t perform that action at this time.
0 commit comments