hostinger-api-sdk 2.5.1 → 2.6.0

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 CHANGED
@@ -1,9 +1,9 @@
1
- ## @hostinger/sdk@2.5.1
1
+ ## @hostinger/sdk@2.6.0
2
2
 
3
3
  For more information, please visit [https://developers.hostinger.com](https://developers.hostinger.com).
4
4
 
5
5
  ### Usage
6
6
 
7
7
  ```
8
- npm install @hostinger/sdk@2.5.1 --save
8
+ npm install @hostinger/sdk@2.6.0 --save
9
9
  ```
package/api.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 2.5.1
6
+ * API Version: 2.6.0
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
@@ -4747,6 +4747,12 @@ export interface EcommerceV1OrderOrderDetailResource {
4747
4747
  * @memberof EcommerceV1OrderOrderDetailResource
4748
4748
  */
4749
4749
  'merchant_note': string | null;
4750
+ /**
4751
+ *
4752
+ * @type {EcommerceV1OrderOrderMetadataResource}
4753
+ * @memberof EcommerceV1OrderOrderDetailResource
4754
+ */
4755
+ 'metadata': EcommerceV1OrderOrderMetadataResource;
4750
4756
  /**
4751
4757
  * Subtotal in the smallest currency unit.
4752
4758
  * @type {number}
@@ -5060,6 +5066,19 @@ export interface EcommerceV1OrderOrderDetailResponseResource {
5060
5066
  */
5061
5067
  'data': EcommerceV1OrderOrderDetailResource;
5062
5068
  }
5069
+ /**
5070
+ *
5071
+ * @export
5072
+ * @interface EcommerceV1OrderOrderMetadataResource
5073
+ */
5074
+ export interface EcommerceV1OrderOrderMetadataResource {
5075
+ /**
5076
+ * Custom attributes collected at checkout, keyed by attribute name, or null.
5077
+ * @type {{ [key: string]: string; }}
5078
+ * @memberof EcommerceV1OrderOrderMetadataResource
5079
+ */
5080
+ 'attributes': { [key: string]: string; } | null;
5081
+ }
5063
5082
  /**
5064
5083
  *
5065
5084
  * @export
package/base.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 2.5.1
6
+ * API Version: 2.6.0
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/common.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 2.5.1
6
+ * API Version: 2.6.0
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/configuration.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 2.5.1
6
+ * API Version: 2.6.0
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
@@ -48,7 +48,7 @@ export class Configuration {
48
48
  this.baseOptions = {
49
49
  ...param.baseOptions,
50
50
  headers: {
51
- 'User-Agent': "hostinger-typescript-sdk/2.5.1",
51
+ 'User-Agent': "hostinger-typescript-sdk/2.6.0",
52
52
  ...param.baseOptions?.headers,
53
53
  },
54
54
  };
package/dist/api.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Hostinger API
3
3
  *
4
- * API Version: 2.5.1
4
+ * API Version: 2.6.0
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
@@ -4632,6 +4632,12 @@ export interface EcommerceV1OrderOrderDetailResource {
4632
4632
  * @memberof EcommerceV1OrderOrderDetailResource
4633
4633
  */
4634
4634
  'merchant_note': string | null;
4635
+ /**
4636
+ *
4637
+ * @type {EcommerceV1OrderOrderMetadataResource}
4638
+ * @memberof EcommerceV1OrderOrderDetailResource
4639
+ */
4640
+ 'metadata': EcommerceV1OrderOrderMetadataResource;
4635
4641
  /**
4636
4642
  * Subtotal in the smallest currency unit.
4637
4643
  * @type {number}
@@ -4945,6 +4951,21 @@ export interface EcommerceV1OrderOrderDetailResponseResource {
4945
4951
  */
4946
4952
  'data': EcommerceV1OrderOrderDetailResource;
4947
4953
  }
4954
+ /**
4955
+ *
4956
+ * @export
4957
+ * @interface EcommerceV1OrderOrderMetadataResource
4958
+ */
4959
+ export interface EcommerceV1OrderOrderMetadataResource {
4960
+ /**
4961
+ * Custom attributes collected at checkout, keyed by attribute name, or null.
4962
+ * @type {{ [key: string]: string; }}
4963
+ * @memberof EcommerceV1OrderOrderMetadataResource
4964
+ */
4965
+ 'attributes': {
4966
+ [key: string]: string;
4967
+ } | null;
4968
+ }
4948
4969
  /**
4949
4970
  *
4950
4971
  * @export
package/dist/api.js CHANGED
@@ -4,7 +4,7 @@
4
4
  /**
5
5
  * Hostinger API
6
6
  *
7
- * API Version: 2.5.1
7
+ * API Version: 2.6.0
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
package/dist/base.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Hostinger API
3
3
  *
4
- * API Version: 2.5.1
4
+ * API Version: 2.6.0
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/base.js CHANGED
@@ -4,7 +4,7 @@
4
4
  /**
5
5
  * Hostinger API
6
6
  *
7
- * API Version: 2.5.1
7
+ * API Version: 2.6.0
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
package/dist/common.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Hostinger API
3
3
  *
4
- * API Version: 2.5.1
4
+ * API Version: 2.6.0
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/common.js CHANGED
@@ -4,7 +4,7 @@
4
4
  /**
5
5
  * Hostinger API
6
6
  *
7
- * API Version: 2.5.1
7
+ * API Version: 2.6.0
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
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Hostinger API
3
3
  *
4
- * API Version: 2.5.1
4
+ * API Version: 2.6.0
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
@@ -4,7 +4,7 @@
4
4
  /**
5
5
  * Hostinger API
6
6
  *
7
- * API Version: 2.5.1
7
+ * API Version: 2.6.0
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
@@ -16,7 +16,7 @@ class Configuration {
16
16
  var _a;
17
17
  this.accessToken = param.accessToken;
18
18
  this.basePath = param.basePath;
19
- this.baseOptions = Object.assign(Object.assign({}, param.baseOptions), { headers: Object.assign({ 'User-Agent': "hostinger-typescript-sdk/2.5.1" }, (_a = param.baseOptions) === null || _a === void 0 ? void 0 : _a.headers) });
19
+ this.baseOptions = Object.assign(Object.assign({}, param.baseOptions), { headers: Object.assign({ 'User-Agent': "hostinger-typescript-sdk/2.6.0" }, (_a = param.baseOptions) === null || _a === void 0 ? void 0 : _a.headers) });
20
20
  this.formDataCtor = param.formDataCtor;
21
21
  }
22
22
  /**
package/dist/esm/api.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Hostinger API
3
3
  *
4
- * API Version: 2.5.1
4
+ * API Version: 2.6.0
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
@@ -4632,6 +4632,12 @@ export interface EcommerceV1OrderOrderDetailResource {
4632
4632
  * @memberof EcommerceV1OrderOrderDetailResource
4633
4633
  */
