hostinger-api-sdk 1.1.1 → 1.2.1
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/README.md +2 -2
- package/api.ts +1036 -30
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +2 -2
- package/dist/api.d.ts +652 -9
- package/dist/api.js +680 -17
- 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 +652 -9
- package/dist/esm/api.js +674 -15
- 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/EcommerceSalesChannelsApi.md +66 -4
- package/docs/EcommerceStoresApi.md +54 -0
- package/docs/EcommerceV1SalesChannelSalesChannelUpdateResource.md +20 -0
- package/docs/EcommerceV1SalesChannelUpdateRequest.md +22 -0
- package/docs/EcommerceV1StoreStoreMetadataResource.md +20 -0
- package/docs/EcommerceV1StoreStoreMetadataResourceMetadata.md +26 -0
- package/docs/EcommerceV1StoreStoreMetadataResourceMetadataDefaultCurrency.md +37 -0
- package/docs/HostingPHPApi.md +364 -0
- package/docs/HostingV1PhpPhpDetailsResource.md +30 -0
- package/docs/HostingV1PhpPhpInfoResource.md +20 -0
- package/docs/HostingV1PhpPhpOptionResource.md +30 -0
- package/docs/HostingV1PhpPhpVersionsResource.md +22 -0
- package/docs/HostingV1PhpUpdatePhpExtensionsRequest.md +22 -0
- package/docs/HostingV1PhpUpdatePhpOptionsRequest.md +20 -0
- package/docs/HostingV1PhpUpdatePhpOptionsRequestOptionsValue.md +18 -0
- package/docs/HostingV1PhpUpdatePhpVersionRequest.md +20 -0
- package/index.ts +1 -1
- package/package.json +1 -1
package/dist/esm/base.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 1.
|
|
4
|
+
* API Version: 1.2.1
|
|
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: 1.
|
|
6
|
+
* API Version: 1.2.1
|
|
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: 1.
|
|
4
|
+
* API Version: 1.2.1
|
|
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: 1.
|
|
6
|
+
* API Version: 1.2.1
|
|
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: 1.
|
|
4
|
+
* API Version: 1.2.1
|
|
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: 1.
|
|
6
|
+
* API Version: 1.2.1
|
|
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/1.
|
|
16
|
+
this.baseOptions = Object.assign(Object.assign({}, param.baseOptions), { headers: Object.assign({ 'User-Agent': "hostinger-typescript-sdk/1.2.1" }, (_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: 1.
|
|
4
|
+
* API Version: 1.2.1
|
|
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: 1.
|
|
6
|
+
* API Version: 1.2.1
|
|
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: 1.
|
|
4
|
+
* API Version: 1.2.1
|
|
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: 1.
|
|
7
|
+
* API Version: 1.2.1
|
|
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,11 +4,12 @@ All URIs are relative to *https://developers.hostinger.com*
|
|
|
4
4
|
|
|
5
5
|
|Method | HTTP request | Description|
|
|
6
6
|
|------------- | ------------- | -------------|
|
|
7
|
-
|[**
|
|
7
|
+
|[**createCustomSalesChannelV1**](#createcustomsaleschannelv1) | **POST** /api/ecommerce/v1/stores/{store_id}/sales-channels | Create custom sales channel|
|
|
8
8
|
|[**listSalesChannelsV1**](#listsaleschannelsv1) | **GET** /api/ecommerce/v1/stores/{store_id}/sales-channels | List sales channels|
|
|
9
|
+
|[**updateSalesChannelV1**](#updatesaleschannelv1) | **PATCH** /api/ecommerce/v1/stores/{store_id}/sales-channels/{sales_channel_id} | Update sales channel|
|
|
9
10
|
|
|
10
|
-
# **
|
|
11
|
-
> EcommerceV1SalesChannelSalesChannelCreationResource
|
|
11
|
+
# **createCustomSalesChannelV1**
|
|
12
|
+
> EcommerceV1SalesChannelSalesChannelCreationResource createCustomSalesChannelV1(ecommerceV1SalesChannelStoreRequest)
|
|
12
13
|
|
|
13
14
|
Create a custom sales channel for a store. Build your own frontend and keep your catalog, orders, shipping and payments in sync through the Ecommerce API.
|
|
14
15
|
|
|
@@ -27,7 +28,7 @@ const apiInstance = new EcommerceSalesChannelsApi(configuration);
|
|
|
27
28
|
let storeId: string; //The ID of the store to create the sales channel for. (default to undefined)
|
|
28
29
|
let ecommerceV1SalesChannelStoreRequest: EcommerceV1SalesChannelStoreRequest; //
|
|
29
30
|
|
|
30
|
-
const { status, data } = await apiInstance.
|
|
31
|
+
const { status, data } = await apiInstance.createCustomSalesChannelV1(
|
|
31
32
|
storeId,
|
|
32
33
|
ecommerceV1SalesChannelStoreRequest
|
|
33
34
|
);
|
|
@@ -118,3 +119,64 @@ const { status, data } = await apiInstance.listSalesChannelsV1(
|
|
|
118
119
|
|
|
119
120
|
[[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)
|
|
120
121
|
|
|
122
|
+
# **updateSalesChannelV1**
|
|
123
|
+
> EcommerceV1SalesChannelSalesChannelUpdateResource updateSalesChannelV1(ecommerceV1SalesChannelUpdateRequest)
|
|
124
|
+
|
|
125
|
+
Update a custom sales channel. The merchant-facing `name` and the public `url` (returned as the channel `domain`) can be changed. Pass `null` to clear a value.
|
|
126
|
+
|
|
127
|
+
### Example
|
|
128
|
+
|
|
129
|
+
```typescript
|
|
130
|
+
import {
|
|
131
|
+
EcommerceSalesChannelsApi,
|
|
132
|
+
Configuration,
|
|
133
|
+
EcommerceV1SalesChannelUpdateRequest
|
|
134
|
+
} from 'hostinger-api-sdk';
|
|
135
|
+
|
|
136
|
+
const configuration = new Configuration();
|
|
137
|
+
const apiInstance = new EcommerceSalesChannelsApi(configuration);
|
|
138
|
+
|
|
139
|
+
let storeId: string; //The ID of the store that owns the sales channel. (default to undefined)
|
|
140
|
+
let salesChannelId: string; //The ID of the sales channel to update. (default to undefined)
|
|
141
|
+
let ecommerceV1SalesChannelUpdateRequest: EcommerceV1SalesChannelUpdateRequest; //
|
|
142
|
+
|
|
143
|
+
const { status, data } = await apiInstance.updateSalesChannelV1(
|
|
144
|
+
storeId,
|
|
145
|
+
salesChannelId,
|
|
146
|
+
ecommerceV1SalesChannelUpdateRequest
|
|
147
|
+
);
|
|
148
|
+
```
|
|
149
|
+
|
|
150
|
+
### Parameters
|
|
151
|
+
|
|
152
|
+
|Name | Type | Description | Notes|
|
|
153
|
+
|------------- | ------------- | ------------- | -------------|
|
|
154
|
+
| **ecommerceV1SalesChannelUpdateRequest** | **EcommerceV1SalesChannelUpdateRequest**| | |
|
|
155
|
+
| **storeId** | [**string**] | The ID of the store that owns the sales channel. | defaults to undefined|
|
|
156
|
+
| **salesChannelId** | [**string**] | The ID of the sales channel to update. | defaults to undefined|
|
|
157
|
+
|
|
158
|
+
|
|
159
|
+
### Return type
|
|
160
|
+
|
|
161
|
+
**EcommerceV1SalesChannelSalesChannelUpdateResource**
|
|
162
|
+
|
|
163
|
+
### Authorization
|
|
164
|
+
|
|
165
|
+
[apiToken](../README.md#apiToken)
|
|
166
|
+
|
|
167
|
+
### HTTP request headers
|
|
168
|
+
|
|
169
|
+
- **Content-Type**: application/json
|
|
170
|
+
- **Accept**: application/json
|
|
171
|
+
|
|
172
|
+
|
|
173
|
+
### HTTP response details
|
|
174
|
+
| Status code | Description | Response headers |
|
|
175
|
+
|-------------|-------------|------------------|
|
|
176
|
+
|**200** | Success response | - |
|
|
177
|
+
|**422** | Validation error response | - |
|
|
178
|
+
|**401** | Unauthenticated response | - |
|
|
179
|
+
|**500** | Error response | - |
|
|
180
|
+
|
|
181
|
+
[[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)
|
|
182
|
+
|
|
@@ -6,6 +6,7 @@ All URIs are relative to *https://developers.hostinger.com*
|
|
|
6
6
|
|------------- | ------------- | -------------|
|
|
7
7
|
|[**createStoreV1**](#createstorev1) | **POST** /api/ecommerce/v1/stores | Create store|
|
|
8
8
|
|[**deleteStoreV1**](#deletestorev1) | **DELETE** /api/ecommerce/v1/stores/{store_id} | Delete store|
|
|
9
|
+
|[**getStoreMetadataV1**](#getstoremetadatav1) | **GET** /api/ecommerce/v1/stores/{store_id}/metadata | Get store metadata|
|
|
9
10
|
|[**getStoresV1**](#getstoresv1) | **GET** /api/ecommerce/v1/stores | Get stores|
|
|
10
11
|
|
|
11
12
|
# **createStoreV1**
|
|
@@ -107,6 +108,59 @@ const { status, data } = await apiInstance.deleteStoreV1(
|
|
|
107
108
|
- **Accept**: application/json
|
|
108
109
|
|
|
109
110
|
|
|
111
|
+
### HTTP response details
|
|
112
|
+
| Status code | Description | Response headers |
|
|
113
|
+
|-------------|-------------|------------------|
|
|
114
|
+
|**200** | Success response | - |
|
|
115
|
+
|**401** | Unauthenticated response | - |
|
|
116
|
+
|**500** | Error response | - |
|
|
117
|
+
|
|
118
|
+
[[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)
|
|
119
|
+
|
|
120
|
+
# **getStoreMetadataV1**
|
|
121
|
+
> EcommerceV1StoreStoreMetadataResource getStoreMetadataV1()
|
|
122
|
+
|
|
123
|
+
Get a store\'s readiness metadata: whether payment methods and shipping are configured, plus its default currency. Useful to verify prerequisites before building a storefront.
|
|
124
|
+
|
|
125
|
+
### Example
|
|
126
|
+
|
|
127
|
+
```typescript
|
|
128
|
+
import {
|
|
129
|
+
EcommerceStoresApi,
|
|
130
|
+
Configuration
|
|
131
|
+
} from 'hostinger-api-sdk';
|
|
132
|
+
|
|
133
|
+
const configuration = new Configuration();
|
|
134
|
+
const apiInstance = new EcommerceStoresApi(configuration);
|
|
135
|
+
|
|
136
|
+
let storeId: string; //The ID of the store to read metadata for. (default to undefined)
|
|
137
|
+
|
|
138
|
+
const { status, data } = await apiInstance.getStoreMetadataV1(
|
|
139
|
+
storeId
|
|
140
|
+
);
|
|
141
|
+
```
|
|
142
|
+
|
|
143
|
+
### Parameters
|
|
144
|
+
|
|
145
|
+
|Name | Type | Description | Notes|
|
|
146
|
+
|------------- | ------------- | ------------- | -------------|
|
|
147
|
+
| **storeId** | [**string**] | The ID of the store to read metadata for. | defaults to undefined|
|
|
148
|
+
|
|
149
|
+
|
|
150
|
+
### Return type
|
|
151
|
+
|
|
152
|
+
**EcommerceV1StoreStoreMetadataResource**
|
|
153
|
+
|
|
154
|
+
### Authorization
|
|
155
|
+
|
|
156
|
+
[apiToken](../README.md#apiToken)
|
|
157
|
+
|
|
158
|
+
### HTTP request headers
|
|
159
|
+
|
|
160
|
+
- **Content-Type**: Not defined
|
|
161
|
+
- **Accept**: application/json
|
|
162
|
+
|
|
163
|
+
|
|
110
164
|
### HTTP response details
|
|
111
165
|
| Status code | Description | Response headers |
|
|
112
166
|
|-------------|-------------|------------------|
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# EcommerceV1SalesChannelSalesChannelUpdateResource
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**sales_channel** | [**EcommerceV1SalesChannelSalesChannelCreationResourceSalesChannel**](EcommerceV1SalesChannelSalesChannelCreationResourceSalesChannel.md) | | [optional] [default to undefined]
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```typescript
|
|
13
|
+
import { EcommerceV1SalesChannelSalesChannelUpdateResource } from 'hostinger-api-sdk';
|
|
14
|
+
|
|
15
|
+
const instance: EcommerceV1SalesChannelSalesChannelUpdateResource = {
|
|
16
|
+
sales_channel,
|
|
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
|
+
# EcommerceV1SalesChannelUpdateRequest
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**name** | **string** | Merchant-facing custom name shown in the sales channels list. Pass null to clear it. | [optional] [default to undefined]
|
|
9
|
+
**url** | **string** | Public address where the custom sales channel lives. Pass null to clear it. | [optional] [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { EcommerceV1SalesChannelUpdateRequest } from 'hostinger-api-sdk';
|
|
15
|
+
|
|
16
|
+
const instance: EcommerceV1SalesChannelUpdateRequest = {
|
|
17
|
+
name,
|
|
18
|
+
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,20 @@
|
|
|
1
|
+
# EcommerceV1StoreStoreMetadataResource
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**metadata** | [**EcommerceV1StoreStoreMetadataResourceMetadata**](EcommerceV1StoreStoreMetadataResourceMetadata.md) | | [optional] [default to undefined]
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```typescript
|
|
13
|
+
import { EcommerceV1StoreStoreMetadataResource } from 'hostinger-api-sdk';
|
|
14
|
+
|
|
15
|
+
const instance: EcommerceV1StoreStoreMetadataResource = {
|
|
16
|
+
metadata,
|
|
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,26 @@
|
|
|
1
|
+
# EcommerceV1StoreStoreMetadataResourceMetadata
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**has_payment_methods** | **boolean** | Whether the store has at least one payment method connected. | [optional] [default to undefined]
|
|
9
|
+
**has_shipping** | **boolean** | Whether the store has at least one shipping option configured. | [optional] [default to undefined]
|
|
10
|
+
**default_currency_code** | **string** | The default currency code of the store. | [optional] [default to undefined]
|
|
11
|
+
**default_currency** | [**EcommerceV1StoreStoreMetadataResourceMetadataDefaultCurrency**](EcommerceV1StoreStoreMetadataResourceMetadataDefaultCurrency.md) | | [optional] [default to undefined]
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import { EcommerceV1StoreStoreMetadataResourceMetadata } from 'hostinger-api-sdk';
|
|
17
|
+
|
|
18
|
+
const instance: EcommerceV1StoreStoreMetadataResourceMetadata = {
|
|
19
|
+
has_payment_methods,
|
|
20
|
+
has_shipping,
|
|
21
|
+
default_currency_code,
|
|
22
|
+
default_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,37 @@
|
|
|
1
|
+
# EcommerceV1StoreStoreMetadataResourceMetadataDefaultCurrency
|
|
2
|
+
|
|
3
|
+
The store\'s default currency, or null when unset.
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**code** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**symbol** | **string** | | [optional] [default to undefined]
|
|
11
|
+
**symbol_native** | **string** | | [optional] [default to undefined]
|
|
12
|
+
**name** | **string** | | [optional] [default to undefined]
|
|
13
|
+
**name_plural** | **string** | | [optional] [default to undefined]
|
|
14
|
+
**decimal_digits** | **number** | | [optional] [default to undefined]
|
|
15
|
+
**rounding** | **number** | | [optional] [default to undefined]
|
|
16
|
+
**template** | **string** | | [optional] [default to undefined]
|
|
17
|
+
**min_amount** | **number** | | [optional] [default to undefined]
|
|
18
|
+
|
|
19
|
+
## Example
|
|
20
|
+
|
|
21
|
+
```typescript
|
|
22
|
+
import { EcommerceV1StoreStoreMetadataResourceMetadataDefaultCurrency } from 'hostinger-api-sdk';
|
|
23
|
+
|
|
24
|
+
const instance: EcommerceV1StoreStoreMetadataResourceMetadataDefaultCurrency = {
|
|
25
|
+
code,
|
|
26
|
+
symbol,
|
|
27
|
+
symbol_native,
|
|
28
|
+
name,
|
|
29
|
+
name_plural,
|
|
30
|
+
decimal_digits,
|
|
31
|
+
rounding,
|
|
32
|
+
template,
|
|
33
|
+
min_amount,
|
|
34
|
+
};
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|