Skip to content

Commit a875bc8

Browse files
chore: sdk update
1 parent 3b5f010 commit a875bc8

12 files changed

Lines changed: 97 additions & 29 deletions

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
## @hostinger/sdk@1.49.4
1+
## @hostinger/sdk@1.50.0
22

33
For more information, please visit [https://developers.hostinger.com](https://developers.hostinger.com).
44

55
### Usage
66

77
```
8-
npm install @hostinger/sdk@1.49.4 --save
8+
npm install @hostinger/sdk@1.50.0 --save
99
```

api.ts

Lines changed: 55 additions & 17 deletions
Large diffs are not rendered by default.

base.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/**
44
* Hostinger API
55
*
6-
* API Version: 1.49.4
6+
* API Version: 1.50.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

common.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/**
44
* Hostinger API
55
*
6-
* API Version: 1.49.4
6+
* API Version: 1.50.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

configuration.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/**
44
* Hostinger API
55
*
6-
* API Version: 1.49.4
6+
* API Version: 1.50.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
@@ -48,7 +48,7 @@ export class Configuration {
4848
this.baseOptions = {
4949
...param.baseOptions,
5050
headers: {
51-
'User-Agent': "hostinger-typescript-sdk/1.49.4",
51+
'User-Agent': "hostinger-typescript-sdk/1.50.0",
5252
...param.baseOptions?.headers,
5353
},
5454
};

docs/BillingOrdersApi.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ All URIs are relative to *https://developers.hostinger.com*
99
# **createPurchaseOrderV1**
1010
> BillingV1OrderOrderResource createPurchaseOrderV1(billingV1OrderPurchaseRequest)
1111
12-
Create a purchase order for any Hostinger product. This unified endpoint places an order for one or more catalog items and works across all Hostinger products, leveraging the existing billing infrastructure. Use the [catalog endpoint](#tag/billing-catalog) to look up the `item_id` values available for purchase. If no payment method is provided, your default payment method will be used automatically. This endpoint only places the order. Product-specific provisioning (e.g. VPS setup or domain registration) is not performed here — once the order completes, use the relevant product endpoints or [hPanel](https://hpanel.hostinger.com/) to finalize setup. Use this endpoint to purchase any product available in the catalog.
12+
Create a purchase order for any Hostinger product. This unified endpoint places an order for one or more catalog items and works across all Hostinger products, leveraging the existing billing infrastructure. Use the [catalog endpoint](#tag/billing-catalog) to look up the `item_id` values available for purchase. If no payment method is provided, your default payment method will be used automatically. If the response is `202 Accepted`, the payment is still being processed and the order will complete asynchronously once the payment is confirmed. This endpoint only places the order. Product-specific provisioning (e.g. VPS setup or domain registration) is not performed here — once the order completes, use the relevant product endpoints or [hPanel](https://hpanel.hostinger.com/) to finalize setup. Use this endpoint to purchase any product available in the catalog.
1313

1414
### Example
1515

@@ -55,6 +55,7 @@ const { status, data } = await apiInstance.createPurchaseOrderV1(
5555
| Status code | Description | Response headers |
5656
|-------------|-------------|------------------|
5757
|**200** | Success response | - |
58+
|**202** | Payment is being processed, the order will complete asynchronously | - |
5859
|**422** | Validation error response | - |
5960
|**401** | Unauthenticated response | - |
6061
|**500** | Error response | - |

docs/BillingSubscriptionsApi.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ This endpoint does not have any parameters.
164164
# **renewSubscriptionV1**
165165
> BillingV1OrderOrderResource renewSubscriptionV1()
166166
167-
Create a renewal order for an existing Hostinger subscription. This endpoint places a renewal order for a single subscription, leveraging the existing billing infrastructure. Use the [subscriptions endpoint](#tag/billing-subscriptions) to look up the `subscriptionId` values available for renewal. If no payment method is provided, your default payment method will be used automatically. Use this endpoint to renew any subscription available in your account.
167+
Create a renewal order for an existing Hostinger subscription. This endpoint places a renewal order for a single subscription, leveraging the existing billing infrastructure. Use the [subscriptions endpoint](#tag/billing-subscriptions) to look up the `subscriptionId` values available for renewal. If no payment method is provided, your default payment method will be used automatically. If the response is `202 Accepted`, the payment is still being processed and the renewal will complete asynchronously once the payment is confirmed. Use this endpoint to renew any subscription available in your account.
168168

169169
### Example
170170

@@ -213,6 +213,7 @@ const { status, data } = await apiInstance.renewSubscriptionV1(
213213
| Status code | Description | Response headers |
214214
|-------------|-------------|------------------|
215215
|**200** | Success response | - |
216+
|**202** | Payment is being processed, the order will complete asynchronously | - |
216217
|**422** | Validation error response | - |
217218
|**401** | Unauthenticated response | - |
218219
|**500** | Error response | - |
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# BillingV1OrderPaymentProcessingResource
2+
3+
4+
## Properties
5+
6+
Name | Type | Description | Notes
7+
------------ | ------------- | ------------- | -------------
8+
**id** | **number** | Order ID | [optional] [default to undefined]
9+
**subscription_id** | **string** | Subscription ID, use it to find the product once the order completes | [optional] [default to undefined]
10+
**status** | **string** | | [optional] [default to undefined]
11+
**message** | **string** | Explanation of what happens next | [optional] [default to undefined]
12+
13+
## Example
14+
15+
```typescript
16+
import { BillingV1OrderPaymentProcessingResource } from '@hostinger/sdk';
17+
18+
const instance: BillingV1OrderPaymentProcessingResource = {
19+
id,
20+
subscription_id,
21+
status,
22+
message,
23+
};
24+
```
25+
26+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

docs/DomainsPortfolioApi.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -491,7 +491,7 @@ const { status, data } = await apiInstance.getDomainRenewalInformationV1(
491491
# **purchaseNewDomainV1**
492492
> BillingV1OrderOrderResource purchaseNewDomainV1(domainsV1PortfolioPurchaseRequest)
493493
494-
Purchase and register a new domain name. If registration fails, login to [hPanel](https://hpanel.hostinger.com/) and check domain registration status. If no payment method is provided, your default payment method will be used automatically. If no WHOIS information is provided, default contact information for that TLD will be used. Before making request, ensure WHOIS information for desired TLD exists in your account. Some TLDs require `additional_details` to be provided and these will be validated before completing purchase. Use this endpoint to register new domains for users.
494+
Purchase and register a new domain name. If registration fails, login to [hPanel](https://hpanel.hostinger.com/) and check domain registration status. If no payment method is provided, your default payment method will be used automatically. If the response is `202 Accepted`, the payment is still being processed and the domain was **not** registered. Once the order completes, register the domain from [hPanel](https://hpanel.hostinger.com/). If no WHOIS information is provided, default contact information for that TLD will be used. Before making request, ensure WHOIS information for desired TLD exists in your account. Some TLDs require `additional_details` to be provided and these will be validated before completing purchase. Use this endpoint to register new domains for users.
495495

496496
### Example
497497

@@ -537,6 +537,7 @@ const { status, data } = await apiInstance.purchaseNewDomainV1(
537537
| Status code | Description | Response headers |
538538
|-------------|-------------|------------------|
539539
|**200** | Success response | - |
540+
|**202** | Payment is being processed, the order will complete asynchronously | - |
540541
|**422** | Validation error response | - |
541542
|**401** | Unauthenticated response | - |
542543
|**500** | Error response | - |

docs/VPSVirtualMachineApi.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ This endpoint does not have any parameters.
238238
# **purchaseNewVirtualMachineV1**
239239
> BillingV1OrderVirtualMachineOrderResource purchaseNewVirtualMachineV1(vPSV1VirtualMachinePurchaseRequest)
240240
241-
Purchase and setup a new virtual machine. If virtual machine setup fails for any reason, login to [hPanel](https://hpanel.hostinger.com/) and complete the setup manually. If no payment method is provided, your default payment method will be used automatically. Use this endpoint to create new VPS instances.
241+
Purchase and setup a new virtual machine. If virtual machine setup fails for any reason, login to [hPanel](https://hpanel.hostinger.com/) and complete the setup manually. If no payment method is provided, your default payment method will be used automatically. If the response is `202 Accepted`, the payment is still being processed and the virtual machine was not set up. Login to [hPanel](https://hpanel.hostinger.com/) and complete the setup manually. Use this endpoint to create new VPS instances.
242242

243243
### Example
244244

@@ -284,6 +284,7 @@ const { status, data } = await apiInstance.purchaseNewVirtualMachineV1(
284284
| Status code | Description | Response headers |
285285
|-------------|-------------|------------------|
286286
|**200** | Success response | - |
287+
|**202** | Payment is being processed, the order will complete asynchronously | - |
287288
|**422** | Validation error response | - |
288289
|**401** | Unauthenticated response | - |
289290
|**500** | Error response | - |

0 commit comments

Comments
 (0)