Skip to content

Commit 43846ea

Browse files
committed
fix: updated php-sdk
1 parent 5574789 commit 43846ea

24 files changed

+143
-50
lines changed

src/Api/BillingCatalogApi.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
use GuzzleHttp\RequestOptions;
2424
use Symfony\Component\Serializer\Encoder\JsonEncoder;
2525
use Symfony\Component\Serializer\Exception\ExceptionInterface;
26-
use Symfony\Component\Serializer\SerializerInterface;
26+
use Symfony\Component\Serializer\Serializer;
2727
use Hostinger\ApiException;
2828
use Hostinger\Configuration;
2929
use Hostinger\ObjectSerializer;
@@ -34,7 +34,7 @@ class BillingCatalogApi
3434

3535
protected Configuration $config;
3636

37-
protected SerializerInterface $serializer;
37+
protected Serializer $serializer;
3838

3939
public function __construct(
4040
?Configuration $config = null,
@@ -57,6 +57,7 @@ public function getConfig(): Configuration
5757
*
5858
* @throws ApiException
5959
* @throws GuzzleException
60+
* @throws ExceptionInterface
6061
*/
6162
public function getCatalogItemListV1(?string $category = null, ?string $name = null)
6263
{

src/Api/BillingOrdersApi.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
use GuzzleHttp\RequestOptions;
2424
use Symfony\Component\Serializer\Encoder\JsonEncoder;
2525
use Symfony\Component\Serializer\Exception\ExceptionInterface;
26-
use Symfony\Component\Serializer\SerializerInterface;
26+
use Symfony\Component\Serializer\Serializer;
2727
use Hostinger\ApiException;
2828
use Hostinger\Configuration;
2929
use Hostinger\ObjectSerializer;
@@ -34,7 +34,7 @@ class BillingOrdersApi
3434

3535
protected Configuration $config;
3636

37-
protected SerializerInterface $serializer;
37+
protected Serializer $serializer;
3838

3939
public function __construct(
4040
?Configuration $config = null,
@@ -57,6 +57,7 @@ public function getConfig(): Configuration
5757
*
5858
* @throws ApiException
5959
* @throws GuzzleException
60+
* @throws ExceptionInterface
6061
*/
6162
public function createServiceOrderV1(\Hostinger\Model\BillingV1OrderStoreRequest $billingV1OrderStoreRequest)
6263
{

src/Api/BillingPaymentMethodsApi.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
use GuzzleHttp\RequestOptions;
2424
use Symfony\Component\Serializer\Encoder\JsonEncoder;
2525
use Symfony\Component\Serializer\Exception\ExceptionInterface;
26-
use Symfony\Component\Serializer\SerializerInterface;
26+
use Symfony\Component\Serializer\Serializer;
2727
use Hostinger\ApiException;
2828
use Hostinger\Configuration;
2929
use Hostinger\ObjectSerializer;
@@ -34,7 +34,7 @@ class BillingPaymentMethodsApi
3434

3535
protected Configuration $config;
3636

37-
protected SerializerInterface $serializer;
37+
protected Serializer $serializer;
3838

3939
public function __construct(
4040
?Configuration $config = null,
@@ -57,6 +57,7 @@ public function getConfig(): Configuration
5757
*
5858
* @throws ApiException
5959
* @throws GuzzleException
60+
* @throws ExceptionInterface
6061
*/
6162
public function deletePaymentMethodV1(int $paymentMethodId)
6263
{
@@ -84,6 +85,7 @@ public function deletePaymentMethodV1(int $paymentMethodId)
8485
*
8586
* @throws ApiException
8687
* @throws GuzzleException
88+
* @throws ExceptionInterface
8789
*/
8890
public function getPaymentMethodListV1()
8991
{
@@ -109,6 +111,7 @@ public function getPaymentMethodListV1()
109111
*
110112
* @throws ApiException
111113
* @throws GuzzleException
114+
* @throws ExceptionInterface
112115
*/
113116
public function setDefaultPaymentMethodV1(int $paymentMethodId)
114117
{

src/Api/BillingSubscriptionsApi.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
use GuzzleHttp\RequestOptions;
2424
use Symfony\Component\Serializer\Encoder\JsonEncoder;
2525
use Symfony\Component\Serializer\Exception\ExceptionInterface;
26-
use Symfony\Component\Serializer\SerializerInterface;
26+
use Symfony\Component\Serializer\Serializer;
2727
use Hostinger\ApiException;
2828
use Hostinger\Configuration;
2929
use Hostinger\ObjectSerializer;
@@ -34,7 +34,7 @@ class BillingSubscriptionsApi
3434

3535
protected Configuration $config;
3636

37-
protected SerializerInterface $serializer;
37+
protected Serializer $serializer;
3838

3939
public function __construct(
4040
?Configuration $config = null,
@@ -57,6 +57,7 @@ public function getConfig(): Configuration
5757
*
5858
* @throws ApiException
5959
* @throws GuzzleException
60+
* @throws ExceptionInterface
6061
*/
6162
public function cancelSubscriptionV1(string $subscriptionId, \Hostinger\Model\BillingV1SubscriptionCancelRequest $billingV1SubscriptionCancelRequest)
6263
{
@@ -85,6 +86,7 @@ public function cancelSubscriptionV1(string $subscriptionId, \Hostinger\Model\Bi
8586
*
8687
* @throws ApiException
8788
* @throws GuzzleException
89+
* @throws ExceptionInterface
8890
*/
8991
public function getSubscriptionListV1()
9092
{

src/Api/DNSSnapshotApi.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
use GuzzleHttp\RequestOptions;
2424
use Symfony\Component\Serializer\Encoder\JsonEncoder;
2525
use Symfony\Component\Serializer\Exception\ExceptionInterface;
26-
use Symfony\Component\Serializer\SerializerInterface;
26+
use Symfony\Component\Serializer\Serializer;
2727
use Hostinger\ApiException;
2828
use Hostinger\Configuration;
2929
use Hostinger\ObjectSerializer;
@@ -34,7 +34,7 @@ class DNSSnapshotApi
3434

3535
protected Configuration $config;
3636

37-
protected SerializerInterface $serializer;
37+
protected Serializer $serializer;
3838

3939
public function __construct(
4040
?Configuration $config = null,
@@ -57,6 +57,7 @@ public function getConfig(): Configuration
5757
*
5858
* @throws ApiException
5959
* @throws GuzzleException
60+
* @throws ExceptionInterface
6061
*/
6162
public function getDNSSnapshotListV1(string $domain)
6263
{
@@ -84,6 +85,7 @@ public function getDNSSnapshotListV1(string $domain)
8485
*
8586
* @throws ApiException
8687
* @throws GuzzleException
88+
* @throws ExceptionInterface
8789
*/
8890
public function getDNSSnapshotV1(string $domain, int $snapshotId)
8991
{
@@ -111,6 +113,7 @@ public function getDNSSnapshotV1(string $domain, int $snapshotId)
111113
*
112114
* @throws ApiException
113115
* @throws GuzzleException
116+
* @throws ExceptionInterface
114117
*/
115118
public function restoreDNSSnapshotV1(string $domain, int $snapshotId)
116119
{

src/Api/DNSZoneApi.php

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
use GuzzleHttp\RequestOptions;
2424
use Symfony\Component\Serializer\Encoder\JsonEncoder;
2525
use Symfony\Component\Serializer\Exception\ExceptionInterface;
26-
use Symfony\Component\Serializer\SerializerInterface;
26+
use Symfony\Component\Serializer\Serializer;
2727
use Hostinger\ApiException;
2828
use Hostinger\Configuration;
2929
use Hostinger\ObjectSerializer;
@@ -34,7 +34,7 @@ class DNSZoneApi
3434

3535
protected Configuration $config;
3636

37-
protected SerializerInterface $serializer;
37+
protected Serializer $serializer;
3838

3939
public function __construct(
4040
?Configuration $config = null,
@@ -57,6 +57,7 @@ public function getConfig(): Configuration
5757
*
5858
* @throws ApiException
5959
* @throws GuzzleException
60+
* @throws ExceptionInterface
6061
*/
6162
public function deleteDNSRecordsV1(string $domain, \Hostinger\Model\DNSV1ZoneDestroyRequest $dNSV1ZoneDestroyRequest)
6263
{
@@ -85,6 +86,7 @@ public function deleteDNSRecordsV1(string $domain, \Hostinger\Model\DNSV1ZoneDes
8586
*
8687
* @throws ApiException
8788
* @throws GuzzleException
89+
* @throws ExceptionInterface
8890
*/
8991
public function getDNSRecordsV1(string $domain)
9092
{
@@ -112,6 +114,7 @@ public function getDNSRecordsV1(string $domain)
112114
*
113115
* @throws ApiException
114116
* @throws GuzzleException
117+
* @throws ExceptionInterface
115118
*/
116119
public function resetDNSRecordsV1(string $domain, \Hostinger\Model\DNSV1ZoneResetRequest $dNSV1ZoneResetRequest)
117120
{
@@ -140,6 +143,7 @@ public function resetDNSRecordsV1(string $domain, \Hostinger\Model\DNSV1ZoneRese
140143
*
141144
* @throws ApiException
142145
* @throws GuzzleException
146+
* @throws ExceptionInterface
143147
*/
144148
public function updateDNSRecordsV1(string $domain, \Hostinger\Model\DNSV1ZoneUpdateRequest $dNSV1ZoneUpdateRequest)
145149
{
@@ -168,6 +172,7 @@ public function updateDNSRecordsV1(string $domain, \Hostinger\Model\DNSV1ZoneUpd
168172
*
169173
* @throws ApiException
170174
* @throws GuzzleException
175+
* @throws ExceptionInterface
171176
*/
172177
public function validateDNSRecordsV1(string $domain, \Hostinger\Model\DNSV1ZoneUpdateRequest $dNSV1ZoneUpdateRequest)
173178
{

src/Api/DomainsAvailabilityApi.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
use GuzzleHttp\RequestOptions;
2424
use Symfony\Component\Serializer\Encoder\JsonEncoder;
2525
use Symfony\Component\Serializer\Exception\ExceptionInterface;
26-
use Symfony\Component\Serializer\SerializerInterface;
26+
use Symfony\Component\Serializer\Serializer;
2727
use Hostinger\ApiException;
2828
use Hostinger\Configuration;
2929
use Hostinger\ObjectSerializer;
@@ -34,7 +34,7 @@ class DomainsAvailabilityApi
3434

3535
protected Configuration $config;
3636

37-
protected SerializerInterface $serializer;
37+
protected Serializer $serializer;
3838

3939
public function __construct(
4040
?Configuration $config = null,
@@ -57,6 +57,7 @@ public function getConfig(): Configuration
5757
*
5858
* @throws ApiException
5959
* @throws GuzzleException
60+
* @throws ExceptionInterface
6061
*/
6162
public function checkDomainAvailabilityV1(\Hostinger\Model\DomainsV1AvailabilityAvailabilityRequest $domainsV1AvailabilityAvailabilityRequest)
6263
{

src/Api/DomainsForwardingApi.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
use GuzzleHttp\RequestOptions;
2424
use Symfony\Component\Serializer\Encoder\JsonEncoder;
2525
use Symfony\Component\Serializer\Exception\ExceptionInterface;
26-
use Symfony\Component\Serializer\SerializerInterface;
26+
use Symfony\Component\Serializer\Serializer;
2727
use Hostinger\ApiException;
2828
use Hostinger\Configuration;
2929
use Hostinger\ObjectSerializer;
@@ -34,7 +34,7 @@ class DomainsForwardingApi
3434

3535
protected Configuration $config;
3636

37-
protected SerializerInterface $serializer;
37+
protected Serializer $serializer;
3838

3939
public function __construct(
4040
?Configuration $config = null,
@@ -57,6 +57,7 @@ public function getConfig(): Configuration
5757
*
5858
* @throws ApiException
5959
* @throws GuzzleException
60+
* @throws ExceptionInterface
6061
*/
6162
public function createDomainForwardingV1(\Hostinger\Model\DomainsV1ForwardingStoreRequest $domainsV1ForwardingStoreRequest)
6263
{
@@ -83,6 +84,7 @@ public function createDomainForwardingV1(\Hostinger\Model\DomainsV1ForwardingSto
8384
*
8485
* @throws ApiException
8586
* @throws GuzzleException
87+
* @throws ExceptionInterface
8688
*/
8789
public function deleteDomainForwardingV1(string $domain)
8890
{
@@ -110,6 +112,7 @@ public function deleteDomainForwardingV1(string $domain)
110112
*
111113
* @throws ApiException
112114
* @throws GuzzleException
115+
* @throws ExceptionInterface
113116
*/
114117
public function getDomainForwardingV1(string $domain)
115118
{

src/Api/DomainsPortfolioApi.php

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
use GuzzleHttp\RequestOptions;
2424
use Symfony\Component\Serializer\Encoder\JsonEncoder;
2525
use Symfony\Component\Serializer\Exception\ExceptionInterface;
26-
use Symfony\Component\Serializer\SerializerInterface;
26+
use Symfony\Component\Serializer\Serializer;
2727
use Hostinger\ApiException;
2828
use Hostinger\Configuration;
2929
use Hostinger\ObjectSerializer;
@@ -34,7 +34,7 @@ class DomainsPortfolioApi
3434

3535
protected Configuration $config;
3636

37-
protected SerializerInterface $serializer;
37+
protected Serializer $serializer;
3838

3939
public function __construct(
4040
?Configuration $config = null,
@@ -57,6 +57,7 @@ public function getConfig(): Configuration
5757
*
5858
* @throws ApiException
5959
* @throws GuzzleException
60+
* @throws ExceptionInterface
6061
*/
6162
public function disableDomainLockV1(string $domain)
6263
{
@@ -84,6 +85,7 @@ public function disableDomainLockV1(string $domain)
8485
*
8586
* @throws ApiException
8687
* @throws GuzzleException
88+
* @throws ExceptionInterface
8789
*/
8890
public function disablePrivacyProtectionV1(string $domain)
8991
{
@@ -111,6 +113,7 @@ public function disablePrivacyProtectionV1(string $domain)
111113
*
112114
* @throws ApiException
113115
* @throws GuzzleException
116+
* @throws ExceptionInterface
114117
*/
115118
public function enableDomainLockV1(string $domain)
116119
{
@@ -138,6 +141,7 @@ public function enableDomainLockV1(string $domain)
138141
*
139142
* @throws ApiException
140143
* @throws GuzzleException
144+
* @throws ExceptionInterface
141145
*/
142146
public function enablePrivacyProtectionV1(string $domain)
143147
{
@@ -165,6 +169,7 @@ public function enablePrivacyProtectionV1(string $domain)
165169
*
166170
* @throws ApiException
167171
* @throws GuzzleException
172+
* @throws ExceptionInterface
168173
*/
169174
public function getDomainDetailsV1(string $domain)
170175
{
@@ -192,6 +197,7 @@ public function getDomainDetailsV1(string $domain)
192197
*
193198
* @throws ApiException
194199
* @throws GuzzleException
200+
* @throws ExceptionInterface
195201
*/
196202
public function getDomainListV1()
197203
{
@@ -217,6 +223,7 @@ public function getDomainListV1()
217223
*
218224
* @throws ApiException
219225
* @throws GuzzleException
226+
* @throws ExceptionInterface
220227
*/
221228
public function purchaseNewDomainV1(\Hostinger\Model\DomainsV1PortfolioPurchaseRequest $domainsV1PortfolioPurchaseRequest)
222229
{
@@ -243,6 +250,7 @@ public function purchaseNewDomainV1(\Hostinger\Model\DomainsV1PortfolioPurchaseR
243250
*
244251
* @throws ApiException
245252
* @throws GuzzleException
253+
* @throws ExceptionInterface
246254
*/
247255
public function updateDomainNameserversV1(string $domain, \Hostinger\Model\DomainsV1PortfolioUpdateNameserversRequest $domainsV1PortfolioUpdateNameserversRequest)
248256
{

0 commit comments

Comments
 (0)