Skip to content

Commit fb93bea

Browse files
chore: sdk update
1 parent 71f5fc3 commit fb93bea

844 files changed

Lines changed: 2316 additions & 844 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: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,12 +143,15 @@ Class | Method | HTTP request | Description
143143
*DomainsPortfolioApi* | [**update_domain_nameservers_v1**](docs/DomainsPortfolioApi.md#update_domain_nameservers_v1) | **PUT** /api/domains/v1/portfolio/{domain}/nameservers | Update domain nameservers
144144
*DomainsTransferApi* | [**get_transfer_list_v1**](docs/DomainsTransferApi.md#get_transfer_list_v1) | **GET** /api/domains/v1/transfers | Get transfer list
145145
*DomainsTransferApi* | [**get_transfer_v1**](docs/DomainsTransferApi.md#get_transfer_v1) | **GET** /api/domains/v1/transfers/{domain} | Get transfer
146+
*DomainsWHOISApi* | [**cancel_pending_irtp_verification_v1**](docs/DomainsWHOISApi.md#cancel_pending_irtp_verification_v1) | **DELETE** /api/domains/v1/irtp/{domain} | Cancel pending IRTP verification
147+
*DomainsWHOISApi* | [**change_whois_profile_for_domain_v1**](docs/DomainsWHOISApi.md#change_whois_profile_for_domain_v1) | **PUT** /api/domains/v1/whois/change | Change WHOIS profile for domain
146148
*DomainsWHOISApi* | [**create_whois_profile_v1**](docs/DomainsWHOISApi.md#create_whois_profile_v1) | **POST** /api/domains/v1/whois | Create WHOIS profile
147149
*DomainsWHOISApi* | [**delete_whois_profile_v1**](docs/DomainsWHOISApi.md#delete_whois_profile_v1) | **DELETE** /api/domains/v1/whois/{whoisId} | Delete WHOIS profile
150+
*DomainsWHOISApi* | [**get_pending_irtp_verification_v1**](docs/DomainsWHOISApi.md#get_pending_irtp_verification_v1) | **GET** /api/domains/v1/irtp/{domain} | Get pending IRTP verification
148151
*DomainsWHOISApi* | [**get_whois_profile_list_v1**](docs/DomainsWHOISApi.md#get_whois_profile_list_v1) | **GET** /api/domains/v1/whois | Get WHOIS profile list
149152
*DomainsWHOISApi* | [**get_whois_profile_usage_v1**](docs/DomainsWHOISApi.md#get_whois_profile_usage_v1) | **GET** /api/domains/v1/whois/{whoisId}/usage | Get WHOIS profile usage
150153
*DomainsWHOISApi* | [**get_whois_profile_v1**](docs/DomainsWHOISApi.md#get_whois_profile_v1) | **GET** /api/domains/v1/whois/{whoisId} | Get WHOIS profile
151-
*DomainsWHOISApi* | [**set_whois_profile_as_default_v1**](docs/DomainsWHOISApi.md#set_whois_profile_as_default_v1) | **PATCH** /api/domains/v1/whois/default/{whoisId} | Set WHOIS profile as default
154+
*DomainsWHOISApi* | [**set_whois_profile_as_default_v1**](docs/DomainsWHOISApi.md#set_whois_profile_as_default_v1) | **PUT** /api/domains/v1/whois/default/{whoisId} | Set WHOIS profile as default
152155
*DomainsWHOISApi* | [**unset_default_whois_profile_v1**](docs/DomainsWHOISApi.md#unset_default_whois_profile_v1) | **DELETE** /api/domains/v1/whois/default/{whoisId} | Unset default WHOIS profile
153156
*EcommerceMiscellaneousApi* | [**get_custom_storefront_setup_instructions_v1**](docs/EcommerceMiscellaneousApi.md#get_custom_storefront_setup_instructions_v1) | **GET** /api/ecommerce/v1/miscellaneous/custom-storefront-instructions | Get custom storefront setup instructions
154157
*EcommercePaymentsApi* | [**enable_manual_payment_method_v1**](docs/EcommercePaymentsApi.md#enable_manual_payment_method_v1) | **POST** /api/ecommerce/v1/stores/{store_id}/payment-methods/manual | Enable manual payment method
@@ -450,12 +453,14 @@ Class | Method | HTTP request | Description
450453
- [DomainsV1ForwardingForwardingResource](docs/DomainsV1ForwardingForwardingResource.md)
451454
- [DomainsV1ForwardingStoreRequest](docs/DomainsV1ForwardingStoreRequest.md)
452455
- [DomainsV1ForwardingUpdateRequest](docs/DomainsV1ForwardingUpdateRequest.md)
456+
- [DomainsV1IRTPVerificationResource](docs/DomainsV1IRTPVerificationResource.md)
453457
- [DomainsV1PortfolioAuthCodeAuthCodeResource](docs/DomainsV1PortfolioAuthCodeAuthCodeResource.md)
454458
- [DomainsV1PortfolioPurchaseRequest](docs/DomainsV1PortfolioPurchaseRequest.md)
455459
- [DomainsV1PortfolioPurchaseRequestDomainContacts](docs/DomainsV1PortfolioPurchaseRequestDomainContacts.md)
456460
- [DomainsV1PortfolioRenewalRenewalInformationResource](docs/DomainsV1PortfolioRenewalRenewalInformationResource.md)
457461
- [DomainsV1PortfolioUpdateNameserversRequest](docs/DomainsV1PortfolioUpdateNameserversRequest.md)
458462
- [DomainsV1TransferTransferResource](docs/DomainsV1TransferTransferResource.md)
463+
- [DomainsV1WHOISChangeUpdateRequest](docs/DomainsV1WHOISChangeUpdateRequest.md)
459464
- [DomainsV1WHOISProfileResource](docs/DomainsV1WHOISProfileResource.md)
460465
- [DomainsV1WHOISStoreRequest](docs/DomainsV1WHOISStoreRequest.md)
461466
- [EcommerceGetStoresV1200Response](docs/EcommerceGetStoresV1200Response.md)
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# DomainsV1IRTPVerificationResource
2+
3+
4+
## Properties
5+
6+
Name | Type | Description | Notes
7+
------------ | ------------- | ------------- | -------------
8+
**domain** | **str** | Domain name | [optional]
9+
**status** | **str** | IRTP verification status | [optional]
10+
**old_confirmed_at** | **datetime** | When the old registrant confirmed the change | [optional]
11+
**new_confirmed_at** | **datetime** | When the new registrant confirmed the change | [optional]
12+
**old_whois_profile_email** | **str** | Email the old registrant confirmation was sent to | [optional]
13+
**new_whois_profile_email** | **str** | Email the new registrant confirmation was sent to | [optional]
14+
**expires_at** | **datetime** | When the verification auto-cancels if unconfirmed | [optional]
15+
16+
## Example
17+
18+
```python
19+
from hostinger_api.models.domains_v1_irtp_verification_resource import DomainsV1IRTPVerificationResource
20+
21+
# TODO update the JSON string below
22+
json = "{}"
23+
# create an instance of DomainsV1IRTPVerificationResource from a JSON string
24+
domains_v1_irtp_verification_resource_instance = DomainsV1IRTPVerificationResource.from_json(json)
25+
# print the JSON string representation of the object
26+
print(DomainsV1IRTPVerificationResource.to_json())
27+
28+
# convert the object into a dict
29+
domains_v1_irtp_verification_resource_dict = domains_v1_irtp_verification_resource_instance.to_dict()
30+
# create an instance of DomainsV1IRTPVerificationResource from a dict
31+
domains_v1_irtp_verification_resource_from_dict = DomainsV1IRTPVerificationResource.from_dict(domains_v1_irtp_verification_resource_dict)
32+
```
33+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
34+
35+
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# DomainsV1WHOISChangeUpdateRequest
2+
3+
4+
## Properties
5+
6+
Name | Type | Description | Notes
7+
------------ | ------------- | ------------- | -------------
8+
**new_whois_id** | **int** | WHOIS profile ID to assign to the domain |
9+
**domain** | **str** | Domain name |
10+
**change_for** | **List[str]** | Contact roles to repoint to the new WHOIS profile |
11+
12+
## Example
13+
14+
```python
15+
from hostinger_api.models.domains_v1_whois_change_update_request import DomainsV1WHOISChangeUpdateRequest
16+
17+
# TODO update the JSON string below
18+
json = "{}"
19+
# create an instance of DomainsV1WHOISChangeUpdateRequest from a JSON string
20+
domains_v1_whois_change_update_request_instance = DomainsV1WHOISChangeUpdateRequest.from_json(json)
21+
# print the JSON string representation of the object
22+
print(DomainsV1WHOISChangeUpdateRequest.to_json())
23+
24+
# convert the object into a dict
25+
domains_v1_whois_change_update_request_dict = domains_v1_whois_change_update_request_instance.to_dict()
26+
# create an instance of DomainsV1WHOISChangeUpdateRequest from a dict
27+
domains_v1_whois_change_update_request_from_dict = DomainsV1WHOISChangeUpdateRequest.from_dict(domains_v1_whois_change_update_request_dict)
28+
```
29+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
30+
31+

docs/DomainsWHOISApi.md

Lines changed: 233 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,173 @@ All URIs are relative to *https://developers.hostinger.com*
44

55
Method | HTTP request | Description
66
------------- | ------------- | -------------
7+
[**cancel_pending_irtp_verification_v1**](DomainsWHOISApi.md#cancel_pending_irtp_verification_v1) | **DELETE** /api/domains/v1/irtp/{domain} | Cancel pending IRTP verification
8+
[**change_whois_profile_for_domain_v1**](DomainsWHOISApi.md#change_whois_profile_for_domain_v1) | **PUT** /api/domains/v1/whois/change | Change WHOIS profile for domain
79
[**create_whois_profile_v1**](DomainsWHOISApi.md#create_whois_profile_v1) | **POST** /api/domains/v1/whois | Create WHOIS profile
810
[**delete_whois_profile_v1**](DomainsWHOISApi.md#delete_whois_profile_v1) | **DELETE** /api/domains/v1/whois/{whoisId} | Delete WHOIS profile
11+
[**get_pending_irtp_verification_v1**](DomainsWHOISApi.md#get_pending_irtp_verification_v1) | **GET** /api/domains/v1/irtp/{domain} | Get pending IRTP verification
912
[**get_whois_profile_list_v1**](DomainsWHOISApi.md#get_whois_profile_list_v1) | **GET** /api/domains/v1/whois | Get WHOIS profile list
1013
[**get_whois_profile_usage_v1**](DomainsWHOISApi.md#get_whois_profile_usage_v1) | **GET** /api/domains/v1/whois/{whoisId}/usage | Get WHOIS profile usage
1114
[**get_whois_profile_v1**](DomainsWHOISApi.md#get_whois_profile_v1) | **GET** /api/domains/v1/whois/{whoisId} | Get WHOIS profile
12-
[**set_whois_profile_as_default_v1**](DomainsWHOISApi.md#set_whois_profile_as_default_v1) | **PATCH** /api/domains/v1/whois/default/{whoisId} | Set WHOIS profile as default
15+
[**set_whois_profile_as_default_v1**](DomainsWHOISApi.md#set_whois_profile_as_default_v1) | **PUT** /api/domains/v1/whois/default/{whoisId} | Set WHOIS profile as default
1316
[**unset_default_whois_profile_v1**](DomainsWHOISApi.md#unset_default_whois_profile_v1) | **DELETE** /api/domains/v1/whois/default/{whoisId} | Unset default WHOIS profile
1417

1518

19+
# **cancel_pending_irtp_verification_v1**
20+
> CommonSuccessEmptyResource cancel_pending_irtp_verification_v1(domain)
21+
22+
Cancel pending IRTP verification
23+
24+
Cancel a pending IRTP verification.
25+
26+
Use this endpoint to back out of a WHOIS change that is stuck waiting on registrant confirmation,
27+
for example when the confirmation email cannot be received, without waiting out the 5-day expiry.
28+
29+
### Example
30+
31+
* Bearer Authentication (apiToken):
32+
33+
```python
34+
import hostinger_api
35+
from hostinger_api.models.common_success_empty_resource import CommonSuccessEmptyResource
36+
from hostinger_api.rest import ApiException
37+
from pprint import pprint
38+
39+
40+
# Configure Bearer authorization: apiToken
41+
configuration = hostinger_api.Configuration(
42+
access_token = os.environ["BEARER_TOKEN"]
43+
)
44+
45+
# Enter a context with an instance of the API client
46+
with hostinger_api.ApiClient(configuration) as api_client:
47+
# Create an instance of the API class
48+
api_instance = hostinger_api.DomainsWHOISApi(api_client)
49+
domain = 'mydomain.tld' # str | Domain name
50+
51+
try:
52+
# Cancel pending IRTP verification
53+
api_response = api_instance.cancel_pending_irtp_verification_v1(domain)
54+
print("The response of DomainsWHOISApi->cancel_pending_irtp_verification_v1:\n")
55+
pprint(api_response)
56+
except Exception as e:
57+
print("Exception when calling DomainsWHOISApi->cancel_pending_irtp_verification_v1: %s\n" % e)
58+
```
59+
60+
61+
62+
### Parameters
63+
64+
65+
Name | Type | Description | Notes
66+
------------- | ------------- | ------------- | -------------
67+
**domain** | **str**| Domain name |
68+
69+
### Return type
70+
71+
[**CommonSuccessEmptyResource**](CommonSuccessEmptyResource.md)
72+
73+
### Authorization
74+
75+
[apiToken](../README.md#apiToken)
76+
77+
### HTTP request headers
78+
79+
- **Content-Type**: Not defined
80+
- **Accept**: application/json
81+
82+
### HTTP response details
83+
84+
| Status code | Description | Response headers |
85+
|-------------|-------------|------------------|
86+
**200** | Success empty response | - |
87+
**401** | Unauthenticated response | - |
88+
**500** | Error response | - |
89+
90+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
91+
92+
# **change_whois_profile_for_domain_v1**
93+
> CommonSuccessEmptyResource change_whois_profile_for_domain_v1(domains_v1_whois_change_update_request)
94+
95+
Change WHOIS profile for domain
96+
97+
Change WHOIS contact profile for a domain.
98+
99+
Repoints the given contact roles to a new WHOIS profile and submits the change to the registry.
100+
The profile currently assigned to those roles is resolved automatically;
101+
the request fails if the given roles are not all on the same profile today.
102+
103+
Changing transfer sensitive fields on the owner contact starts an IRTP verification.
104+
105+
The change is processed asynchronously.
106+
107+
Use this endpoint to move a registered domain onto different contact information.
108+
109+
### Example
110+
111+
* Bearer Authentication (apiToken):
112+
113+
```python
114+
import hostinger_api
115+
from hostinger_api.models.common_success_empty_resource import CommonSuccessEmptyResource
116+
from hostinger_api.models.domains_v1_whois_change_update_request import DomainsV1WHOISChangeUpdateRequest
117+
from hostinger_api.rest import ApiException
118+
from pprint import pprint
119+
120+
121+
# Configure Bearer authorization: apiToken
122+
configuration = hostinger_api.Configuration(
123+
access_token = os.environ["BEARER_TOKEN"]
124+
)
125+
126+
# Enter a context with an instance of the API client
127+
with hostinger_api.ApiClient(configuration) as api_client:
128+
# Create an instance of the API class
129+
api_instance = hostinger_api.DomainsWHOISApi(api_client)
130+
domains_v1_whois_change_update_request = hostinger_api.DomainsV1WHOISChangeUpdateRequest() # DomainsV1WHOISChangeUpdateRequest |
131+
132+
try:
133+
# Change WHOIS profile for domain
134+
api_response = api_instance.change_whois_profile_for_domain_v1(domains_v1_whois_change_update_request)
135+
print("The response of DomainsWHOISApi->change_whois_profile_for_domain_v1:\n")
136+
pprint(api_response)
137+
except Exception as e:
138+
print("Exception when calling DomainsWHOISApi->change_whois_profile_for_domain_v1: %s\n" % e)
139+
```
140+
141+
142+
143+
### Parameters
144+
145+
146+
Name | Type | Description | Notes
147+
------------- | ------------- | ------------- | -------------
148+
**domains_v1_whois_change_update_request** | [**DomainsV1WHOISChangeUpdateRequest**](DomainsV1WHOISChangeUpdateRequest.md)| |
149+
150+
### Return type
151+
152+
[**CommonSuccessEmptyResource**](CommonSuccessEmptyResource.md)
153+
154+
### Authorization
155+
156+
[apiToken](../README.md#apiToken)
157+
158+
### HTTP request headers
159+
160+
- **Content-Type**: application/json
161+
- **Accept**: application/json
162+
163+
### HTTP response details
164+
165+
| Status code | Description | Response headers |
166+
|-------------|-------------|------------------|
167+
**200** | Success empty response | - |
168+
**422** | Validation error response | - |
169+
**401** | Unauthenticated response | - |
170+
**500** | Error response | - |
171+
172+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
173+
16174
# **create_whois_profile_v1**
17175
> DomainsV1WHOISProfileResource create_whois_profile_v1(domains_v1_whois_store_request)
18176
@@ -159,6 +317,80 @@ Name | Type | Description | Notes
159317

160318
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
161319

320+
# **get_pending_irtp_verification_v1**
321+
> DomainsV1IRTPVerificationResource get_pending_irtp_verification_v1(domain)
322+
323+
Get pending IRTP verification
324+
325+
Retrieve a pending IRTP verification for a domain.
326+
327+
Both the old and new registrant must confirm it before the WHOIS change takes effect.
328+
329+
Use this endpoint to check the status of a WHOIS change awaiting registrant confirmation.
330+
331+
### Example
332+
333+
* Bearer Authentication (apiToken):
334+
335+
```python
336+
import hostinger_api
337+
from hostinger_api.models.domains_v1_irtp_verification_resource import DomainsV1IRTPVerificationResource
338+
from hostinger_api.rest import ApiException
339+
from pprint import pprint
340+
341+
342+
# Configure Bearer authorization: apiToken
343+
configuration = hostinger_api.Configuration(
344+
access_token = os.environ["BEARER_TOKEN"]
345+
)
346+
347+
# Enter a context with an instance of the API client
348+
with hostinger_api.ApiClient(configuration) as api_client:
349+
# Create an instance of the API class
350+
api_instance = hostinger_api.DomainsWHOISApi(api_client)
351+
domain = 'mydomain.tld' # str | Domain name
352+
353+
try:
354+
# Get pending IRTP verification
355+
api_response = api_instance.get_pending_irtp_verification_v1(domain)
356+
print("The response of DomainsWHOISApi->get_pending_irtp_verification_v1:\n")
357+
pprint(api_response)
358+
except Exception as e:
359+
print("Exception when calling DomainsWHOISApi->get_pending_irtp_verification_v1: %s\n" % e)
360+
```
361+
362+
363+
364+
### Parameters
365+
366+
367+
Name | Type | Description | Notes
368+
------------- | ------------- | ------------- | -------------
369+
**domain** | **str**| Domain name |
370+
371+
### Return type
372+
373+
[**DomainsV1IRTPVerificationResource**](DomainsV1IRTPVerificationResource.md)
374+
375+
### Authorization
376+
377+
[apiToken](../README.md#apiToken)
378+
379+
### HTTP request headers
380+
381+
- **Content-Type**: Not defined
382+
- **Accept**: application/json
383+
384+
### HTTP response details
385+
386+
| Status code | Description | Response headers |
387+
|-------------|-------------|------------------|
388+
**200** | Success response | - |
389+
**401** | Unauthenticated response | - |
390+
**500** | Error response | - |
391+
392+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
393+
162394
# **get_whois_profile_list_v1**
163395
> List[DomainsV1WHOISProfileResource] get_whois_profile_list_v1(tld=tld)
164396

hostinger_api/__init__.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@
55
"""
66
Hostinger API Python SDK
77
8-
API Version: 1.24.0
8+
API Version: 1.25.0
99
1010
NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
1111
If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
1212
""" # noqa: E501
1313

1414

15-
__version__ = "3.22.0"
15+
__version__ = "3.23.0"
1616

1717
# import apis into sdk package
1818
from hostinger_api.api.agency_hosting_cache_api import AgencyHostingCacheApi
@@ -193,12 +193,14 @@
193193
from hostinger_api.models.domains_v1_forwarding_forwarding_resource import DomainsV1ForwardingForwardingResource
194194
from hostinger_api.models.domains_v1_forwarding_store_request import DomainsV1ForwardingStoreRequest
195195
from hostinger_api.models.domains_v1_forwarding_update_request import DomainsV1ForwardingUpdateRequest
196+
from hostinger_api.models.domains_v1_irtp_verification_resource import DomainsV1IRTPVerificationResource
196197
from hostinger_api.models.domains_v1_portfolio_auth_code_auth_code_resource import DomainsV1PortfolioAuthCodeAuthCodeResource
197198
from hostinger_api.models.domains_v1_portfolio_purchase_request import DomainsV1PortfolioPurchaseRequest
198199
from hostinger_api.models.domains_v1_portfolio_purchase_request_domain_contacts import DomainsV1PortfolioPurchaseRequestDomainContacts
199200
from hostinger_api.models.domains_v1_portfolio_renewal_renewal_information_resource import DomainsV1PortfolioRenewalRenewalInformationResource
200201
from hostinger_api.models.domains_v1_portfolio_update_nameservers_request import DomainsV1PortfolioUpdateNameserversRequest
201202
from hostinger_api.models.domains_v1_transfer_transfer_resource import DomainsV1TransferTransferResource
203+
from hostinger_api.models.domains_v1_whois_change_update_request import DomainsV1WHOISChangeUpdateRequest
202204
from hostinger_api.models.domains_v1_whois_profile_resource import DomainsV1WHOISProfileResource
203205
from hostinger_api.models.domains_v1_whois_store_request import DomainsV1WHOISStoreRequest
204206
from hostinger_api.models.ecommerce_get_stores_v1200_response import EcommerceGetStoresV1200Response

hostinger_api/api/agency_hosting_cache_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"""
44
Hostinger API Python SDK
55
6-
API Version: 1.24.0
6+
API Version: 1.25.0
77
88
NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
99
If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api

0 commit comments

Comments
 (0)