hostinger-api-sdk 0.0.17 → 0.0.20
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 +8387 -2618
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +2 -2
- package/dist/api.d.ts +5666 -1808
- package/dist/api.js +4008 -376
- 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 +5666 -1808
- package/dist/esm/api.js +3939 -365
- 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/EcommercePaymentsApi.md +66 -0
- package/docs/EcommerceProductsApi.md +125 -0
- package/docs/EcommerceShippingApi.md +66 -0
- package/docs/EcommerceStoresApi.md +171 -0
- package/docs/EcommerceV1PaymentEnableManualPaymentRequest.md +20 -0
- package/docs/EcommerceV1PaymentManualPaymentResource.md +22 -0
- package/docs/EcommerceV1PaymentManualPaymentResourcePaymentMethod.md +26 -0
- package/docs/EcommerceV1ProductCreateDigitalProductRequest.md +28 -0
- package/docs/EcommerceV1ProductCreatePhysicalProductRequest.md +26 -0
- package/docs/EcommerceV1ProductProductCreationResource.md +22 -0
- package/docs/EcommerceV1ProductProductCreationResourceProduct.md +30 -0
- package/docs/EcommerceV1ShippingSetShippingRequest.md +20 -0
- package/docs/EcommerceV1ShippingShippingResource.md +22 -0
- package/docs/EcommerceV1ShippingShippingResourceShippingOption.md +24 -0
- package/docs/EcommerceV1StoreStoreCreationResource.md +22 -0
- package/docs/EcommerceV1StoreStoreCreationResourceSalesChannel.md +24 -0
- package/docs/EcommerceV1StoreStoreCreationResourceStore.md +30 -0
- package/docs/EcommerceV1StoreStoreDeleteResource.md +22 -0
- package/docs/EcommerceV1StoreStoreRequest.md +30 -0
- package/docs/EcommerceV1StoreStoreRequestSalesChannel.md +22 -0
- package/docs/EcommerceV1StoreStoreResource.md +30 -0
- package/docs/HorizonsV1WebsitesCreateWebsiteRequest.md +20 -0
- package/docs/HorizonsV1WebsitesCreateWebsiteRequestMessageInner.md +22 -0
- package/docs/HorizonsV1WebsitesCreatedWebsiteResource.md +22 -0
- package/docs/HorizonsV1WebsitesWebsiteUrlResource.md +20 -0
- package/docs/HorizonsWebsitesApi.md +117 -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/ReachListProfileSegmentContactsV1200Response.md +22 -0
- package/docs/ReachProfilesApi.md +54 -0
- package/docs/ReachSegmentsApi.md +287 -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
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
# EcommerceProductsApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://developers.hostinger.com*
|
|
4
|
+
|
|
5
|
+
|Method | HTTP request | Description|
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
|[**createDigitalProductV1**](#createdigitalproductv1) | **POST** /api/ecommerce/v1/stores/{store_id}/products/digital | Create digital product|
|
|
8
|
+
|[**createPhysicalProductV1**](#createphysicalproductv1) | **POST** /api/ecommerce/v1/stores/{store_id}/products/physical | Create physical product|
|
|
9
|
+
|
|
10
|
+
# **createDigitalProductV1**
|
|
11
|
+
> EcommerceV1ProductProductCreationResource createDigitalProductV1(ecommerceV1ProductCreateDigitalProductRequest)
|
|
12
|
+
|
|
13
|
+
Create a published digital product with a single variant and an optional external download link.
|
|
14
|
+
|
|
15
|
+
### Example
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
import {
|
|
19
|
+
EcommerceProductsApi,
|
|
20
|
+
Configuration,
|
|
21
|
+
EcommerceV1ProductCreateDigitalProductRequest
|
|
22
|
+
} from 'hostinger-api-sdk';
|
|
23
|
+
|
|
24
|
+
const configuration = new Configuration();
|
|
25
|
+
const apiInstance = new EcommerceProductsApi(configuration);
|
|
26
|
+
|
|
27
|
+
let storeId: string; //The ID of the store to create the product in. (default to undefined)
|
|
28
|
+
let ecommerceV1ProductCreateDigitalProductRequest: EcommerceV1ProductCreateDigitalProductRequest; //
|
|
29
|
+
|
|
30
|
+
const { status, data } = await apiInstance.createDigitalProductV1(
|
|
31
|
+
storeId,
|
|
32
|
+
ecommerceV1ProductCreateDigitalProductRequest
|
|
33
|
+
);
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
### Parameters
|
|
37
|
+
|
|
38
|
+
|Name | Type | Description | Notes|
|
|
39
|
+
|------------- | ------------- | ------------- | -------------|
|
|
40
|
+
| **ecommerceV1ProductCreateDigitalProductRequest** | **EcommerceV1ProductCreateDigitalProductRequest**| | |
|
|
41
|
+
| **storeId** | [**string**] | The ID of the store to create the product in. | defaults to undefined|
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
### Return type
|
|
45
|
+
|
|
46
|
+
**EcommerceV1ProductProductCreationResource**
|
|
47
|
+
|
|
48
|
+
### Authorization
|
|
49
|
+
|
|
50
|
+
[apiToken](../README.md#apiToken)
|
|
51
|
+
|
|
52
|
+
### HTTP request headers
|
|
53
|
+
|
|
54
|
+
- **Content-Type**: application/json
|
|
55
|
+
- **Accept**: application/json
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
### HTTP response details
|
|
59
|
+
| Status code | Description | Response headers |
|
|
60
|
+
|-------------|-------------|------------------|
|
|
61
|
+
|**201** | Created response | - |
|
|
62
|
+
|**422** | Validation error response | - |
|
|
63
|
+
|**401** | Unauthenticated response | - |
|
|
64
|
+
|**500** | Error response | - |
|
|
65
|
+
|
|
66
|
+
[[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)
|
|
67
|
+
|
|
68
|
+
# **createPhysicalProductV1**
|
|
69
|
+
> EcommerceV1ProductProductCreationResource createPhysicalProductV1(ecommerceV1ProductCreatePhysicalProductRequest)
|
|
70
|
+
|
|
71
|
+
Create a published physical product with a single variant priced in the store currency.
|
|
72
|
+
|
|
73
|
+
### Example
|
|
74
|
+
|
|
75
|
+
```typescript
|
|
76
|
+
import {
|
|
77
|
+
EcommerceProductsApi,
|
|
78
|
+
Configuration,
|
|
79
|
+
EcommerceV1ProductCreatePhysicalProductRequest
|
|
80
|
+
} from 'hostinger-api-sdk';
|
|
81
|
+
|
|
82
|
+
const configuration = new Configuration();
|
|
83
|
+
const apiInstance = new EcommerceProductsApi(configuration);
|
|
84
|
+
|
|
85
|
+
let storeId: string; //The ID of the store to create the product in. (default to undefined)
|
|
86
|
+
let ecommerceV1ProductCreatePhysicalProductRequest: EcommerceV1ProductCreatePhysicalProductRequest; //
|
|
87
|
+
|
|
88
|
+
const { status, data } = await apiInstance.createPhysicalProductV1(
|
|
89
|
+
storeId,
|
|
90
|
+
ecommerceV1ProductCreatePhysicalProductRequest
|
|
91
|
+
);
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
### Parameters
|
|
95
|
+
|
|
96
|
+
|Name | Type | Description | Notes|
|
|
97
|
+
|------------- | ------------- | ------------- | -------------|
|
|
98
|
+
| **ecommerceV1ProductCreatePhysicalProductRequest** | **EcommerceV1ProductCreatePhysicalProductRequest**| | |
|
|
99
|
+
| **storeId** | [**string**] | The ID of the store to create the product in. | defaults to undefined|
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
### Return type
|
|
103
|
+
|
|
104
|
+
**EcommerceV1ProductProductCreationResource**
|
|
105
|
+
|
|
106
|
+
### Authorization
|
|
107
|
+
|
|
108
|
+
[apiToken](../README.md#apiToken)
|
|
109
|
+
|
|
110
|
+
### HTTP request headers
|
|
111
|
+
|
|
112
|
+
- **Content-Type**: application/json
|
|
113
|
+
- **Accept**: application/json
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
### HTTP response details
|
|
117
|
+
| Status code | Description | Response headers |
|
|
118
|
+
|-------------|-------------|------------------|
|
|
119
|
+
|**201** | Created response | - |
|
|
120
|
+
|**422** | Validation error response | - |
|
|
121
|
+
|**401** | Unauthenticated response | - |
|
|
122
|
+
|**500** | Error response | - |
|
|
123
|
+
|
|
124
|
+
[[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)
|
|
125
|
+
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
# EcommerceShippingApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://developers.hostinger.com*
|
|
4
|
+
|
|
5
|
+
|Method | HTTP request | Description|
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
|[**setStoreShippingV1**](#setstoreshippingv1) | **POST** /api/ecommerce/v1/stores/{store_id}/shipping | Set store shipping|
|
|
8
|
+
|
|
9
|
+
# **setStoreShippingV1**
|
|
10
|
+
> EcommerceV1ShippingShippingResource setStoreShippingV1(ecommerceV1ShippingSetShippingRequest)
|
|
11
|
+
|
|
12
|
+
Set the flat-rate shipping price for a store, creating the shipping zone if it does not exist yet.
|
|
13
|
+
|
|
14
|
+
### Example
|
|
15
|
+
|
|
16
|
+
```typescript
|
|
17
|
+
import {
|
|
18
|
+
EcommerceShippingApi,
|
|
19
|
+
Configuration,
|
|
20
|
+
EcommerceV1ShippingSetShippingRequest
|
|
21
|
+
} from 'hostinger-api-sdk';
|
|
22
|
+
|
|
23
|
+
const configuration = new Configuration();
|
|
24
|
+
const apiInstance = new EcommerceShippingApi(configuration);
|
|
25
|
+
|
|
26
|
+
let storeId: string; //The ID of the store to configure shipping for. (default to undefined)
|
|
27
|
+
let ecommerceV1ShippingSetShippingRequest: EcommerceV1ShippingSetShippingRequest; //
|
|
28
|
+
|
|
29
|
+
const { status, data } = await apiInstance.setStoreShippingV1(
|
|
30
|
+
storeId,
|
|
31
|
+
ecommerceV1ShippingSetShippingRequest
|
|
32
|
+
);
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
### Parameters
|
|
36
|
+
|
|
37
|
+
|Name | Type | Description | Notes|
|
|
38
|
+
|------------- | ------------- | ------------- | -------------|
|
|
39
|
+
| **ecommerceV1ShippingSetShippingRequest** | **EcommerceV1ShippingSetShippingRequest**| | |
|
|
40
|
+
| **storeId** | [**string**] | The ID of the store to configure shipping for. | defaults to undefined|
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
### Return type
|
|
44
|
+
|
|
45
|
+
**EcommerceV1ShippingShippingResource**
|
|
46
|
+
|
|
47
|
+
### Authorization
|
|
48
|
+
|
|
49
|
+
[apiToken](../README.md#apiToken)
|
|
50
|
+
|
|
51
|
+
### HTTP request headers
|
|
52
|
+
|
|
53
|
+
- **Content-Type**: application/json
|
|
54
|
+
- **Accept**: application/json
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
### HTTP response details
|
|
58
|
+
| Status code | Description | Response headers |
|
|
59
|
+
|-------------|-------------|------------------|
|
|
60
|
+
|**200** | Success response | - |
|
|
61
|
+
|**422** | Validation error response | - |
|
|
62
|
+
|**401** | Unauthenticated response | - |
|
|
63
|
+
|**500** | Error response | - |
|
|
64
|
+
|
|
65
|
+
[[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)
|
|
66
|
+
|
|
@@ -0,0 +1,171 @@
|
|
|
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
|
+
|[**deleteStoreV1**](#deletestorev1) | **DELETE** /api/ecommerce/v1/stores/{store_id} | Delete store|
|
|
9
|
+
|[**getStoresV1**](#getstoresv1) | **GET** /api/ecommerce/v1/stores | Get stores|
|
|
10
|
+
|
|
11
|
+
# **createStoreV1**
|
|
12
|
+
> EcommerceV1StoreStoreCreationResource createStoreV1(ecommerceV1StoreStoreRequest)
|
|
13
|
+
|
|
14
|
+
Create a new store for your account. A primary sales channel is created alongside the store.
|
|
15
|
+
|
|
16
|
+
### Example
|
|
17
|
+
|
|
18
|
+
```typescript
|
|
19
|
+
import {
|
|
20
|
+
EcommerceStoresApi,
|
|
21
|
+
Configuration,
|
|
22
|
+
EcommerceV1StoreStoreRequest
|
|
23
|
+
} from 'hostinger-api-sdk';
|
|
24
|
+
|
|
25
|
+
const configuration = new Configuration();
|
|
26
|
+
const apiInstance = new EcommerceStoresApi(configuration);
|
|
27
|
+
|
|
28
|
+
let ecommerceV1StoreStoreRequest: EcommerceV1StoreStoreRequest; //
|
|
29
|
+
|
|
30
|
+
const { status, data } = await apiInstance.createStoreV1(
|
|
31
|
+
ecommerceV1StoreStoreRequest
|
|
32
|
+
);
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
### Parameters
|
|
36
|
+
|
|
37
|
+
|Name | Type | Description | Notes|
|
|
38
|
+
|------------- | ------------- | ------------- | -------------|
|
|
39
|
+
| **ecommerceV1StoreStoreRequest** | **EcommerceV1StoreStoreRequest**| | |
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
### Return type
|
|
43
|
+
|
|
44
|
+
**EcommerceV1StoreStoreCreationResource**
|
|
45
|
+
|
|
46
|
+
### Authorization
|
|
47
|
+
|
|
48
|
+
[apiToken](../README.md#apiToken)
|
|
49
|
+
|
|
50
|
+
### HTTP request headers
|
|
51
|
+
|
|
52
|
+
- **Content-Type**: application/json
|
|
53
|
+
- **Accept**: application/json
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
### HTTP response details
|
|
57
|
+
| Status code | Description | Response headers |
|
|
58
|
+
|-------------|-------------|------------------|
|
|
59
|
+
|**201** | Created response | - |
|
|
60
|
+
|**422** | Validation error response | - |
|
|
61
|
+
|**401** | Unauthenticated response | - |
|
|
62
|
+
|**500** | Error response | - |
|
|
63
|
+
|
|
64
|
+
[[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)
|
|
65
|
+
|
|
66
|
+
# **deleteStoreV1**
|
|
67
|
+
> EcommerceV1StoreStoreDeleteResource deleteStoreV1()
|
|
68
|
+
|
|
69
|
+
Soft-delete a store owned by your account. The underlying store data is preserved; only the store is marked as deleted.
|
|
70
|
+
|
|
71
|
+
### Example
|
|
72
|
+
|
|
73
|
+
```typescript
|
|
74
|
+
import {
|
|
75
|
+
EcommerceStoresApi,
|
|
76
|
+
Configuration
|
|
77
|
+
} from 'hostinger-api-sdk';
|
|
78
|
+
|
|
79
|
+
const configuration = new Configuration();
|
|
80
|
+
const apiInstance = new EcommerceStoresApi(configuration);
|
|
81
|
+
|
|
82
|
+
let storeId: string; //The ID of the store to delete. (default to undefined)
|
|
83
|
+
|
|
84
|
+
const { status, data } = await apiInstance.deleteStoreV1(
|
|
85
|
+
storeId
|
|
86
|
+
);
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
### Parameters
|
|
90
|
+
|
|
91
|
+
|Name | Type | Description | Notes|
|
|
92
|
+
|------------- | ------------- | ------------- | -------------|
|
|
93
|
+
| **storeId** | [**string**] | The ID of the store to delete. | defaults to undefined|
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
### Return type
|
|
97
|
+
|
|
98
|
+
**EcommerceV1StoreStoreDeleteResource**
|
|
99
|
+
|
|
100
|
+
### Authorization
|
|
101
|
+
|
|
102
|
+
[apiToken](../README.md#apiToken)
|
|
103
|
+
|
|
104
|
+
### HTTP request headers
|
|
105
|
+
|
|
106
|
+
- **Content-Type**: Not defined
|
|
107
|
+
- **Accept**: application/json
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
### HTTP response details
|
|
111
|
+
| Status code | Description | Response headers |
|
|
112
|
+
|-------------|-------------|------------------|
|
|
113
|
+
|**200** | Success response | - |
|
|
114
|
+
|**401** | Unauthenticated response | - |
|
|
115
|
+
|**500** | Error response | - |
|
|
116
|
+
|
|
117
|
+
[[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)
|
|
118
|
+
|
|
119
|
+
# **getStoresV1**
|
|
120
|
+
> EcommerceGetStoresV1200Response getStoresV1()
|
|
121
|
+
|
|
122
|
+
Retrieve the stores associated with your account.
|
|
123
|
+
|
|
124
|
+
### Example
|
|
125
|
+
|
|
126
|
+
```typescript
|
|
127
|
+
import {
|
|
128
|
+
EcommerceStoresApi,
|
|
129
|
+
Configuration
|
|
130
|
+
} from 'hostinger-api-sdk';
|
|
131
|
+
|
|
132
|
+
const configuration = new Configuration();
|
|
133
|
+
const apiInstance = new EcommerceStoresApi(configuration);
|
|
134
|
+
|
|
135
|
+
let page: number; //Page number (optional) (default to undefined)
|
|
136
|
+
|
|
137
|
+
const { status, data } = await apiInstance.getStoresV1(
|
|
138
|
+
page
|
|
139
|
+
);
|
|
140
|
+
```
|
|
141
|
+
|
|
142
|
+
### Parameters
|
|
143
|
+
|
|
144
|
+
|Name | Type | Description | Notes|
|
|
145
|
+
|------------- | ------------- | ------------- | -------------|
|
|
146
|
+
| **page** | [**number**] | Page number | (optional) defaults to undefined|
|
|
147
|
+
|
|
148
|
+
|
|
149
|
+
### Return type
|
|
150
|
+
|
|
151
|
+
**EcommerceGetStoresV1200Response**
|
|
152
|
+
|
|
153
|
+
### Authorization
|
|
154
|
+
|
|
155
|
+
[apiToken](../README.md#apiToken)
|
|
156
|
+
|
|
157
|
+
### HTTP request headers
|
|
158
|
+
|
|
159
|
+
- **Content-Type**: Not defined
|
|
160
|
+
- **Accept**: application/json
|
|
161
|
+
|
|
162
|
+
|
|
163
|
+
### HTTP response details
|
|
164
|
+
| Status code | Description | Response headers |
|
|
165
|
+
|-------------|-------------|------------------|
|
|
166
|
+
|**200** | Success response | - |
|
|
167
|
+
|**401** | Unauthenticated response | - |
|
|
168
|
+
|**500** | Error response | - |
|
|
169
|
+
|
|
170
|
+
[[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)
|
|
171
|
+
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# EcommerceV1PaymentEnableManualPaymentRequest
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**title** | **string** | Optional display name shown to customers at checkout. | [optional] [default to undefined]
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```typescript
|
|
13
|
+
import { EcommerceV1PaymentEnableManualPaymentRequest } from 'hostinger-api-sdk';
|
|
14
|
+
|
|
15
|
+
const instance: EcommerceV1PaymentEnableManualPaymentRequest = {
|
|
16
|
+
title,
|
|
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,22 @@
|
|
|
1
|
+
# EcommerceV1PaymentManualPaymentResource
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**payment_method** | [**EcommerceV1PaymentManualPaymentResourcePaymentMethod**](EcommerceV1PaymentManualPaymentResourcePaymentMethod.md) | | [optional] [default to undefined]
|
|
9
|
+
**admin_url** | **string** | Admin UI deep-link to manage payment settings. | [optional] [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { EcommerceV1PaymentManualPaymentResource } from 'hostinger-api-sdk';
|
|
15
|
+
|
|
16
|
+
const instance: EcommerceV1PaymentManualPaymentResource = {
|
|
17
|
+
payment_method,
|
|
18
|
+
admin_url,
|
|
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,26 @@
|
|
|
1
|
+
# EcommerceV1PaymentManualPaymentResourcePaymentMethod
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**id** | **string** | Store payment provider ID. | [optional] [default to undefined]
|
|
9
|
+
**provider_id** | **string** | The payment provider identifier. | [optional] [default to undefined]
|
|
10
|
+
**is_enabled** | **boolean** | Whether the payment method is shown at checkout. | [optional] [default to undefined]
|
|
11
|
+
**title** | **string** | Display name shown to customers at checkout. | [optional] [default to undefined]
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import { EcommerceV1PaymentManualPaymentResourcePaymentMethod } from 'hostinger-api-sdk';
|
|
17
|
+
|
|
18
|
+
const instance: EcommerceV1PaymentManualPaymentResourcePaymentMethod = {
|
|
19
|
+
id,
|
|
20
|
+
provider_id,
|
|
21
|
+
is_enabled,
|
|
22
|
+
title,
|
|
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)
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# EcommerceV1ProductCreateDigitalProductRequest
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**name** | **string** | The product name. | [default to undefined]
|
|
9
|
+
**price** | **number** | Price in the smallest currency unit (e.g. cents). Must be positive. | [default to undefined]
|
|
10
|
+
**description** | **string** | The product description. | [optional] [default to undefined]
|
|
11
|
+
**currency** | **string** | ISO 4217 currency code. Defaults to the store\'s default currency when omitted. | [optional] [default to undefined]
|
|
12
|
+
**download_url** | **string** | Optional external download link delivered to the customer after purchase. | [optional] [default to undefined]
|
|
13
|
+
|
|
14
|
+
## Example
|
|
15
|
+
|
|
16
|
+
```typescript
|
|
17
|
+
import { EcommerceV1ProductCreateDigitalProductRequest } from 'hostinger-api-sdk';
|
|
18
|
+
|
|
19
|
+
const instance: EcommerceV1ProductCreateDigitalProductRequest = {
|
|
20
|
+
name,
|
|
21
|
+
price,
|
|
22
|
+
description,
|
|
23
|
+
currency,
|
|
24
|
+
download_url,
|
|
25
|
+
};
|
|
26
|
+
```
|
|
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)
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# EcommerceV1ProductCreatePhysicalProductRequest
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**name** | **string** | The product name. | [default to undefined]
|
|
9
|
+
**price** | **number** | Price in the smallest currency unit (e.g. cents). Must be positive. | [default to undefined]
|
|
10
|
+
**description** | **string** | The product description. | [optional] [default to undefined]
|
|
11
|
+
**currency** | **string** | ISO 4217 currency code. Defaults to the store\'s default currency when omitted. | [optional] [default to undefined]
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import { EcommerceV1ProductCreatePhysicalProductRequest } from 'hostinger-api-sdk';
|
|
17
|
+
|
|
18
|
+
const instance: EcommerceV1ProductCreatePhysicalProductRequest = {
|
|
19
|
+
name,
|
|
20
|
+
price,
|
|
21
|
+
description,
|
|
22
|
+
currency,
|
|
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)
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# EcommerceV1ProductProductCreationResource
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**product** | [**EcommerceV1ProductProductCreationResourceProduct**](EcommerceV1ProductProductCreationResourceProduct.md) | | [optional] [default to undefined]
|
|
9
|
+
**admin_url** | **string** | Admin UI deep-link to manage the product. | [optional] [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { EcommerceV1ProductProductCreationResource } from 'hostinger-api-sdk';
|
|
15
|
+
|
|
16
|
+
const instance: EcommerceV1ProductProductCreationResource = {
|
|
17
|
+
product,
|
|
18
|
+
admin_url,
|
|
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,30 @@
|
|
|
1
|
+
# EcommerceV1ProductProductCreationResourceProduct
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**id** | **string** | Product ID. | [optional] [default to undefined]
|
|
9
|
+
**title** | **string** | Product name. | [optional] [default to undefined]
|
|
10
|
+
**type** | **string** | Product type. | [optional] [default to undefined]
|
|
11
|
+
**status** | **string** | Product status. | [optional] [default to undefined]
|
|
12
|
+
**price** | **number** | Price in the smallest currency unit (e.g. cents). | [optional] [default to undefined]
|
|
13
|
+
**currency_code** | **string** | Currency the product is priced in (ISO 4217, lowercase). | [optional] [default to undefined]
|
|
14
|
+
|
|
15
|
+
## Example
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
import { EcommerceV1ProductProductCreationResourceProduct } from 'hostinger-api-sdk';
|
|
19
|
+
|
|
20
|
+
const instance: EcommerceV1ProductProductCreationResourceProduct = {
|
|
21
|
+
id,
|
|
22
|
+
title,
|
|
23
|
+
type,
|
|
24
|
+
status,
|
|
25
|
+
price,
|
|
26
|
+
currency_code,
|
|
27
|
+
};
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
[[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
|
+
# EcommerceV1ShippingSetShippingRequest
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**price** | **number** | Flat shipping rate in the smallest currency unit (e.g. cents). Use 0 for free shipping. | [default to undefined]
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```typescript
|
|
13
|
+
import { EcommerceV1ShippingSetShippingRequest } from 'hostinger-api-sdk';
|
|
14
|
+
|
|
15
|
+
const instance: EcommerceV1ShippingSetShippingRequest = {
|
|
16
|
+
price,
|
|
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,22 @@
|
|
|
1
|
+
# EcommerceV1ShippingShippingResource
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**shipping_option** | [**EcommerceV1ShippingShippingResourceShippingOption**](EcommerceV1ShippingShippingResourceShippingOption.md) | | [optional] [default to undefined]
|
|
9
|
+
**admin_url** | **string** | Admin UI deep-link to manage shipping settings. | [optional] [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { EcommerceV1ShippingShippingResource } from 'hostinger-api-sdk';
|
|
15
|
+
|
|
16
|
+
const instance: EcommerceV1ShippingShippingResource = {
|
|
17
|
+
shipping_option,
|
|
18
|
+
admin_url,
|
|
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
|
+
# EcommerceV1ShippingShippingResourceShippingOption
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**id** | **string** | Shipping option ID. | [optional] [default to undefined]
|
|
9
|
+
**amount** | **number** | Flat shipping rate in the smallest currency unit (e.g. cents). | [optional] [default to undefined]
|
|
10
|
+
**currency_code** | **string** | Currency code the rate is charged in (ISO 4217, lowercase). | [optional] [default to undefined]
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import { EcommerceV1ShippingShippingResourceShippingOption } from 'hostinger-api-sdk';
|
|
16
|
+
|
|
17
|
+
const instance: EcommerceV1ShippingShippingResourceShippingOption = {
|
|
18
|
+
id,
|
|
19
|
+
amount,
|
|
20
|
+
currency_code,
|
|
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)
|
|
@@ -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)
|