From 60d690c85299fa146a067c1f8c8e79d083ccc5c2 Mon Sep 17 00:00:00 2001 From: Sem Schilder Date: Thu, 13 Jun 2019 15:50:30 +0200 Subject: [PATCH] Add handover function for domainnames and bump versions --- CHANGELOG | 5 +++++ Transip/ColocationService.php | 2 +- Transip/DnsService.php | 2 +- Transip/DomainService.php | 15 ++++++++++++++- Transip/ForwardService.php | 2 +- Transip/HaipService.php | 2 +- Transip/PropositionService.php | 2 +- Transip/VpsService.php | 2 +- Transip/WebhostingService.php | 2 +- 9 files changed, 26 insertions(+), 8 deletions(-) diff --git a/CHANGELOG b/CHANGELOG index a9ad921..0f20593 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,8 @@ +TRANSIP API V5.14 + +NEW +- Added a function to handover a domain from a TransIP account to another TransIP account. + TRANSIP API V5.9 NEW diff --git a/Transip/ColocationService.php b/Transip/ColocationService.php index 3801ffc..ac7b05e 100644 --- a/Transip/ColocationService.php +++ b/Transip/ColocationService.php @@ -16,7 +16,7 @@ class Transip_ColocationService /** The SOAP service that corresponds with this class. */ const SERVICE = 'ColocationService'; /** The API version. */ - const API_VERSION = '5.13'; + const API_VERSION = '5.14'; /** @var SoapClient The SoapClient used to perform the SOAP calls. */ protected static $_soapClient = null; diff --git a/Transip/DnsService.php b/Transip/DnsService.php index 8e7a50a..392b8f4 100644 --- a/Transip/DnsService.php +++ b/Transip/DnsService.php @@ -17,7 +17,7 @@ class Transip_DnsService /** The SOAP service that corresponds with this class. */ const SERVICE = 'DnsService'; /** The API version. */ - const API_VERSION = '5.13'; + const API_VERSION = '5.14'; /** @var SoapClient The SoapClient used to perform the SOAP calls. */ protected static $_soapClient = null; diff --git a/Transip/DomainService.php b/Transip/DomainService.php index 5650c93..41d9e0b 100644 --- a/Transip/DomainService.php +++ b/Transip/DomainService.php @@ -23,7 +23,7 @@ class Transip_DomainService /** The SOAP service that corresponds with this class. */ const SERVICE = 'DomainService'; /** The API version. */ - const API_VERSION = '5.13'; + const API_VERSION = '5.14'; /** @var SoapClient The SoapClient used to perform the SOAP calls. */ protected static $_soapClient = null; @@ -523,6 +523,19 @@ public static function requestAuthCode($domainName) { return self::_getSoapClient(array_merge(array($domainName), array('__method' => 'requestAuthCode')))->requestAuthCode($domainName); } + + /** + * Handover a Domain to another TransIP User. Please be aware that this will NOT change the owner contact information + * at the registry. If you want to change the domain owner at the registry, then you should execute a 'setOwner'. + * + * @param string $domainName The domain name you want to hand over. + * @param string $targetAccountname the target account name + * @throws ApiException on error + */ + public static function handover($domainName, $targetAccountname) + { + return self::_getSoapClient(array_merge(array($domainName, $targetAccountname), array('__method' => 'handover')))->handover($domainName, $targetAccountname); + } } ?> diff --git a/Transip/ForwardService.php b/Transip/ForwardService.php index 38fb036..e649556 100644 --- a/Transip/ForwardService.php +++ b/Transip/ForwardService.php @@ -16,7 +16,7 @@ class Transip_ForwardService /** The SOAP service that corresponds with this class. */ const SERVICE = 'ForwardService'; /** The API version. */ - const API_VERSION = '5.13'; + const API_VERSION = '5.14'; /** @var SoapClient The SoapClient used to perform the SOAP calls. */ protected static $_soapClient = null; diff --git a/Transip/HaipService.php b/Transip/HaipService.php index eee8324..d6cac8d 100644 --- a/Transip/HaipService.php +++ b/Transip/HaipService.php @@ -17,7 +17,7 @@ class Transip_HaipService /** The SOAP service that corresponds with this class. */ const SERVICE = 'HaipService'; /** The API version. */ - const API_VERSION = '5.13'; + const API_VERSION = '5.14'; /** @var SoapClient The SoapClient used to perform the SOAP calls. */ protected static $_soapClient = null; diff --git a/Transip/PropositionService.php b/Transip/PropositionService.php index 801a505..cfac494 100644 --- a/Transip/PropositionService.php +++ b/Transip/PropositionService.php @@ -15,7 +15,7 @@ class Transip_PropositionService /** The SOAP service that corresponds with this class. */ const SERVICE = 'PropositionService'; /** The API version. */ - const API_VERSION = '5.13'; + const API_VERSION = '5.14'; /** @var SoapClient The SoapClient used to perform the SOAP calls. */ protected static $_soapClient = null; diff --git a/Transip/VpsService.php b/Transip/VpsService.php index 2d1f32e..de67dcb 100644 --- a/Transip/VpsService.php +++ b/Transip/VpsService.php @@ -22,7 +22,7 @@ class Transip_VpsService /** The SOAP service that corresponds with this class. */ const SERVICE = 'VpsService'; /** The API version. */ - const API_VERSION = '5.13'; + const API_VERSION = '5.14'; /** @var SoapClient The SoapClient used to perform the SOAP calls. */ protected static $_soapClient = null; diff --git a/Transip/WebhostingService.php b/Transip/WebhostingService.php index 7f4062b..0ed238d 100644 --- a/Transip/WebhostingService.php +++ b/Transip/WebhostingService.php @@ -22,7 +22,7 @@ class Transip_WebhostingService /** The SOAP service that corresponds with this class. */ const SERVICE = 'WebhostingService'; /** The API version. */ - const API_VERSION = '5.13'; + const API_VERSION = '5.14'; /** @var SoapClient The SoapClient used to perform the SOAP calls. */ protected static $_soapClient = null;