hostinger-api-sdk 0.0.19 → 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.
Files changed (49) hide show
  1. package/README.md +2 -2
  2. package/api.ts +1179 -38
  3. package/base.ts +1 -1
  4. package/common.ts +1 -1
  5. package/configuration.ts +2 -2
  6. package/dist/api.d.ts +746 -8
  7. package/dist/api.js +763 -5
  8. package/dist/base.d.ts +1 -1
  9. package/dist/base.js +1 -1
  10. package/dist/common.d.ts +1 -1
  11. package/dist/common.js +1 -1
  12. package/dist/configuration.d.ts +1 -1
  13. package/dist/configuration.js +2 -2
  14. package/dist/esm/api.d.ts +746 -8
  15. package/dist/esm/api.js +742 -1
  16. package/dist/esm/base.d.ts +1 -1
  17. package/dist/esm/base.js +1 -1
  18. package/dist/esm/common.d.ts +1 -1
  19. package/dist/esm/common.js +1 -1
  20. package/dist/esm/configuration.d.ts +1 -1
  21. package/dist/esm/configuration.js +2 -2
  22. package/dist/esm/index.d.ts +1 -1
  23. package/dist/esm/index.js +1 -1
  24. package/dist/index.d.ts +1 -1
  25. package/dist/index.js +1 -1
  26. package/docs/EcommercePaymentsApi.md +66 -0
  27. package/docs/EcommerceProductsApi.md +125 -0
  28. package/docs/EcommerceShippingApi.md +66 -0
  29. package/docs/EcommerceStoresApi.md +54 -0
  30. package/docs/EcommerceV1PaymentEnableManualPaymentRequest.md +20 -0
  31. package/docs/EcommerceV1PaymentManualPaymentResource.md +22 -0
  32. package/docs/EcommerceV1PaymentManualPaymentResourcePaymentMethod.md +26 -0
  33. package/docs/EcommerceV1ProductCreateDigitalProductRequest.md +28 -0
  34. package/docs/EcommerceV1ProductCreatePhysicalProductRequest.md +26 -0
  35. package/docs/EcommerceV1ProductProductCreationResource.md +22 -0
  36. package/docs/EcommerceV1ProductProductCreationResourceProduct.md +30 -0
  37. package/docs/EcommerceV1ShippingSetShippingRequest.md +20 -0
  38. package/docs/EcommerceV1ShippingShippingResource.md +22 -0
  39. package/docs/EcommerceV1ShippingShippingResourceShippingOption.md +24 -0
  40. package/docs/EcommerceV1StoreStoreDeleteResource.md +22 -0
  41. package/docs/HorizonsV1WebsitesCreateWebsiteRequest.md +20 -0
  42. package/docs/HorizonsV1WebsitesCreateWebsiteRequestMessageInner.md +22 -0
  43. package/docs/HorizonsV1WebsitesCreatedWebsiteResource.md +22 -0
  44. package/docs/HorizonsV1WebsitesWebsiteUrlResource.md +20 -0
  45. package/docs/HorizonsWebsitesApi.md +117 -0
  46. package/docs/{ReachListSegmentContactsV1200Response.md → ReachListProfileSegmentContactsV1200Response.md} +3 -3
  47. package/docs/ReachSegmentsApi.md +65 -2
  48. package/index.ts +1 -1
  49. package/package.json +1 -1
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Hostinger API
3
3
  *
4
- * API Version: 0.18.2
4
+ * API Version: 0.19.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.18.2
6
+ * API Version: 0.19.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.18.2
4
+ * API Version: 0.19.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.18.2
6
+ * API Version: 0.19.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.18.2
4
+ * API Version: 0.19.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.18.2
6
+ * API Version: 0.19.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.19" }, (_a = param.baseOptions) === null || _a === void 0 ? void 0 : _a.headers) });
16
+ this.baseOptions = Object.assign(Object.assign({}, param.baseOptions), { headers: Object.assign({ 'User-Agent': "hostinger-typescript-sdk/0.0.20" }, (_a = param.baseOptions) === null || _a === void 0 ? void 0 : _a.headers) });
17
17
  this.formDataCtor = param.formDataCtor;
18
18
  }
19
19
  /**
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Hostinger API
3
3
  *
4
- * API Version: 0.18.2
4
+ * API Version: 0.19.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.18.2
6
+ * API Version: 0.19.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.18.2
4
+ * API Version: 0.19.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.18.2
7
+ * API Version: 0.19.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
@@ -0,0 +1,66 @@
1
+ # EcommercePaymentsApi
2
+
3
+ All URIs are relative to *https://developers.hostinger.com*
4
+
5
+ |Method | HTTP request | Description|
6
+ |------------- | ------------- | -------------|
7
+ |[**enableManualPaymentMethodV1**](#enablemanualpaymentmethodv1) | **POST** /api/ecommerce/v1/stores/{store_id}/payment-methods/manual | Enable manual payment method|
8
+
9
+ # **enableManualPaymentMethodV1**
10
+ > EcommerceV1PaymentManualPaymentResource enableManualPaymentMethodV1(ecommerceV1PaymentEnableManualPaymentRequest)
11
+
12
+ Enable a manual payment method so the store can accept orders without an online payment provider.
13
+
14
+ ### Example
15
+
16
+ ```typescript
17
+ import {
18
+ EcommercePaymentsApi,
19
+ Configuration,
20
+ EcommerceV1PaymentEnableManualPaymentRequest
21
+ } from 'hostinger-api-sdk';
22
+
23
+ const configuration = new Configuration();
24
+ const apiInstance = new EcommercePaymentsApi(configuration);
25
+
26
+ let storeId: string; //The ID of the store to enable manual payment for. (default to undefined)
27
+ let ecommerceV1PaymentEnableManualPaymentRequest: EcommerceV1PaymentEnableManualPaymentRequest; //
28
+
29
+ const { status, data } = await apiInstance.enableManualPaymentMethodV1(
30
+ storeId,
31
+ ecommerceV1PaymentEnableManualPaymentRequest
32
+ );
33
+ ```
34
+
35
+ ### Parameters
36
+
37
+ |Name | Type | Description | Notes|
38
+ |------------- | ------------- | ------------- | -------------|
39
+ | **ecommerceV1PaymentEnableManualPaymentRequest** | **EcommerceV1PaymentEnableManualPaymentRequest**| | |
40
+ | **storeId** | [**string**] | The ID of the store to enable manual payment for. | defaults to undefined|
41
+
42
+
43
+ ### Return type
44
+
45
+ **EcommerceV1PaymentManualPaymentResource**
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
+ |**201** | Created 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,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
+
@@ -5,6 +5,7 @@ All URIs are relative to *https://developers.hostinger.com*
5
5
  |Method | HTTP request | Description|
6
6
  |------------- | ------------- | -------------|
7
7
  |[**createStoreV1**](#createstorev1) | **POST** /api/ecommerce/v1/stores | Create store|
8
+ |[**deleteStoreV1**](#deletestorev1) | **DELETE** /api/ecommerce/v1/stores/{store_id} | Delete store|
8
9
  |[**getStoresV1**](#getstoresv1) | **GET** /api/ecommerce/v1/stores | Get stores|
9
10
 
10
11
  # **createStoreV1**
@@ -62,6 +63,59 @@ const { status, data } = await apiInstance.createStoreV1(
62
63
 
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)
64
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
+
65
119
  # **getStoresV1**
66
120
  > EcommerceGetStoresV1200Response getStoresV1()
67
121
 
@@ -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)