Skip to content

Commit 8a26cb9

Browse files
chore: sdk update
1 parent bb69d90 commit 8a26cb9

673 files changed

Lines changed: 1958 additions & 661 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: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,7 @@ Class | Method | HTTP request | Description
188188
*HostingWebsitesApi* | [**create_website_v1**](docs/HostingWebsitesApi.md#create_website_v1) | **POST** /api/hosting/v1/websites | Create website
189189
*HostingWebsitesApi* | [**delete_website_v1**](docs/HostingWebsitesApi.md#delete_website_v1) | **DELETE** /api/hosting/v1/websites/{domain} | Delete website
190190
*HostingWebsitesApi* | [**list_websites_v1**](docs/HostingWebsitesApi.md#list_websites_v1) | **GET** /api/hosting/v1/websites | List websites
191+
*MailOrdersApi* | [**get_mail_order_list_v1**](docs/MailOrdersApi.md#get_mail_order_list_v1) | **GET** /api/mail/v1/orders | Get mail order list
191192
*ReachContactsApi* | [**create_a_new_contact_v1**](docs/ReachContactsApi.md#create_a_new_contact_v1) | **POST** /api/reach/v1/contacts | Create a new contact
192193
*ReachContactsApi* | [**create_new_contacts_v1**](docs/ReachContactsApi.md#create_new_contacts_v1) | **POST** /api/reach/v1/profiles/{profileUuid}/contacts | Create new contacts
193194
*ReachContactsApi* | [**delete_a_contact_v1**](docs/ReachContactsApi.md#delete_a_contact_v1) | **DELETE** /api/reach/v1/contacts/{uuid} | Delete a contact
@@ -468,6 +469,10 @@ Class | Method | HTTP request | Description
468469
- [InlineObject1](docs/InlineObject1.md)
469470
- [InlineObject2](docs/InlineObject2.md)
470471
- [InlineObject2Errors](docs/InlineObject2Errors.md)
472+
- [MailGetMailOrderListV1200Response](docs/MailGetMailOrderListV1200Response.md)
473+
- [MailV1OrdersOrderDomainResource](docs/MailV1OrdersOrderDomainResource.md)
474+
- [MailV1OrdersOrderPlanResource](docs/MailV1OrdersOrderPlanResource.md)
475+
- [MailV1OrdersOrderResource](docs/MailV1OrdersOrderResource.md)
471476
- [ReachListContactsV1200Response](docs/ReachListContactsV1200Response.md)
472477
- [ReachListProfileSegmentContactsV1200Response](docs/ReachListProfileSegmentContactsV1200Response.md)
473478
- [ReachV1ContactsContactResource](docs/ReachV1ContactsContactResource.md)
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# MailGetMailOrderListV1200Response
2+
3+
4+
## Properties
5+
6+
Name | Type | Description | Notes
7+
------------ | ------------- | ------------- | -------------
8+
**data** | [**List[MailV1OrdersOrderResource]**](MailV1OrdersOrderResource.md) | Array of [`Mail.V1.Orders.OrderResource`](#model/mailv1ordersorderresource) | [optional]
9+
**meta** | [**CommonSchemaPaginationMetaSchema**](CommonSchemaPaginationMetaSchema.md) | | [optional]
10+
11+
## Example
12+
13+
```python
14+
from hostinger_api.models.mail_get_mail_order_list_v1200_response import MailGetMailOrderListV1200Response
15+
16+
# TODO update the JSON string below
17+
json = "{}"
18+
# create an instance of MailGetMailOrderListV1200Response from a JSON string
19+
mail_get_mail_order_list_v1200_response_instance = MailGetMailOrderListV1200Response.from_json(json)
20+
# print the JSON string representation of the object
21+
print(MailGetMailOrderListV1200Response.to_json())
22+
23+
# convert the object into a dict
24+
mail_get_mail_order_list_v1200_response_dict = mail_get_mail_order_list_v1200_response_instance.to_dict()
25+
# create an instance of MailGetMailOrderListV1200Response from a dict
26+
mail_get_mail_order_list_v1200_response_from_dict = MailGetMailOrderListV1200Response.from_dict(mail_get_mail_order_list_v1200_response_dict)
27+
```
28+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
29+
30+

docs/MailOrdersApi.md

Lines changed: 93 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
1+
# hostinger_api.MailOrdersApi
2+
3+
All URIs are relative to *https://developers.hostinger.com*
4+
5+
Method | HTTP request | Description
6+
------------- | ------------- | -------------
7+
[**get_mail_order_list_v1**](MailOrdersApi.md#get_mail_order_list_v1) | **GET** /api/mail/v1/orders | Get mail order list
8+
9+
10+
# **get_mail_order_list_v1**
11+
> MailGetMailOrderListV1200Response get_mail_order_list_v1(domain=domain, status=status, is_trial=is_trial, sort=sort, page=page, per_page=per_page)
12+
13+
Get mail order list
14+
15+
Retrieve a paginated list of mail orders associated with your account.
16+
17+
Use this endpoint to monitor your mail services, including their status,
18+
plan, attached domain, and expiration details.
19+
20+
### Example
21+
22+
* Bearer Authentication (apiToken):
23+
24+
```python
25+
import hostinger_api
26+
from hostinger_api.models.mail_get_mail_order_list_v1200_response import MailGetMailOrderListV1200Response
27+
from hostinger_api.rest import ApiException
28+
from pprint import pprint
29+
30+
31+
# Configure Bearer authorization: apiToken
32+
configuration = hostinger_api.Configuration(
33+
access_token = os.environ["BEARER_TOKEN"]
34+
)
35+
36+
# Enter a context with an instance of the API client
37+
with hostinger_api.ApiClient(configuration) as api_client:
38+
# Create an instance of the API class
39+
api_instance = hostinger_api.MailOrdersApi(api_client)
40+
domain = 'example.com' # str | Filter orders by domain name (exact match) (optional)
41+
status = 'active' # str | Filter orders by status (optional)
42+
is_trial = false # bool | Filter orders by trial state (optional)
43+
sort = -created_at # str | Sort orders by field. Prefix with `-` for descending order. (optional) (default to -created_at)
44+
page = 1 # int | Page number (optional)
45+
per_page = 25 # int | Number of items per page (optional) (default to 25)
46+
47+
try:
48+
# Get mail order list
49+
api_response = api_instance.get_mail_order_list_v1(domain=domain, status=status, is_trial=is_trial, sort=sort, page=page, per_page=per_page)
50+
print("The response of MailOrdersApi->get_mail_order_list_v1:\n")
51+
pprint(api_response)
52+
except Exception as e:
53+
print("Exception when calling MailOrdersApi->get_mail_order_list_v1: %s\n" % e)
54+
```
55+
56+
57+
58+
### Parameters
59+
60+
61+
Name | Type | Description | Notes
62+
------------- | ------------- | ------------- | -------------
63+
**domain** | **str**| Filter orders by domain name (exact match) | [optional]
64+
**status** | **str**| Filter orders by status | [optional]
65+
**is_trial** | **bool**| Filter orders by trial state | [optional]
66+
**sort** | **str**| Sort orders by field. Prefix with `-` for descending order. | [optional] [default to -created_at]
67+
**page** | **int**| Page number | [optional]
68+
**per_page** | **int**| Number of items per page | [optional] [default to 25]
69+
70+
### Return type
71+
72+
[**MailGetMailOrderListV1200Response**](MailGetMailOrderListV1200Response.md)
73+
74+
### Authorization
75+
76+
[apiToken](../README.md#apiToken)
77+
78+
### HTTP request headers
79+
80+
- **Content-Type**: Not defined
81+
- **Accept**: application/json
82+
83+
### HTTP response details
84+
85+
| Status code | Description | Response headers |
86+
|-------------|-------------|------------------|
87+
**200** | Success response | - |
88+
**401** | Unauthenticated response | - |
89+
**422** | Error response | - |
90+
**500** | Error response | - |
91+
92+
[[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)
93+
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# MailV1OrdersOrderDomainResource
2+
3+
4+
## Properties
5+
6+
Name | Type | Description | Notes
7+
------------ | ------------- | ------------- | -------------
8+
**id** | **str** | Domain resource ID | [optional]
9+
**name** | **str** | Domain name | [optional]
10+
11+
## Example
12+
13+
```python
14+
from hostinger_api.models.mail_v1_orders_order_domain_resource import MailV1OrdersOrderDomainResource
15+
16+
# TODO update the JSON string below
17+
json = "{}"
18+
# create an instance of MailV1OrdersOrderDomainResource from a JSON string
19+
mail_v1_orders_order_domain_resource_instance = MailV1OrdersOrderDomainResource.from_json(json)
20+
# print the JSON string representation of the object
21+
print(MailV1OrdersOrderDomainResource.to_json())
22+
23+
# convert the object into a dict
24+
mail_v1_orders_order_domain_resource_dict = mail_v1_orders_order_domain_resource_instance.to_dict()
25+
# create an instance of MailV1OrdersOrderDomainResource from a dict
26+
mail_v1_orders_order_domain_resource_from_dict = MailV1OrdersOrderDomainResource.from_dict(mail_v1_orders_order_domain_resource_dict)
27+
```
28+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
29+
30+
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# MailV1OrdersOrderPlanResource
2+
3+
4+
## Properties
5+
6+
Name | Type | Description | Notes
7+
------------ | ------------- | ------------- | -------------
8+
**name** | **str** | Plan name | [optional]
9+
**title** | **str** | Plan title | [optional]
10+
11+
## Example
12+
13+
```python
14+
from hostinger_api.models.mail_v1_orders_order_plan_resource import MailV1OrdersOrderPlanResource
15+
16+
# TODO update the JSON string below
17+
json = "{}"
18+
# create an instance of MailV1OrdersOrderPlanResource from a JSON string
19+
mail_v1_orders_order_plan_resource_instance = MailV1OrdersOrderPlanResource.from_json(json)
20+
# print the JSON string representation of the object
21+
print(MailV1OrdersOrderPlanResource.to_json())
22+
23+
# convert the object into a dict
24+
mail_v1_orders_order_plan_resource_dict = mail_v1_orders_order_plan_resource_instance.to_dict()
25+
# create an instance of MailV1OrdersOrderPlanResource from a dict
26+
mail_v1_orders_order_plan_resource_from_dict = MailV1OrdersOrderPlanResource.from_dict(mail_v1_orders_order_plan_resource_dict)
27+
```
28+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
29+
30+

docs/MailV1OrdersOrderResource.md

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# MailV1OrdersOrderResource
2+
3+
4+
## Properties
5+
6+
Name | Type | Description | Notes
7+
------------ | ------------- | ------------- | -------------
8+
**id** | **str** | Order resource ID | [optional]
9+
**status** | **str** | Order status | [optional]
10+
**is_trial** | **bool** | Whether the order is currently in a trial period | [optional]
11+
**seats** | **int** | Number of mailbox seats purchased with the order | [optional]
12+
**domain** | [**MailV1OrdersOrderDomainResource**](MailV1OrdersOrderDomainResource.md) | | [optional]
13+
**plan** | [**MailV1OrdersOrderPlanResource**](MailV1OrdersOrderPlanResource.md) | | [optional]
14+
**has_pending_upgrade** | **bool** | Whether an upgrade is currently pending for the order | [optional]
15+
**created_at** | **datetime** | | [optional]
16+
**expires_at** | **datetime** | | [optional]
17+
18+
## Example
19+
20+
```python
21+
from hostinger_api.models.mail_v1_orders_order_resource import MailV1OrdersOrderResource
22+
23+
# TODO update the JSON string below
24+
json = "{}"
25+
# create an instance of MailV1OrdersOrderResource from a JSON string
26+
mail_v1_orders_order_resource_instance = MailV1OrdersOrderResource.from_json(json)
27+
# print the JSON string representation of the object
28+
print(MailV1OrdersOrderResource.to_json())
29+
30+
# convert the object into a dict
31+
mail_v1_orders_order_resource_dict = mail_v1_orders_order_resource_instance.to_dict()
32+
# create an instance of MailV1OrdersOrderResource from a dict
33+
mail_v1_orders_order_resource_from_dict = MailV1OrdersOrderResource.from_dict(mail_v1_orders_order_resource_dict)
34+
```
35+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
36+
37+

hostinger_api/__init__.py

Lines changed: 7 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.8.2
8+
API Version: 1.9.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.6.2"
15+
__version__ = "3.7.0"
1616

1717
# import apis into sdk package
1818
from hostinger_api.api.agency_hosting_cache_api import AgencyHostingCacheApi
@@ -48,6 +48,7 @@
4848
from hostinger_api.api.hosting_orders_api import HostingOrdersApi
4949
from hostinger_api.api.hosting_php_api import HostingPHPApi
5050
from hostinger_api.api.hosting_websites_api import HostingWebsitesApi
51+
from hostinger_api.api.mail_orders_api import MailOrdersApi
5152
from hostinger_api.api.reach_contacts_api import ReachContactsApi
5253
from hostinger_api.api.reach_profiles_api import ReachProfilesApi
5354
from hostinger_api.api.reach_segments_api import ReachSegmentsApi
@@ -252,6 +253,10 @@
252253
from hostinger_api.models.inline_object1 import InlineObject1
253254
from hostinger_api.models.inline_object2 import InlineObject2
254255
from hostinger_api.models.inline_object2_errors import InlineObject2Errors
256+
from hostinger_api.models.mail_get_mail_order_list_v1200_response import MailGetMailOrderListV1200Response
257+
from hostinger_api.models.mail_v1_orders_order_domain_resource import MailV1OrdersOrderDomainResource
258+
from hostinger_api.models.mail_v1_orders_order_plan_resource import MailV1OrdersOrderPlanResource
259+
from hostinger_api.models.mail_v1_orders_order_resource import MailV1OrdersOrderResource
255260
from hostinger_api.models.reach_list_contacts_v1200_response import ReachListContactsV1200Response
256261
from hostinger_api.models.reach_list_profile_segment_contacts_v1200_response import ReachListProfileSegmentContactsV1200Response
257262
from hostinger_api.models.reach_v1_contacts_contact_resource import ReachV1ContactsContactResource

hostinger_api/api/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
from hostinger_api.api.hosting_orders_api import HostingOrdersApi
3535
from hostinger_api.api.hosting_php_api import HostingPHPApi
3636
from hostinger_api.api.hosting_websites_api import HostingWebsitesApi
37+
from hostinger_api.api.mail_orders_api import MailOrdersApi
3738
from hostinger_api.api.reach_contacts_api import ReachContactsApi
3839
from hostinger_api.api.reach_profiles_api import ReachProfilesApi
3940
from hostinger_api.api.reach_segments_api import ReachSegmentsApi

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.8.2
6+
API Version: 1.9.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

hostinger_api/api/agency_hosting_cron_jobs_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.8.2
6+
API Version: 1.9.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)