10
10
/**
11
11
* Class DomainNameAPI_PHPLibrary
12
12
* @package DomainNameApi
13
- * @version 2.1.12
13
+ * @version 2.1.13
14
14
*/
15
15
16
16
@@ -25,20 +25,21 @@ class DomainNameAPI_PHPLibrary
25
25
/**
26
26
* Version of the library
27
27
*/
28
- const VERSION = '2.1.12 ' ;
28
+ const VERSION = '2.1.13 ' ;
29
29
30
30
const DEFAULT_NAMESERVERS = [
31
31
'ns1.domainnameapi.com ' ,
32
32
'ns2.domainnameapi.com ' ,
33
33
];
34
34
35
35
const DEFAULT_IGNORED_ERRORS = [
36
- '*Domain not found* ' ,
37
- '*ERR_DOMAIN_NOT_FOUND* ' ,
38
- '*Reseller not found* ' ,
39
- '*Domain is not in updateable status. It must be active* ' ,
40
- '*balance is not sufficient* ' ,
41
- '*Price definition not found* ' ,
36
+ 'Domain not found ' ,
37
+ 'ERR_DOMAIN_NOT_FOUND ' ,
38
+ 'Reseller not found ' ,
39
+ 'Domain is not in updateable status ' ,
40
+ 'balance is not sufficient ' ,
41
+ 'Price definition not found ' ,
42
+ 'TLD is not supported ' ,
42
43
];
43
44
44
45
const DEFAULT_ERRORS = [
@@ -1263,6 +1264,41 @@ public function RegisterWithContactInfo(
1263
1264
]
1264
1265
];
1265
1266
1267
+ if (substr ($ domainName , -3 ) == ".tr " ) {
1268
+
1269
+ if (!isset ($ addionalAttributes ['TRABISDOMAINCATEGORY ' ])) {
1270
+ $ addionalAttributes ['TRABISDOMAINCATEGORY ' ] = '1 ' ;
1271
+ }
1272
+
1273
+ if (!isset ($ addionalAttributes ['TRABISCOUNTRYID ' ])) {
1274
+ $ addionalAttributes ['TRABISCOUNTRYID ' ] = 215 ;
1275
+ $ addionalAttributes ['TRABISCOUNTRYNAME ' ] = 'TR ' ;
1276
+ $ addionalAttributes ['TRABISCITYNAME ' ] = 'Istanbul ' ;
1277
+ $ addionalAttributes ['TRABISCITIYID ' ] = 34 ;
1278
+ }
1279
+
1280
+ if ($ addionalAttributes ['TRABISDOMAINCATEGORY ' ] == '1 ' ) {
1281
+ if (!isset ($ addionalAttributes ['TRABISNAMESURNAME ' ])) {
1282
+ $ addionalAttributes ['TRABISNAMESURNAME ' ] = $ parameters ["request " ]["RegistrantContact " ]['FirstName ' ] . ' ' . $ parameters ["request " ]["RegistrantContact " ]['LastName ' ];
1283
+ }
1284
+ if (!isset ($ addionalAttributes ['TRABISCITIZIENID ' ])) {
1285
+ $ addionalAttributes ['TRABISCITIZIENID ' ] = '11111111111 ' ;
1286
+ }
1287
+ unset($ addionalAttributes ['TRABISORGANIZATION ' ],$ addionalAttributes ['TRABISTAXOFFICE ' ],$ addionalAttributes ['TRABISTAXNUMBER ' ]);
1288
+ }else {
1289
+ if (!isset ($ addionalAttributes ['TRABISORGANIZATION ' ])) {
1290
+ $ addionalAttributes ['TRABISORGANIZATION ' ] = $ parameters ["request " ]["RegistrantContact " ]['Company ' ];
1291
+ }
1292
+ if (!isset ($ addionalAttributes ['TRABISTAXOFFICE ' ])) {
1293
+ $ addionalAttributes ['TRABISTAXOFFICE ' ] = 'Istanbul ' ;
1294
+ }
1295
+ if (!isset ($ addionalAttributes ['TRABISTAXNUMBER ' ])) {
1296
+ $ addionalAttributes ['TRABISTAXNUMBER ' ] = '1111111111 ' ;
1297
+ }
1298
+ unset($ addionalAttributes ['TRABISNAMESURNAME ' ],$ addionalAttributes ['TRABISCITIZIENID ' ]);
1299
+ }
1300
+ }
1301
+
1266
1302
if (count ($ addionalAttributes ) > 0 ) {
1267
1303
foreach ($ addionalAttributes as $ k => $ v ) {
1268
1304
$ parameters ['request ' ]['AdditionalAttributes ' ]['KeyValueOfstringstring ' ][] = [
0 commit comments