Skip to content

Commit 01fee57

Browse files
committed
chore: SDK update
1 parent 6174656 commit 01fee57

134 files changed

Lines changed: 4522 additions & 29662 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,7 @@ Class | Method | HTTP request | Description
183183
- [BillingV1SubscriptionCancelRequest](docs/Model/BillingV1SubscriptionCancelRequest.md)
184184
- [BillingV1SubscriptionSubscriptionResource](docs/Model/BillingV1SubscriptionSubscriptionResource.md)
185185
- [CommonSchemaErrorResponseSchema](docs/Model/CommonSchemaErrorResponseSchema.md)
186+
- [CommonSchemaPaginationMetaSchema](docs/Model/CommonSchemaPaginationMetaSchema.md)
186187
- [CommonSchemaUnauthorizedResponseSchema](docs/Model/CommonSchemaUnauthorizedResponseSchema.md)
187188
- [CommonSchemaUnprocessableContentResponseSchema](docs/Model/CommonSchemaUnprocessableContentResponseSchema.md)
188189
- [CommonSchemaUnprocessableContentResponseSchemaErrors](docs/Model/CommonSchemaUnprocessableContentResponseSchemaErrors.md)
@@ -191,7 +192,6 @@ Class | Method | HTTP request | Description
191192
- [VPSGetActionListV1200Response](docs/Model/VPSGetActionListV1200Response.md)
192193
- [VPSGetBackupListV1200Response](docs/Model/VPSGetBackupListV1200Response.md)
193194
- [VPSGetFirewallListV1200Response](docs/Model/VPSGetFirewallListV1200Response.md)
194-
- [VPSGetFirewallListV1200ResponseMeta](docs/Model/VPSGetFirewallListV1200ResponseMeta.md)
195195
- [VPSGetPostInstallScriptListV1200Response](docs/Model/VPSGetPostInstallScriptListV1200Response.md)
196196
- [VPSGetPublicKeyListV1200Response](docs/Model/VPSGetPublicKeyListV1200Response.md)
197197
- [VPSV1ActionActionResource](docs/Model/VPSV1ActionActionResource.md)

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@
2727
},
2828
"require-dev": {
2929
"friendsofphp/php-cs-fixer": "^3.5",
30-
"phpunit/phpunit": "^9.0"
30+
"phpunit/phpunit": "^12.0",
31+
"phpstan/phpstan": "^2.1"
3132
},
3233
"autoload": {
3334
"psr-4": { "Hostinger\\" : "src/" }

docs/Api/BillingOrdersApi.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ All URIs are relative to https://developers.hostinger.com, except if the operati
1010
## `createNewServiceOrderV1()`
1111

1212
```php
13-
createNewServiceOrderV1($billing_v1_order_store_request): \Hostinger\Model\BillingV1OrderOrderResource
13+
createNewServiceOrderV1($billingV1OrderStoreRequest): \Hostinger\Model\BillingV1OrderOrderResource
1414
```
1515

1616
Create new service order
@@ -34,10 +34,10 @@ $apiInstance = new Hostinger\Api\BillingOrdersApi(
3434
new GuzzleHttp\Client(),
3535
$config
3636
);
37-
$billing_v1_order_store_request = new \Hostinger\Model\BillingV1OrderStoreRequest(); // \Hostinger\Model\BillingV1OrderStoreRequest
37+
$billingV1OrderStoreRequest = new \Hostinger\Model\BillingV1OrderStoreRequest(); // \Hostinger\Model\BillingV1OrderStoreRequest
3838

3939
try {
40-
$result = $apiInstance->createNewServiceOrderV1($billing_v1_order_store_request);
40+
$result = $apiInstance->createNewServiceOrderV1($billingV1OrderStoreRequest);
4141
print_r($result);
4242
} catch (Exception $e) {
4343
echo 'Exception when calling BillingOrdersApi->createNewServiceOrderV1: ', $e->getMessage(), PHP_EOL;
@@ -48,7 +48,7 @@ try {
4848

4949
| Name | Type | Description | Notes |
5050
| ------------- | ------------- | ------------- | ------------- |
51-
| **billing_v1_order_store_request** | [**\Hostinger\Model\BillingV1OrderStoreRequest**](../Model/BillingV1OrderStoreRequest.md)| | |
51+
| **billingV1OrderStoreRequest** | [**\Hostinger\Model\BillingV1OrderStoreRequest**](../Model/BillingV1OrderStoreRequest.md)| | |
5252

5353
### Return type
5454

docs/Api/BillingPaymentMethodsApi.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ All URIs are relative to https://developers.hostinger.com, except if the operati
1212
## `deletePaymentMethodV1()`
1313

1414
```php
15-
deletePaymentMethodV1($payment_method_id): \Hostinger\Model\CommonSuccessEmptyResource
15+
deletePaymentMethodV1($paymentMethodId): \Hostinger\Model\CommonSuccessEmptyResource
1616
```
1717

1818
Delete payment method
@@ -36,10 +36,10 @@ $apiInstance = new Hostinger\Api\BillingPaymentMethodsApi(
3636
new GuzzleHttp\Client(),
3737
$config
3838
);
39-
$payment_method_id = 9693613; // int | Payment method ID
39+
$paymentMethodId = 9693613; // int | Payment method ID
4040

4141
try {
42-
$result = $apiInstance->deletePaymentMethodV1($payment_method_id);
42+
$result = $apiInstance->deletePaymentMethodV1($paymentMethodId);
4343
print_r($result);
4444
} catch (Exception $e) {
4545
echo 'Exception when calling BillingPaymentMethodsApi->deletePaymentMethodV1: ', $e->getMessage(), PHP_EOL;
@@ -50,7 +50,7 @@ try {
5050

5151
| Name | Type | Description | Notes |
5252
| ------------- | ------------- | ------------- | ------------- |
53-
| **payment_method_id** | **int**| Payment method ID | |
53+
| **paymentMethodId** | **int**| Payment method ID | |
5454

5555
### Return type
5656

@@ -129,7 +129,7 @@ This endpoint does not need any parameter.
129129
## `setDefaultPaymentMethodV1()`
130130

131131
```php
132-
setDefaultPaymentMethodV1($payment_method_id): \Hostinger\Model\CommonSuccessEmptyResource
132+
setDefaultPaymentMethodV1($paymentMethodId): \Hostinger\Model\CommonSuccessEmptyResource
133133
```
134134

135135
Set default payment method
@@ -153,10 +153,10 @@ $apiInstance = new Hostinger\Api\BillingPaymentMethodsApi(
153153
new GuzzleHttp\Client(),
154154
$config
155155
);
156-
$payment_method_id = 9693613; // int | Payment method ID
156+
$paymentMethodId = 9693613; // int | Payment method ID
157157

158158
try {
159-
$result = $apiInstance->setDefaultPaymentMethodV1($payment_method_id);
159+
$result = $apiInstance->setDefaultPaymentMethodV1($paymentMethodId);
160160
print_r($result);
161161
} catch (Exception $e) {
162162
echo 'Exception when calling BillingPaymentMethodsApi->setDefaultPaymentMethodV1: ', $e->getMessage(), PHP_EOL;
@@ -167,7 +167,7 @@ try {
167167

168168
| Name | Type | Description | Notes |
169169
| ------------- | ------------- | ------------- | ------------- |
170-
| **payment_method_id** | **int**| Payment method ID | |
170+
| **paymentMethodId** | **int**| Payment method ID | |
171171

172172
### Return type
173173

docs/Api/BillingSubscriptionsApi.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ All URIs are relative to https://developers.hostinger.com, except if the operati
1111
## `cancelSubscriptionV1()`
1212

1313
```php
14-
cancelSubscriptionV1($subscription_id, $billing_v1_subscription_cancel_request): \Hostinger\Model\CommonSuccessEmptyResource
14+
cancelSubscriptionV1($subscriptionId, $billingV1SubscriptionCancelRequest): \Hostinger\Model\CommonSuccessEmptyResource
1515
```
1616

1717
Cancel subscription
@@ -35,11 +35,11 @@ $apiInstance = new Hostinger\Api\BillingSubscriptionsApi(
3535
new GuzzleHttp\Client(),
3636
$config
3737
);
38-
$subscription_id = Cxy353Uhl1xC54pG6; // string | Subscription ID
39-
$billing_v1_subscription_cancel_request = new \Hostinger\Model\BillingV1SubscriptionCancelRequest(); // \Hostinger\Model\BillingV1SubscriptionCancelRequest
38+
$subscriptionId = Cxy353Uhl1xC54pG6; // string | Subscription ID
39+
$billingV1SubscriptionCancelRequest = new \Hostinger\Model\BillingV1SubscriptionCancelRequest(); // \Hostinger\Model\BillingV1SubscriptionCancelRequest
4040

4141
try {
42-
$result = $apiInstance->cancelSubscriptionV1($subscription_id, $billing_v1_subscription_cancel_request);
42+
$result = $apiInstance->cancelSubscriptionV1($subscriptionId, $billingV1SubscriptionCancelRequest);
4343
print_r($result);
4444
} catch (Exception $e) {
4545
echo 'Exception when calling BillingSubscriptionsApi->cancelSubscriptionV1: ', $e->getMessage(), PHP_EOL;
@@ -50,8 +50,8 @@ try {
5050

5151
| Name | Type | Description | Notes |
5252
| ------------- | ------------- | ------------- | ------------- |
53-
| **subscription_id** | **string**| Subscription ID | |
54-
| **billing_v1_subscription_cancel_request** | [**\Hostinger\Model\BillingV1SubscriptionCancelRequest**](../Model/BillingV1SubscriptionCancelRequest.md)| | |
53+
| **subscriptionId** | **string**| Subscription ID | |
54+
| **billingV1SubscriptionCancelRequest** | [**\Hostinger\Model\BillingV1SubscriptionCancelRequest**](../Model/BillingV1SubscriptionCancelRequest.md)| | |
5555

5656
### Return type
5757

docs/Api/VPSActionsApi.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ All URIs are relative to https://developers.hostinger.com, except if the operati
1111
## `getActionListV1()`
1212

1313
```php
14-
getActionListV1($virtual_machine_id, $page): \Hostinger\Model\VPSGetActionListV1200Response
14+
getActionListV1($virtualMachineId, $page): \Hostinger\Model\VPSGetActionListV1200Response
1515
```
1616

1717
Get action list
@@ -35,11 +35,11 @@ $apiInstance = new Hostinger\Api\VPSActionsApi(
3535
new GuzzleHttp\Client(),
3636
$config
3737
);
38-
$virtual_machine_id = 1268054; // int | Virtual Machine ID
38+
$virtualMachineId = 1268054; // int | Virtual Machine ID
3939
$page = 1; // int | Page number
4040

4141
try {
42-
$result = $apiInstance->getActionListV1($virtual_machine_id, $page);
42+
$result = $apiInstance->getActionListV1($virtualMachineId, $page);
4343
print_r($result);
4444
} catch (Exception $e) {
4545
echo 'Exception when calling VPSActionsApi->getActionListV1: ', $e->getMessage(), PHP_EOL;
@@ -50,7 +50,7 @@ try {
5050

5151
| Name | Type | Description | Notes |
5252
| ------------- | ------------- | ------------- | ------------- |
53-
| **virtual_machine_id** | **int**| Virtual Machine ID | |
53+
| **virtualMachineId** | **int**| Virtual Machine ID | |
5454
| **page** | **int**| Page number | [optional] |
5555

5656
### Return type
@@ -73,7 +73,7 @@ try {
7373
## `getActionV1()`
7474

7575
```php
76-
getActionV1($virtual_machine_id, $action_id): \Hostinger\Model\VPSV1ActionActionResource
76+
getActionV1($virtualMachineId, $actionId): \Hostinger\Model\VPSV1ActionActionResource
7777
```
7878

7979
Get action
@@ -97,11 +97,11 @@ $apiInstance = new Hostinger\Api\VPSActionsApi(
9797
new GuzzleHttp\Client(),
9898
$config
9999
);
100-
$virtual_machine_id = 1268054; // int | Virtual Machine ID
101-
$action_id = 8123712; // int | Action ID
100+
$virtualMachineId = 1268054; // int | Virtual Machine ID
101+
$actionId = 8123712; // int | Action ID
102102

103103
try {
104-
$result = $apiInstance->getActionV1($virtual_machine_id, $action_id);
104+
$result = $apiInstance->getActionV1($virtualMachineId, $actionId);
105105
print_r($result);
106106
} catch (Exception $e) {
107107
echo 'Exception when calling VPSActionsApi->getActionV1: ', $e->getMessage(), PHP_EOL;
@@ -112,8 +112,8 @@ try {
112112

113113
| Name | Type | Description | Notes |
114114
| ------------- | ------------- | ------------- | ------------- |
115-
| **virtual_machine_id** | **int**| Virtual Machine ID | |
116-
| **action_id** | **int**| Action ID | |
115+
| **virtualMachineId** | **int**| Virtual Machine ID | |
116+
| **actionId** | **int**| Action ID | |
117117

118118
### Return type
119119

docs/Api/VPSBackupsApi.md

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ All URIs are relative to https://developers.hostinger.com, except if the operati
1212
## `deleteBackupV1()`
1313

1414
```php
15-
deleteBackupV1($virtual_machine_id, $backup_id): \Hostinger\Model\CommonSuccessEmptyResource
15+
deleteBackupV1($virtualMachineId, $backupId): \Hostinger\Model\CommonSuccessEmptyResource
1616
```
1717

1818
Delete backup
@@ -36,11 +36,11 @@ $apiInstance = new Hostinger\Api\VPSBackupsApi(
3636
new GuzzleHttp\Client(),
3737
$config
3838
);
39-
$virtual_machine_id = 1268054; // int | Virtual Machine ID
40-
$backup_id = 8676502; // int | Backup ID
39+
$virtualMachineId = 1268054; // int | Virtual Machine ID
40+
$backupId = 8676502; // int | Backup ID
4141

4242
try {
43-
$result = $apiInstance->deleteBackupV1($virtual_machine_id, $backup_id);
43+
$result = $apiInstance->deleteBackupV1($virtualMachineId, $backupId);
4444
print_r($result);
4545
} catch (Exception $e) {
4646
echo 'Exception when calling VPSBackupsApi->deleteBackupV1: ', $e->getMessage(), PHP_EOL;
@@ -51,8 +51,8 @@ try {
5151

5252
| Name | Type | Description | Notes |
5353
| ------------- | ------------- | ------------- | ------------- |
54-
| **virtual_machine_id** | **int**| Virtual Machine ID | |
55-
| **backup_id** | **int**| Backup ID | |
54+
| **virtualMachineId** | **int**| Virtual Machine ID | |
55+
| **backupId** | **int**| Backup ID | |
5656

5757
### Return type
5858

@@ -74,7 +74,7 @@ try {
7474
## `getBackupListV1()`
7575

7676
```php
77-
getBackupListV1($virtual_machine_id, $page): \Hostinger\Model\VPSGetBackupListV1200Response
77+
getBackupListV1($virtualMachineId, $page): \Hostinger\Model\VPSGetBackupListV1200Response
7878
```
7979

8080
Get backup list
@@ -98,11 +98,11 @@ $apiInstance = new Hostinger\Api\VPSBackupsApi(
9898
new GuzzleHttp\Client(),
9999
$config
100100
);
101-
$virtual_machine_id = 1268054; // int | Virtual Machine ID
101+
$virtualMachineId = 1268054; // int | Virtual Machine ID
102102
$page = 1; // int | Page number
103103

104104
try {
105-
$result = $apiInstance->getBackupListV1($virtual_machine_id, $page);
105+
$result = $apiInstance->getBackupListV1($virtualMachineId, $page);
106106
print_r($result);
107107
} catch (Exception $e) {
108108
echo 'Exception when calling VPSBackupsApi->getBackupListV1: ', $e->getMessage(), PHP_EOL;
@@ -113,7 +113,7 @@ try {
113113

114114
| Name | Type | Description | Notes |
115115
| ------------- | ------------- | ------------- | ------------- |
116-
| **virtual_machine_id** | **int**| Virtual Machine ID | |
116+
| **virtualMachineId** | **int**| Virtual Machine ID | |
117117
| **page** | **int**| Page number | [optional] |
118118

119119
### Return type
@@ -136,7 +136,7 @@ try {
136136
## `restoreBackupV1()`
137137

138138
```php
139-
restoreBackupV1($virtual_machine_id, $backup_id): \Hostinger\Model\VPSV1ActionActionResource
139+
restoreBackupV1($virtualMachineId, $backupId): \Hostinger\Model\VPSV1ActionActionResource
140140
```
141141

142142
Restore backup
@@ -160,11 +160,11 @@ $apiInstance = new Hostinger\Api\VPSBackupsApi(
160160
new GuzzleHttp\Client(),
161161
$config
162162
);
163-
$virtual_machine_id = 1268054; // int | Virtual Machine ID
164-
$backup_id = 8676502; // int | Backup ID
163+
$virtualMachineId = 1268054; // int | Virtual Machine ID
164+
$backupId = 8676502; // int | Backup ID
165165

166166
try {
167-
$result = $apiInstance->restoreBackupV1($virtual_machine_id, $backup_id);
167+
$result = $apiInstance->restoreBackupV1($virtualMachineId, $backupId);
168168
print_r($result);
169169
} catch (Exception $e) {
170170
echo 'Exception when calling VPSBackupsApi->restoreBackupV1: ', $e->getMessage(), PHP_EOL;
@@ -175,8 +175,8 @@ try {
175175

176176
| Name | Type | Description | Notes |
177177
| ------------- | ------------- | ------------- | ------------- |
178-
| **virtual_machine_id** | **int**| Virtual Machine ID | |
179-
| **backup_id** | **int**| Backup ID | |
178+
| **virtualMachineId** | **int**| Virtual Machine ID | |
179+
| **backupId** | **int**| Backup ID | |
180180

181181
### Return type
182182

0 commit comments

Comments
 (0)