This repository was archived by the owner on Feb 4, 2025. It is now read-only.
File tree 6 files changed +21
-7
lines changed
6 files changed +21
-7
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,13 @@ 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.6.2]
9
+
10
+ ### Fixed
11
+
12
+ - Fixed date format for the ` execution_at ` property of the Domain model.
13
+ - Fixed date format for the ` datebirth ` and ` idcarddate ` property of the Identity model.
14
+
8
15
## [ 2.6.1]
9
16
10
17
### Fixed
Original file line number Diff line number Diff line change 2
2
"preset" : " laravel" ,
3
3
"rules" : {
4
4
"array_indentation" : false ,
5
- "phpdoc_align" : false
5
+ "phpdoc_align" : false ,
6
+ "single_line_empty_body" : false
6
7
}
7
8
}
Original file line number Diff line number Diff line change @@ -52,7 +52,9 @@ public function toArray(): array
52
52
'lock ' => $ this ->lock ,
53
53
'usetrustee ' => $ this ->useTrustee ,
54
54
'premium_price ' => $ this ->premiumPrice ,
55
- 'execution_at ' => $ this ->executionAt ,
55
+ 'execution_at ' => $ this
56
+ ->executionAt
57
+ ?->format('d-m-Y ' ),
56
58
'trans_epp ' => $ this ->transferCode ,
57
59
'dnssec_delete ' => $ this ->dnssecDelete ,
58
60
]);
Original file line number Diff line number Diff line change @@ -87,7 +87,9 @@ public function toArray(): array
87
87
'tel ' => $ this ->tel ,
88
88
'fax ' => $ this ->fax ,
89
89
'email ' => $ this ->email ,
90
- 'datebirth ' => $ this ->dateBirth ,
90
+ 'datebirth ' => $ this
91
+ ->dateBirth
92
+ ?->format('d-m-Y ' ),
91
93
'placebirth ' => $ this ->placeBirth ,
92
94
'countrybirth ' => $ this ->countryBirth ,
93
95
'postalbirth ' => $ this ->postalBirth ,
@@ -96,7 +98,9 @@ public function toArray(): array
96
98
'vatnumber ' => $ this ->vatNumber ,
97
99
'tmnumber ' => $ this ->trademarkNumber ,
98
100
'tmcountry ' => $ this ->trademarkCountry ,
99
- 'idcarddate ' => $ this ->idCardDate ,
101
+ 'idcarddate ' => $ this
102
+ ->idCardDate
103
+ ?->format('d-m-Y ' ),
100
104
'idcardissuer ' => $ this ->idCardIssuer ,
101
105
'xxxmemberid ' => $ this ->xxxMemberId ,
102
106
'xxxpassword ' => $ this ->xxxPassword ,
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ class Oxxa implements OxxaClient
15
15
{
16
16
private const TIMEOUT = 180 ;
17
17
18
- private const VERSION = '2.6.1 ' ;
18
+ private const VERSION = '2.6.2 ' ;
19
19
20
20
private const USER_AGENT = 'oxxa-api-client/ ' .self ::VERSION ;
21
21
Original file line number Diff line number Diff line change @@ -141,7 +141,7 @@ public function test_it_can_register_given_domain(): void
141
141
Arr::get ($ request ->data (), 'nsgroup ' ) === 'ABCD123456 ' &&
142
142
Arr::get ($ request ->data (), 'dnstemplate ' ) === 'ABCD123456 ' &&
143
143
Arr::get ($ request ->data (), 'lock ' ) === 'Y ' &&
144
- Arr::get ($ request ->data (), 'execution_at ' ) === '2020- 01-01 ' &&
144
+ Arr::get ($ request ->data (), 'execution_at ' ) === '01-01-2020 ' &&
145
145
Arr::get ($ request ->data (), 'test ' ) === null ;
146
146
});
147
147
}
@@ -180,7 +180,7 @@ public function test_it_can_transfer_given_domain(): void
180
180
Arr::get ($ request ->data (), 'nsgroup ' ) === 'ABCD123456 ' &&
181
181
Arr::get ($ request ->data (), 'dnstemplate ' ) === 'ABCD123456 ' &&
182
182
Arr::get ($ request ->data (), 'lock ' ) === 'Y ' &&
183
- Arr::get ($ request ->data (), 'execution_at ' ) === '2020- 01-01 ' &&
183
+ Arr::get ($ request ->data (), 'execution_at ' ) === '01-01-2020 ' &&
184
184
Arr::get ($ request ->data (), 'test ' ) === null ;
185
185
});
186
186
}
You can’t perform that action at this time.
0 commit comments