4634
4634
  'merchant_note': string | null;
4635
+ /**
4636
+ *
4637
+ * @type {EcommerceV1OrderOrderMetadataResource}
4638
+ * @memberof EcommerceV1OrderOrderDetailResource
4639
+ */
4640
+ 'metadata': EcommerceV1OrderOrderMetadataResource;
4635
4641
  /**
4636
4642
  * Subtotal in the smallest currency unit.
4637
4643
  * @type {number}
@@ -4945,6 +4951,21 @@ export interface EcommerceV1OrderOrderDetailResponseResource {
4945
4951
  */
4946
4952
  'data': EcommerceV1OrderOrderDetailResource;
4947
4953
  }
4954
+ /**
4955
+ *
4956
+ * @export
4957
+ * @interface EcommerceV1OrderOrderMetadataResource
4958
+ */
4959
+ export interface EcommerceV1OrderOrderMetadataResource {
4960
+ /**
4961
+ * Custom attributes collected at checkout, keyed by attribute name, or null.
4962
+ * @type {{ [key: string]: string; }}
4963
+ * @memberof EcommerceV1OrderOrderMetadataResource
4964
+ */
4965
+ 'attributes': {
4966
+ [key: string]: string;
4967
+ } | null;
4968
+ }
4948
4969
  /**
4949
4970
  *
4950
4971
  * @export
package/dist/esm/api.js CHANGED
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 2.5.1
6
+ * API Version: 2.6.0
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: 2.5.1
4
+ * API Version: 2.6.0
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: 2.5.1
6
+ * API Version: 2.6.0
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: 2.5.1
4
+ * API Version: 2.6.0
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: 2.5.1
6
+ * API Version: 2.6.0
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: 2.5.1
4
+ * API Version: 2.6.0
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: 2.5.1
6
+ * API Version: 2.6.0
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/2.5.1" }, (_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/2.6.0" }, (_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: 2.5.1
4
+ * API Version: 2.6.0
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: 2.5.1
6
+ * API Version: 2.6.0
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: 2.5.1
4
+ * API Version: 2.6.0
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: 2.5.1
7
+ * API Version: 2.6.0
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
@@ -16,6 +16,7 @@ Name | Type | Description | Notes
16
16
  **item_count** | **number** | Number of distinct line items. | [optional] [default to undefined]
17
17
  **created_at** | **string** | ISO timestamp of when the order was created. | [optional] [default to undefined]
18
18
  **merchant_note** | **string** | Internal note visible only to the merchant. | [optional] [default to undefined]
19
+ **metadata** | [**EcommerceV1OrderOrderMetadataResource**](EcommerceV1OrderOrderMetadataResource.md) | | [optional] [default to undefined]
19
20
  **subtotal** | **number** | Subtotal in the smallest currency unit. | [optional] [default to undefined]
20
21
  **discount_total** | **number** | Discount total in the smallest currency unit. | [optional] [default to undefined]
21
22
  **tax_total** | **number** | Tax total in the smallest currency unit. | [optional] [default to undefined]
@@ -44,6 +45,7 @@ const instance: EcommerceV1OrderOrderDetailResource = {
44
45
  item_count,
45
46
  created_at,
46
47
  merchant_note,
48
+ metadata,
47
49
  subtotal,
48
50
  discount_total,
49
51
  tax_total,
@@ -0,0 +1,20 @@
1
+ # EcommerceV1OrderOrderMetadataResource
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **attributes** | **{ [key: string]: string; }** | Custom attributes collected at checkout, keyed by attribute name, or null. | [optional] [default to undefined]
9
+
10
+ ## Example
11
+
12
+ ```typescript
13
+ import { EcommerceV1OrderOrderMetadataResource } from '@hostinger/sdk';
14
+
15
+ const instance: EcommerceV1OrderOrderMetadataResource = {
16
+ attributes,
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)
package/index.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 2.5.1
6
+ * API Version: 2.6.0
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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hostinger-api-sdk",
3
- "version": "2.5.1",
3
+ "version": "2.6.0",
4
4
  "description": "Hostinger API TypeScript SDK",
5
5
  "author": "Hostinger",
6
6
  "repository": {