hostinger-api-sdk 0.0.17 → 0.0.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/workflows/build-release.yaml +28 -11
- package/README.md +2 -2
- package/api.ts +7280 -2652
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +2 -2
- package/dist/api.d.ts +4936 -1816
- package/dist/api.js +3248 -374
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +2 -2
- package/dist/esm/api.d.ts +4936 -1816
- package/dist/esm/api.js +3196 -363
- package/dist/esm/base.d.ts +1 -1
- package/dist/esm/base.js +1 -1
- package/dist/esm/common.d.ts +1 -1
- package/dist/esm/common.js +1 -1
- package/dist/esm/configuration.d.ts +1 -1
- package/dist/esm/configuration.js +2 -2
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/docs/BillingSubscriptionsApi.md +0 -59
- package/docs/BillingV1CatalogCatalogItemResource.md +1 -1
- package/docs/DomainAccessVerifierV2VerificationsActiveVerificationsCollection.md +21 -0
- package/docs/DomainAccessVerifierV2VerificationsActiveVerificationsCollectionData.md +23 -0
- package/docs/DomainAccessVerifierV2VerificationsActiveVerificationsCollectionDataPENDING.md +21 -0
- package/docs/DomainAccessVerifierV2VerificationsActiveVerificationsCollectionDataPENDINGDOMAINTLD.md +21 -0
- package/docs/DomainAccessVerifierV2VerificationsActiveVerificationsCollectionDataPENDINGDOMAINTLDVERIFICATIONTYPE.md +27 -0
- package/docs/DomainAccessVerifierV2VerificationsActiveVerificationsCollectionDataVERIFIED.md +21 -0
- package/docs/DomainAccessVerifierV2VerificationsActiveVerificationsCollectionDataVERIFIEDDOMAINTLD.md +21 -0
- package/docs/DomainAccessVerifierV2VerificationsActiveVerificationsCollectionDataVERIFIEDDOMAINTLDVERIFICATIONTYPE.md +21 -0
- package/docs/DomainAccessVerifierV2VerificationsListRequest.md +20 -0
- package/docs/DomainAccessVerifierVerificationsApi.md +63 -0
- package/docs/DomainsPortfolioApi.md +1 -1
- package/docs/EcommerceGetStoresV1200Response.md +22 -0
- package/docs/EcommerceStoresApi.md +117 -0
- package/docs/EcommerceV1StoreStoreCreationResource.md +22 -0
- package/docs/EcommerceV1StoreStoreCreationResourceSalesChannel.md +24 -0
- package/docs/EcommerceV1StoreStoreCreationResourceStore.md +30 -0
- package/docs/EcommerceV1StoreStoreRequest.md +30 -0
- package/docs/EcommerceV1StoreStoreRequestSalesChannel.md +22 -0
- package/docs/EcommerceV1StoreStoreResource.md +30 -0
- package/docs/HostingDatabasesApi.md +368 -0
- package/docs/HostingDatacentersApi.md +61 -0
- package/docs/HostingDomainsApi.md +468 -0
- package/docs/HostingListAccountDatabasesV1200Response.md +22 -0
- package/docs/HostingListNodeJSBuildsV1200Response.md +22 -0
- package/docs/HostingListOrdersV1200Response.md +22 -0
- package/docs/HostingListWebsitesV1200Response.md +22 -0
- package/docs/HostingNodeJSApi.md +199 -0
- package/docs/HostingOrdersApi.md +70 -0
- package/docs/HostingV1DatabasesChangeDatabasePasswordRequest.md +20 -0
- package/docs/HostingV1DatabasesCreateDatabaseRequest.md +26 -0
- package/docs/HostingV1DatabasesDatabaseResource.md +34 -0
- package/docs/HostingV1DatabasesPhpMyAdminLinkResource.md +20 -0
- package/docs/HostingV1DatacenterCoordinatesResource.md +22 -0
- package/docs/HostingV1DatacenterDatacenterResource.md +24 -0
- package/docs/HostingV1DatacentersListRequest.md +20 -0
- package/docs/HostingV1DomainsCreateParkedDomainRequest.md +20 -0
- package/docs/HostingV1DomainsCreateSubdomainRequest.md +24 -0
- package/docs/HostingV1DomainsDomainAccessResource.md +24 -0
- package/docs/HostingV1DomainsFreeSubdomainResource.md +20 -0
- package/docs/HostingV1DomainsParkedDomainResource.md +28 -0
- package/docs/HostingV1DomainsSubdomainResource.md +28 -0
- package/docs/HostingV1DomainsVerifyOwnershipRequest.md +20 -0
- package/docs/HostingV1NodeJsBuildLogsResource.md +22 -0
- package/docs/HostingV1NodeJsBuildOptionsResource.md +36 -0
- package/docs/HostingV1NodeJsBuildResource.md +28 -0
- package/docs/HostingV1NodeJsCreateFromArchiveRequest.md +34 -0
- package/docs/{BillingV1OrderStoreRequestItemsInner.md → HostingV1NodeJsSourceOptionsResource.md} +5 -7
- package/docs/HostingV1OrdersOrderResource.md +30 -0
- package/docs/HostingV1OrdersPlanResource.md +20 -0
- package/docs/HostingV1WebsitesCreateWebsiteRequest.md +24 -0
- package/docs/HostingV1WebsitesWebsiteResource.md +36 -0
- package/docs/HostingV1WordpressInstallWordpressRequest.md +36 -0
- package/docs/HostingV1WordpressInstallWordpressRequestCredentials.md +25 -0
- package/docs/HostingV1WordpressInstallWordpressRequestDatabase.md +23 -0
- package/docs/HostingV1WordpressWordpressInstallationResource.md +42 -0
- package/docs/HostingWebsitesApi.md +132 -0
- package/docs/HostingWordpressApi.md +126 -0
- package/docs/ReachContactsApi.md +63 -4
- package/docs/ReachListSegmentContactsV1200Response.md +22 -0
- package/docs/ReachProfilesApi.md +54 -0
- package/docs/ReachSegmentsApi.md +224 -0
- package/docs/ReachV1ContactsSegmentsContactSegmentResource.md +26 -0
- package/docs/ReachV1ContactsSegmentsSegmentResource.md +28 -0
- package/docs/ReachV1ContactsSegmentsSegmentationContactResource.md +34 -0
- package/docs/ReachV1ContactsSegmentsStoreRequest.md +24 -0
- package/docs/ReachV1ContactsSegmentsStoreRequestConditionsInner.md +24 -0
- package/docs/ReachV1ContactsSegmentsStoreRequestConditionsInnerValue.md +18 -0
- package/docs/ReachV1ContactsStoreRequest.md +2 -2
- package/docs/ReachV1ProfilesProfileResource.md +30 -0
- package/docs/ReachV1ProfilesProfileResourceLimits.md +26 -0
- package/docs/ReachV1ProfilesProfileResourceProfilesInner.md +26 -0
- package/docs/VPSActionsApi.md +1 -1
- package/docs/VPSDockerManagerApi.md +7 -7
- package/docs/VPSFirewallApi.md +1 -1
- package/docs/VPSMalwareScannerApi.md +2 -2
- package/docs/VPSVirtualMachineApi.md +2 -2
- package/index.ts +1 -1
- package/package.json +1 -1
- package/docs/BillingOrdersApi.md +0 -63
- package/docs/BillingV1OrderStoreRequest.md +0 -24
package/dist/esm/base.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 0.
|
|
4
|
+
* API Version: 0.18.2
|
|
5
5
|
*
|
|
6
6
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
7
7
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
package/dist/esm/base.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 0.
|
|
6
|
+
* API Version: 0.18.2
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
9
9
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
package/dist/esm/common.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 0.
|
|
4
|
+
* API Version: 0.18.2
|
|
5
5
|
*
|
|
6
6
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
7
7
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
package/dist/esm/common.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 0.
|
|
6
|
+
* API Version: 0.18.2
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
9
9
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 0.
|
|
4
|
+
* API Version: 0.18.2
|
|
5
5
|
*
|
|
6
6
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
7
7
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 0.
|
|
6
|
+
* API Version: 0.18.2
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
9
9
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
|
@@ -13,7 +13,7 @@ export class Configuration {
|
|
|
13
13
|
var _a;
|
|
14
14
|
this.accessToken = param.accessToken;
|
|
15
15
|
this.basePath = param.basePath;
|
|
16
|
-
this.baseOptions = Object.assign(Object.assign({}, param.baseOptions), { headers: Object.assign({ 'User-Agent': "hostinger-typescript-sdk/0.0.
|
|
16
|
+
this.baseOptions = Object.assign(Object.assign({}, param.baseOptions), { headers: Object.assign({ 'User-Agent': "hostinger-typescript-sdk/0.0.19" }, (_a = param.baseOptions) === null || _a === void 0 ? void 0 : _a.headers) });
|
|
17
17
|
this.formDataCtor = param.formDataCtor;
|
|
18
18
|
}
|
|
19
19
|
/**
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 0.
|
|
4
|
+
* API Version: 0.18.2
|
|
5
5
|
*
|
|
6
6
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
7
7
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
package/dist/esm/index.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 0.
|
|
6
|
+
* API Version: 0.18.2
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
9
9
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 0.
|
|
4
|
+
* API Version: 0.18.2
|
|
5
5
|
*
|
|
6
6
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
7
7
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
package/dist/index.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
/**
|
|
5
5
|
* Hostinger API
|
|
6
6
|
*
|
|
7
|
-
* API Version: 0.
|
|
7
|
+
* API Version: 0.18.2
|
|
8
8
|
*
|
|
9
9
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
10
10
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
|
@@ -4,69 +4,10 @@ All URIs are relative to *https://developers.hostinger.com*
|
|
|
4
4
|
|
|
5
5
|
|Method | HTTP request | Description|
|
|
6
6
|
|------------- | ------------- | -------------|
|
|
7
|
-
|[**cancelSubscriptionV1**](#cancelsubscriptionv1) | **DELETE** /api/billing/v1/subscriptions/{subscriptionId} | Cancel subscription|
|
|
8
7
|
|[**disableAutoRenewalV1**](#disableautorenewalv1) | **DELETE** /api/billing/v1/subscriptions/{subscriptionId}/auto-renewal/disable | Disable auto-renewal|
|
|
9
8
|
|[**enableAutoRenewalV1**](#enableautorenewalv1) | **PATCH** /api/billing/v1/subscriptions/{subscriptionId}/auto-renewal/enable | Enable auto-renewal|
|
|
10
9
|
|[**getSubscriptionListV1**](#getsubscriptionlistv1) | **GET** /api/billing/v1/subscriptions | Get subscription list|
|
|
11
10
|
|
|
12
|
-
# **cancelSubscriptionV1**
|
|
13
|
-
> CommonSuccessEmptyResource cancelSubscriptionV1(billingV1SubscriptionCancelRequest)
|
|
14
|
-
|
|
15
|
-
Cancel a subscription and stop any further billing. Use this endpoint when users want to terminate active services.
|
|
16
|
-
|
|
17
|
-
### Example
|
|
18
|
-
|
|
19
|
-
```typescript
|
|
20
|
-
import {
|
|
21
|
-
BillingSubscriptionsApi,
|
|
22
|
-
Configuration,
|
|
23
|
-
BillingV1SubscriptionCancelRequest
|
|
24
|
-
} from 'hostinger-api-sdk';
|
|
25
|
-
|
|
26
|
-
const configuration = new Configuration();
|
|
27
|
-
const apiInstance = new BillingSubscriptionsApi(configuration);
|
|
28
|
-
|
|
29
|
-
let subscriptionId: string; //Subscription ID (default to undefined)
|
|
30
|
-
let billingV1SubscriptionCancelRequest: BillingV1SubscriptionCancelRequest; //
|
|
31
|
-
|
|
32
|
-
const { status, data } = await apiInstance.cancelSubscriptionV1(
|
|
33
|
-
subscriptionId,
|
|
34
|
-
billingV1SubscriptionCancelRequest
|
|
35
|
-
);
|
|
36
|
-
```
|
|
37
|
-
|
|
38
|
-
### Parameters
|
|
39
|
-
|
|
40
|
-
|Name | Type | Description | Notes|
|
|
41
|
-
|------------- | ------------- | ------------- | -------------|
|
|
42
|
-
| **billingV1SubscriptionCancelRequest** | **BillingV1SubscriptionCancelRequest**| | |
|
|
43
|
-
| **subscriptionId** | [**string**] | Subscription ID | defaults to undefined|
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
### Return type
|
|
47
|
-
|
|
48
|
-
**CommonSuccessEmptyResource**
|
|
49
|
-
|
|
50
|
-
### Authorization
|
|
51
|
-
|
|
52
|
-
[apiToken](../README.md#apiToken)
|
|
53
|
-
|
|
54
|
-
### HTTP request headers
|
|
55
|
-
|
|
56
|
-
- **Content-Type**: application/json
|
|
57
|
-
- **Accept**: application/json
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
### HTTP response details
|
|
61
|
-
| Status code | Description | Response headers |
|
|
62
|
-
|-------------|-------------|------------------|
|
|
63
|
-
|**200** | Success empty response | - |
|
|
64
|
-
|**422** | Validation error response | - |
|
|
65
|
-
|**401** | Unauthenticated response | - |
|
|
66
|
-
|**500** | Error response | - |
|
|
67
|
-
|
|
68
|
-
[[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)
|
|
69
|
-
|
|
70
11
|
# **disableAutoRenewalV1**
|
|
71
12
|
> BillingV1SubscriptionSubscriptionResource disableAutoRenewalV1()
|
|
72
13
|
|
|
@@ -8,7 +8,7 @@ Name | Type | Description | Notes
|
|
|
8
8
|
**id** | **string** | Catalog item ID | [optional] [default to undefined]
|
|
9
9
|
**name** | **string** | | [optional] [default to undefined]
|
|
10
10
|
**category** | **string** | | [optional] [default to undefined]
|
|
11
|
-
**metadata** | **object** |
|
|
11
|
+
**metadata** | **object** | Flexible key-value storage containing category-specific metadata for the catalog item. The structure and available fields vary depending on the item category. | [optional] [default to undefined]
|
|
12
12
|
**prices** | [**Array<BillingV1CatalogCatalogItemPriceResource>**](BillingV1CatalogCatalogItemPriceResource.md) | Array of [`Billing.V1.Catalog.CatalogItemPriceResource`](#model/billingv1catalogcatalogitempriceresource) | [optional] [default to undefined]
|
|
13
13
|
|
|
14
14
|
## Example
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# DomainAccessVerifierV2VerificationsActiveVerificationsCollection
|
|
2
|
+
|
|
3
|
+
Returns active verifications (PENDING and VERIFIED) grouped by status and domain. Includes last and next verification attempt dates and expiration for PENDING verifications.
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**data** | [**DomainAccessVerifierV2VerificationsActiveVerificationsCollectionData**](DomainAccessVerifierV2VerificationsActiveVerificationsCollectionData.md) | | [optional] [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { DomainAccessVerifierV2VerificationsActiveVerificationsCollection } from 'hostinger-api-sdk';
|
|
15
|
+
|
|
16
|
+
const instance: DomainAccessVerifierV2VerificationsActiveVerificationsCollection = {
|
|
17
|
+
data,
|
|
18
|
+
};
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# DomainAccessVerifierV2VerificationsActiveVerificationsCollectionData
|
|
2
|
+
|
|
3
|
+
List of active verifications by status. If no verifications are found, this will return an empty array.
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**PENDING** | [**DomainAccessVerifierV2VerificationsActiveVerificationsCollectionDataPENDING**](DomainAccessVerifierV2VerificationsActiveVerificationsCollectionDataPENDING.md) | | [optional] [default to undefined]
|
|
10
|
+
**VERIFIED** | [**DomainAccessVerifierV2VerificationsActiveVerificationsCollectionDataVERIFIED**](DomainAccessVerifierV2VerificationsActiveVerificationsCollectionDataVERIFIED.md) | | [optional] [default to undefined]
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import { DomainAccessVerifierV2VerificationsActiveVerificationsCollectionData } from 'hostinger-api-sdk';
|
|
16
|
+
|
|
17
|
+
const instance: DomainAccessVerifierV2VerificationsActiveVerificationsCollectionData = {
|
|
18
|
+
PENDING,
|
|
19
|
+
VERIFIED,
|
|
20
|
+
};
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# DomainAccessVerifierV2VerificationsActiveVerificationsCollectionDataPENDING
|
|
2
|
+
|
|
3
|
+
Pending verifications grouped by domain. Keys are domain names (e.g., \"pixel.tld\"). This property will not be returned if no pending verifications are found.
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**DOMAIN_TLD** | [**DomainAccessVerifierV2VerificationsActiveVerificationsCollectionDataPENDINGDOMAINTLD**](DomainAccessVerifierV2VerificationsActiveVerificationsCollectionDataPENDINGDOMAINTLD.md) | | [optional] [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { DomainAccessVerifierV2VerificationsActiveVerificationsCollectionDataPENDING } from 'hostinger-api-sdk';
|
|
15
|
+
|
|
16
|
+
const instance: DomainAccessVerifierV2VerificationsActiveVerificationsCollectionDataPENDING = {
|
|
17
|
+
DOMAIN_TLD,
|
|
18
|
+
};
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
package/docs/DomainAccessVerifierV2VerificationsActiveVerificationsCollectionDataPENDINGDOMAINTLD.md
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# DomainAccessVerifierV2VerificationsActiveVerificationsCollectionDataPENDINGDOMAINTLD
|
|
2
|
+
|
|
3
|
+
Domain name (example). Contains verification types as properties.
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**VERIFICATION_TYPE** | [**DomainAccessVerifierV2VerificationsActiveVerificationsCollectionDataPENDINGDOMAINTLDVERIFICATIONTYPE**](DomainAccessVerifierV2VerificationsActiveVerificationsCollectionDataPENDINGDOMAINTLDVERIFICATIONTYPE.md) | | [optional] [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { DomainAccessVerifierV2VerificationsActiveVerificationsCollectionDataPENDINGDOMAINTLD } from 'hostinger-api-sdk';
|
|
15
|
+
|
|
16
|
+
const instance: DomainAccessVerifierV2VerificationsActiveVerificationsCollectionDataPENDINGDOMAINTLD = {
|
|
17
|
+
VERIFICATION_TYPE,
|
|
18
|
+
};
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# DomainAccessVerifierV2VerificationsActiveVerificationsCollectionDataPENDINGDOMAINTLDVERIFICATIONTYPE
|
|
2
|
+
|
|
3
|
+
Verification type (\"NAMESERVERS\" or \"TXT\"). Only verification types that exist for this domain will be present.
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**records** | **Array<string>** | Verification records | [optional] [default to undefined]
|
|
10
|
+
**last_verification_attempt** | **string** | Datetime when last verification attempt occurred | [optional] [default to undefined]
|
|
11
|
+
**next_verification_attempt** | **string** | Datetime when next verification attempt will occur | [optional] [default to undefined]
|
|
12
|
+
**verification_expiration** | **string** | Datetime when verification expires | [optional] [default to undefined]
|
|
13
|
+
|
|
14
|
+
## Example
|
|
15
|
+
|
|
16
|
+
```typescript
|
|
17
|
+
import { DomainAccessVerifierV2VerificationsActiveVerificationsCollectionDataPENDINGDOMAINTLDVERIFICATIONTYPE } from 'hostinger-api-sdk';
|
|
18
|
+
|
|
19
|
+
const instance: DomainAccessVerifierV2VerificationsActiveVerificationsCollectionDataPENDINGDOMAINTLDVERIFICATIONTYPE = {
|
|
20
|
+
records,
|
|
21
|
+
last_verification_attempt,
|
|
22
|
+
next_verification_attempt,
|
|
23
|
+
verification_expiration,
|
|
24
|
+
};
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# DomainAccessVerifierV2VerificationsActiveVerificationsCollectionDataVERIFIED
|
|
2
|
+
|
|
3
|
+
Verified verifications grouped by domain. Keys are domain names (e.g., \"byte.tld\"). This property will not be returned if no verified verifications are found.
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**DOMAIN_TLD** | [**DomainAccessVerifierV2VerificationsActiveVerificationsCollectionDataVERIFIEDDOMAINTLD**](DomainAccessVerifierV2VerificationsActiveVerificationsCollectionDataVERIFIEDDOMAINTLD.md) | | [optional] [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { DomainAccessVerifierV2VerificationsActiveVerificationsCollectionDataVERIFIED } from 'hostinger-api-sdk';
|
|
15
|
+
|
|
16
|
+
const instance: DomainAccessVerifierV2VerificationsActiveVerificationsCollectionDataVERIFIED = {
|
|
17
|
+
DOMAIN_TLD,
|
|
18
|
+
};
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# DomainAccessVerifierV2VerificationsActiveVerificationsCollectionDataVERIFIEDDOMAINTLD
|
|
2
|
+
|
|
3
|
+
Domain name (example). Contains verification types as properties.
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**VERIFICATION_TYPE** | [**DomainAccessVerifierV2VerificationsActiveVerificationsCollectionDataVERIFIEDDOMAINTLDVERIFICATIONTYPE**](DomainAccessVerifierV2VerificationsActiveVerificationsCollectionDataVERIFIEDDOMAINTLDVERIFICATIONTYPE.md) | | [optional] [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { DomainAccessVerifierV2VerificationsActiveVerificationsCollectionDataVERIFIEDDOMAINTLD } from 'hostinger-api-sdk';
|
|
15
|
+
|
|
16
|
+
const instance: DomainAccessVerifierV2VerificationsActiveVerificationsCollectionDataVERIFIEDDOMAINTLD = {
|
|
17
|
+
VERIFICATION_TYPE,
|
|
18
|
+
};
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# DomainAccessVerifierV2VerificationsActiveVerificationsCollectionDataVERIFIEDDOMAINTLDVERIFICATIONTYPE
|
|
2
|
+
|
|
3
|
+
Verification type (e.g., \"NAMESERVERS\", \"TXT\"). Only verification types that exist for this domain will be present.
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**records** | **Array<string>** | Verification records | [optional] [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { DomainAccessVerifierV2VerificationsActiveVerificationsCollectionDataVERIFIEDDOMAINTLDVERIFICATIONTYPE } from 'hostinger-api-sdk';
|
|
15
|
+
|
|
16
|
+
const instance: DomainAccessVerifierV2VerificationsActiveVerificationsCollectionDataVERIFIEDDOMAINTLDVERIFICATIONTYPE = {
|
|
17
|
+
records,
|
|
18
|
+
};
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# DomainAccessVerifierV2VerificationsListRequest
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**domains** | **Array<string>** | The list of domains for which to get verification details for. | [default to undefined]
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```typescript
|
|
13
|
+
import { DomainAccessVerifierV2VerificationsListRequest } from 'hostinger-api-sdk';
|
|
14
|
+
|
|
15
|
+
const instance: DomainAccessVerifierV2VerificationsListRequest = {
|
|
16
|
+
domains,
|
|
17
|
+
};
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
# DomainAccessVerifierVerificationsApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://developers.hostinger.com*
|
|
4
|
+
|
|
5
|
+
|Method | HTTP request | Description|
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
|[**getDomainVerificationsDIRECT**](#getdomainverificationsdirect) | **GET** /api/v2/direct/verifications/active | Get domain verifications|
|
|
8
|
+
|
|
9
|
+
# **getDomainVerificationsDIRECT**
|
|
10
|
+
> DomainAccessVerifierV2VerificationsActiveVerificationsCollection getDomainVerificationsDIRECT(domainAccessVerifierV2VerificationsListRequest)
|
|
11
|
+
|
|
12
|
+
Retrieve a list of pending and completed domain verifications.
|
|
13
|
+
|
|
14
|
+
### Example
|
|
15
|
+
|
|
16
|
+
```typescript
|
|
17
|
+
import {
|
|
18
|
+
DomainAccessVerifierVerificationsApi,
|
|
19
|
+
Configuration,
|
|
20
|
+
DomainAccessVerifierV2VerificationsListRequest
|
|
21
|
+
} from 'hostinger-api-sdk';
|
|
22
|
+
|
|
23
|
+
const configuration = new Configuration();
|
|
24
|
+
const apiInstance = new DomainAccessVerifierVerificationsApi(configuration);
|
|
25
|
+
|
|
26
|
+
let domainAccessVerifierV2VerificationsListRequest: DomainAccessVerifierV2VerificationsListRequest; //
|
|
27
|
+
|
|
28
|
+
const { status, data } = await apiInstance.getDomainVerificationsDIRECT(
|
|
29
|
+
domainAccessVerifierV2VerificationsListRequest
|
|
30
|
+
);
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
### Parameters
|
|
34
|
+
|
|
35
|
+
|Name | Type | Description | Notes|
|
|
36
|
+
|------------- | ------------- | ------------- | -------------|
|
|
37
|
+
| **domainAccessVerifierV2VerificationsListRequest** | **DomainAccessVerifierV2VerificationsListRequest**| | |
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
### Return type
|
|
41
|
+
|
|
42
|
+
**DomainAccessVerifierV2VerificationsActiveVerificationsCollection**
|
|
43
|
+
|
|
44
|
+
### Authorization
|
|
45
|
+
|
|
46
|
+
[apiToken](../README.md#apiToken)
|
|
47
|
+
|
|
48
|
+
### HTTP request headers
|
|
49
|
+
|
|
50
|
+
- **Content-Type**: application/json
|
|
51
|
+
- **Accept**: application/json
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
### HTTP response details
|
|
55
|
+
| Status code | Description | Response headers |
|
|
56
|
+
|-------------|-------------|------------------|
|
|
57
|
+
|**200** | Success response | - |
|
|
58
|
+
|**401** | Unauthenticated response | - |
|
|
59
|
+
|**422** | Validation error response | - |
|
|
60
|
+
|**500** | Error response | - |
|
|
61
|
+
|
|
62
|
+
[[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)
|
|
63
|
+
|
|
@@ -327,7 +327,7 @@ This endpoint does not have any parameters.
|
|
|
327
327
|
# **purchaseNewDomainV1**
|
|
328
328
|
> BillingV1OrderOrderResource purchaseNewDomainV1(domainsV1PortfolioPurchaseRequest)
|
|
329
329
|
|
|
330
|
-
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.
|
|
330
|
+
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.
|
|
331
331
|
|
|
332
332
|
### Example
|
|
333
333
|
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# EcommerceGetStoresV1200Response
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**data** | [**Array<EcommerceV1StoreStoreResource>**](EcommerceV1StoreStoreResource.md) | Array of [`Ecommerce.V1.Store.StoreResource`](#model/ecommercev1storestoreresource) | [optional] [default to undefined]
|
|
9
|
+
**meta** | [**CommonSchemaPaginationMetaSchema**](CommonSchemaPaginationMetaSchema.md) | | [optional] [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { EcommerceGetStoresV1200Response } from 'hostinger-api-sdk';
|
|
15
|
+
|
|
16
|
+
const instance: EcommerceGetStoresV1200Response = {
|
|
17
|
+
data,
|
|
18
|
+
meta,
|
|
19
|
+
};
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
# EcommerceStoresApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://developers.hostinger.com*
|
|
4
|
+
|
|
5
|
+
|Method | HTTP request | Description|
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
|[**createStoreV1**](#createstorev1) | **POST** /api/ecommerce/v1/stores | Create store|
|
|
8
|
+
|[**getStoresV1**](#getstoresv1) | **GET** /api/ecommerce/v1/stores | Get stores|
|
|
9
|
+
|
|
10
|
+
# **createStoreV1**
|
|
11
|
+
> EcommerceV1StoreStoreCreationResource createStoreV1(ecommerceV1StoreStoreRequest)
|
|
12
|
+
|
|
13
|
+
Create a new store for your account. A primary sales channel is created alongside the store.
|
|
14
|
+
|
|
15
|
+
### Example
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
import {
|
|
19
|
+
EcommerceStoresApi,
|
|
20
|
+
Configuration,
|
|
21
|
+
EcommerceV1StoreStoreRequest
|
|
22
|
+
} from 'hostinger-api-sdk';
|
|
23
|
+
|
|
24
|
+
const configuration = new Configuration();
|
|
25
|
+
const apiInstance = new EcommerceStoresApi(configuration);
|
|
26
|
+
|
|
27
|
+
let ecommerceV1StoreStoreRequest: EcommerceV1StoreStoreRequest; //
|
|
28
|
+
|
|
29
|
+
const { status, data } = await apiInstance.createStoreV1(
|
|
30
|
+
ecommerceV1StoreStoreRequest
|
|
31
|
+
);
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
### Parameters
|
|
35
|
+
|
|
36
|
+
|Name | Type | Description | Notes|
|
|
37
|
+
|------------- | ------------- | ------------- | -------------|
|
|
38
|
+
| **ecommerceV1StoreStoreRequest** | **EcommerceV1StoreStoreRequest**| | |
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
### Return type
|
|
42
|
+
|
|
43
|
+
**EcommerceV1StoreStoreCreationResource**
|
|
44
|
+
|
|
45
|
+
### Authorization
|
|
46
|
+
|
|
47
|
+
[apiToken](../README.md#apiToken)
|
|
48
|
+
|
|
49
|
+
### HTTP request headers
|
|
50
|
+
|
|
51
|
+
- **Content-Type**: application/json
|
|
52
|
+
- **Accept**: application/json
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
### HTTP response details
|
|
56
|
+
| Status code | Description | Response headers |
|
|
57
|
+
|-------------|-------------|------------------|
|
|
58
|
+
|**201** | Created response | - |
|
|
59
|
+
|**422** | Validation error response | - |
|
|
60
|
+
|**401** | Unauthenticated response | - |
|
|
61
|
+
|**500** | Error response | - |
|
|
62
|
+
|
|
63
|
+
[[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)
|
|
64
|
+
|
|
65
|
+
# **getStoresV1**
|
|
66
|
+
> EcommerceGetStoresV1200Response getStoresV1()
|
|
67
|
+
|
|
68
|
+
Retrieve the stores associated with your account.
|
|
69
|
+
|
|
70
|
+
### Example
|
|
71
|
+
|
|
72
|
+
```typescript
|
|
73
|
+
import {
|
|
74
|
+
EcommerceStoresApi,
|
|
75
|
+
Configuration
|
|
76
|
+
} from 'hostinger-api-sdk';
|
|
77
|
+
|
|
78
|
+
const configuration = new Configuration();
|
|
79
|
+
const apiInstance = new EcommerceStoresApi(configuration);
|
|
80
|
+
|
|
81
|
+
let page: number; //Page number (optional) (default to undefined)
|
|
82
|
+
|
|
83
|
+
const { status, data } = await apiInstance.getStoresV1(
|
|
84
|
+
page
|
|
85
|
+
);
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
### Parameters
|
|
89
|
+
|
|
90
|
+
|Name | Type | Description | Notes|
|
|
91
|
+
|------------- | ------------- | ------------- | -------------|
|
|
92
|
+
| **page** | [**number**] | Page number | (optional) defaults to undefined|
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
### Return type
|
|
96
|
+
|
|
97
|
+
**EcommerceGetStoresV1200Response**
|
|
98
|
+
|
|
99
|
+
### Authorization
|
|
100
|
+
|
|
101
|
+
[apiToken](../README.md#apiToken)
|
|
102
|
+
|
|
103
|
+
### HTTP request headers
|
|
104
|
+
|
|
105
|
+
- **Content-Type**: Not defined
|
|
106
|
+
- **Accept**: application/json
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
### HTTP response details
|
|
110
|
+
| Status code | Description | Response headers |
|
|
111
|
+
|-------------|-------------|------------------|
|
|
112
|
+
|**200** | Success response | - |
|
|
113
|
+
|**401** | Unauthenticated response | - |
|
|
114
|
+
|**500** | Error response | - |
|
|
115
|
+
|
|
116
|
+
[[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)
|
|
117
|
+
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# EcommerceV1StoreStoreCreationResource
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**store** | [**EcommerceV1StoreStoreCreationResourceStore**](EcommerceV1StoreStoreCreationResourceStore.md) | | [optional] [default to undefined]
|
|
9
|
+
**sales_channel** | [**EcommerceV1StoreStoreCreationResourceSalesChannel**](EcommerceV1StoreStoreCreationResourceSalesChannel.md) | | [optional] [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { EcommerceV1StoreStoreCreationResource } from 'hostinger-api-sdk';
|
|
15
|
+
|
|
16
|
+
const instance: EcommerceV1StoreStoreCreationResource = {
|
|
17
|
+
store,
|
|
18
|
+
sales_channel,
|
|
19
|
+
};
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# EcommerceV1StoreStoreCreationResourceSalesChannel
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**id** | **string** | Sales channel ID | [optional] [default to undefined]
|
|
9
|
+
**type** | **string** | Sales channel type | [optional] [default to undefined]
|
|
10
|
+
**external_id** | **string** | External identifier for the sales channel | [optional] [default to undefined]
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import { EcommerceV1StoreStoreCreationResourceSalesChannel } from 'hostinger-api-sdk';
|
|
16
|
+
|
|
17
|
+
const instance: EcommerceV1StoreStoreCreationResourceSalesChannel = {
|
|
18
|
+
id,
|
|
19
|
+
type,
|
|
20
|
+
external_id,
|
|
21
|
+
};
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|