Skip to content

Commit c3976f9

Browse files
chore: sdk update
1 parent 4721a1a commit c3976f9

711 files changed

Lines changed: 1516 additions & 705 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: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ Class | Method | HTTP request | Description
105105
*AgencyHostingWebsitesApi* | [**get_agency_plan_website_details_v1**](docs/AgencyHostingWebsitesApi.md#get_agency_plan_website_details_v1) | **GET** /api/agency-hosting/v1/websites/{website_uid} | Get Agency Plan website details
106106
*AgencyHostingWebsitesApi* | [**list_running_agency_plan_website_processes_v1**](docs/AgencyHostingWebsitesApi.md#list_running_agency_plan_website_processes_v1) | **GET** /api/agency-hosting/v1/websites/{website_uid}/processes | List running Agency Plan website processes
107107
*BillingCatalogApi* | [**get_catalog_item_list_v1**](docs/BillingCatalogApi.md#get_catalog_item_list_v1) | **GET** /api/billing/v1/catalog | Get catalog item list
108+
*BillingOrdersApi* | [**create_purchase_order_v1**](docs/BillingOrdersApi.md#create_purchase_order_v1) | **POST** /api/billing/v1/orders | Create purchase order
108109
*BillingPaymentMethodsApi* | [**delete_payment_method_v1**](docs/BillingPaymentMethodsApi.md#delete_payment_method_v1) | **DELETE** /api/billing/v1/payment-methods/{paymentMethodId} | Delete payment method
109110
*BillingPaymentMethodsApi* | [**get_payment_method_list_v1**](docs/BillingPaymentMethodsApi.md#get_payment_method_list_v1) | **GET** /api/billing/v1/payment-methods | Get payment method list
110111
*BillingPaymentMethodsApi* | [**set_default_payment_method_v1**](docs/BillingPaymentMethodsApi.md#set_default_payment_method_v1) | **POST** /api/billing/v1/payment-methods/{paymentMethodId} | Set default payment method
@@ -362,6 +363,8 @@ Class | Method | HTTP request | Description
362363
- [BillingV1CatalogCatalogItemResource](docs/BillingV1CatalogCatalogItemResource.md)
363364
- [BillingV1OrderOrderBillingAddressResource](docs/BillingV1OrderOrderBillingAddressResource.md)
364365
- [BillingV1OrderOrderResource](docs/BillingV1OrderOrderResource.md)
366+
- [BillingV1OrderPurchaseRequest](docs/BillingV1OrderPurchaseRequest.md)
367+
- [BillingV1OrderPurchaseRequestItemsInner](docs/BillingV1OrderPurchaseRequestItemsInner.md)
365368
- [BillingV1OrderVirtualMachineOrderResource](docs/BillingV1OrderVirtualMachineOrderResource.md)
366369
- [BillingV1PaymentMethodPaymentMethodResource](docs/BillingV1PaymentMethodPaymentMethodResource.md)
367370
- [BillingV1SubscriptionCancelRequest](docs/BillingV1SubscriptionCancelRequest.md)

‎docs/BillingOrdersApi.md‎

Lines changed: 95 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,95 @@
1+
# hostinger_api.BillingOrdersApi
2+
3+
All URIs are relative to *https://developers.hostinger.com*
4+
5+
Method | HTTP request | Description
6+
------------- | ------------- | -------------
7+
[**create_purchase_order_v1**](BillingOrdersApi.md#create_purchase_order_v1) | **POST** /api/billing/v1/orders | Create purchase order
8+
9+
10+
# **create_purchase_order_v1**
11+
> BillingV1OrderOrderResource create_purchase_order_v1(billing_v1_order_purchase_request)
12+
13+
Create purchase order
14+
15+
Create a purchase order for any Hostinger product.
16+
17+
This unified endpoint places an order for one or more catalog items and
18+
works across all Hostinger products, leveraging the existing billing
19+
infrastructure. Use the [catalog endpoint](#tag/billing-catalog) to look
20+
up the `item_id` values available for purchase.
21+
22+
If no payment method is provided, your default payment method will be used automatically.
23+
24+
This endpoint only places the order. Product-specific provisioning
25+
(e.g. VPS setup or domain registration) is not performed here — once the
26+
order completes, use the relevant product endpoints or
27+
[hPanel](https://hpanel.hostinger.com/) to finalize setup.
28+
29+
Use this endpoint to purchase any product available in the catalog.
30+
31+
### Example
32+
33+
* Bearer Authentication (apiToken):
34+
35+
```python
36+
import hostinger_api
37+
from hostinger_api.models.billing_v1_order_order_resource import BillingV1OrderOrderResource
38+
from hostinger_api.models.billing_v1_order_purchase_request import BillingV1OrderPurchaseRequest
39+
from hostinger_api.rest import ApiException
40+
from pprint import pprint
41+
42+
43+
# Configure Bearer authorization: apiToken
44+
configuration = hostinger_api.Configuration(
45+
access_token = os.environ["BEARER_TOKEN"]
46+
)
47+
48+
# Enter a context with an instance of the API client
49+
with hostinger_api.ApiClient(configuration) as api_client:
50+
# Create an instance of the API class
51+
api_instance = hostinger_api.BillingOrdersApi(api_client)
52+
billing_v1_order_purchase_request = hostinger_api.BillingV1OrderPurchaseRequest() # BillingV1OrderPurchaseRequest |
53+
54+
try:
55+
# Create purchase order
56+
api_response = api_instance.create_purchase_order_v1(billing_v1_order_purchase_request)
57+
print("The response of BillingOrdersApi->create_purchase_order_v1:\n")
58+
pprint(api_response)
59+
except Exception as e:
60+
print("Exception when calling BillingOrdersApi->create_purchase_order_v1: %s\n" % e)
61+
```
62+
63+
64+
65+
### Parameters
66+
67+
68+
Name | Type | Description | Notes
69+
------------- | ------------- | ------------- | -------------
70+
**billing_v1_order_purchase_request** | [**BillingV1OrderPurchaseRequest**](BillingV1OrderPurchaseRequest.md)| |
71+
72+
### Return type
73+
74+
[**BillingV1OrderOrderResource**](BillingV1OrderOrderResource.md)
75+
76+
### Authorization
77+
78+
[apiToken](../README.md#apiToken)
79+
80+
### HTTP request headers
81+
82+
- **Content-Type**: application/json
83+
- **Accept**: application/json
84+
85+
### HTTP response details
86+
87+
| Status code | Description | Response headers |
88+
|-------------|-------------|------------------|
89+
**200** | Success response | - |
90+
**422** | Validation error response | - |
91+
**401** | Unauthenticated response | - |
92+
**500** | Error response | - |
93+
94+
[[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)
95+
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# BillingV1OrderPurchaseRequest
2+
3+
4+
## Properties
5+
6+
Name | Type | Description | Notes
7+
------------ | ------------- | ------------- | -------------
8+
**payment_method_id** | **int** | Payment method ID, default will be used if not provided | [optional]
9+
**items** | [**List[BillingV1OrderPurchaseRequestItemsInner]**](BillingV1OrderPurchaseRequestItemsInner.md) | Catalog price items to purchase |
10+
**coupons** | **List[object]** | Discount coupon codes | [optional]
11+
12+
## Example
13+
14+
```python
15+
from hostinger_api.models.billing_v1_order_purchase_request import BillingV1OrderPurchaseRequest
16+
17+
# TODO update the JSON string below
18+
json = "{}"
19+
# create an instance of BillingV1OrderPurchaseRequest from a JSON string
20+
billing_v1_order_purchase_request_instance = BillingV1OrderPurchaseRequest.from_json(json)
21+
# print the JSON string representation of the object
22+
print(BillingV1OrderPurchaseRequest.to_json())
23+
24+
# convert the object into a dict
25+
billing_v1_order_purchase_request_dict = billing_v1_order_purchase_request_instance.to_dict()
26+
# create an instance of BillingV1OrderPurchaseRequest from a dict
27+
billing_v1_order_purchase_request_from_dict = BillingV1OrderPurchaseRequest.from_dict(billing_v1_order_purchase_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+
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# BillingV1OrderPurchaseRequestItemsInner
2+
3+
4+
## Properties
5+
6+
Name | Type | Description | Notes
7+
------------ | ------------- | ------------- | -------------
8+
**item_id** | **str** | Catalog price item ID |
9+
**quantity** | **int** | Quantity to purchase | [optional] [default to 1]
10+
11+
## Example
12+
13+
```python
14+
from hostinger_api.models.billing_v1_order_purchase_request_items_inner import BillingV1OrderPurchaseRequestItemsInner
15+
16+
# TODO update the JSON string below
17+
json = "{}"
18+
# create an instance of BillingV1OrderPurchaseRequestItemsInner from a JSON string
19+
billing_v1_order_purchase_request_items_inner_instance = BillingV1OrderPurchaseRequestItemsInner.from_json(json)
20+
# print the JSON string representation of the object
21+
print(BillingV1OrderPurchaseRequestItemsInner.to_json())
22+
23+
# convert the object into a dict
24+
billing_v1_order_purchase_request_items_inner_dict = billing_v1_order_purchase_request_items_inner_instance.to_dict()
25+
# create an instance of BillingV1OrderPurchaseRequestItemsInner from a dict
26+
billing_v1_order_purchase_request_items_inner_from_dict = BillingV1OrderPurchaseRequestItemsInner.from_dict(billing_v1_order_purchase_request_items_inner_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+

‎hostinger_api/__init__.py‎

Lines changed: 5 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.12.1
8+
API Version: 1.12.2
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.10.1"
15+
__version__ = "3.10.2"
1616

1717
# import apis into sdk package
1818
from hostinger_api.api.agency_hosting_cache_api import AgencyHostingCacheApi
@@ -24,6 +24,7 @@
2424
from hostinger_api.api.agency_hosting_website_setups_api import AgencyHostingWebsiteSetupsApi
2525
from hostinger_api.api.agency_hosting_websites_api import AgencyHostingWebsitesApi
2626
from hostinger_api.api.billing_catalog_api import BillingCatalogApi
27+
from hostinger_api.api.billing_orders_api import BillingOrdersApi
2728
from hostinger_api.api.billing_payment_methods_api import BillingPaymentMethodsApi
2829
from hostinger_api.api.billing_subscriptions_api import BillingSubscriptionsApi
2930
from hostinger_api.api.dns_snapshot_api import DNSSnapshotApi
@@ -139,6 +140,8 @@
139140
from hostinger_api.models.billing_v1_catalog_catalog_item_resource import BillingV1CatalogCatalogItemResource
140141
from hostinger_api.models.billing_v1_order_order_billing_address_resource import BillingV1OrderOrderBillingAddressResource
141142
from hostinger_api.models.billing_v1_order_order_resource import BillingV1OrderOrderResource
143+
from hostinger_api.models.billing_v1_order_purchase_request import BillingV1OrderPurchaseRequest
144+
from hostinger_api.models.billing_v1_order_purchase_request_items_inner import BillingV1OrderPurchaseRequestItemsInner
142145
from hostinger_api.models.billing_v1_order_virtual_machine_order_resource import BillingV1OrderVirtualMachineOrderResource
143146
from hostinger_api.models.billing_v1_payment_method_payment_method_resource import BillingV1PaymentMethodPaymentMethodResource
144147
from hostinger_api.models.billing_v1_subscription_cancel_request import BillingV1SubscriptionCancelRequest

‎hostinger_api/api/__init__.py‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
from hostinger_api.api.agency_hosting_website_setups_api import AgencyHostingWebsiteSetupsApi
1111
from hostinger_api.api.agency_hosting_websites_api import AgencyHostingWebsitesApi
1212
from hostinger_api.api.billing_catalog_api import BillingCatalogApi
13+
from hostinger_api.api.billing_orders_api import BillingOrdersApi
1314
from hostinger_api.api.billing_payment_methods_api import BillingPaymentMethodsApi
1415
from hostinger_api.api.billing_subscriptions_api import BillingSubscriptionsApi
1516
from hostinger_api.api.dns_snapshot_api import DNSSnapshotApi

‎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.12.1
6+
API Version: 1.12.2
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.12.1
6+
API Version: 1.12.2
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_databases_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.12.1
6+
API Version: 1.12.2
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_datacenters_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.12.1
6+
API Version: 1.12.2
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)