@artisan-commerce/types 0.14.0-canary.14 → 0.14.0-canary.15
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/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,15 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [0.14.0-canary.15](https://bitbucket.org/tradesystem/artisn_sdk/compare/@artisan-commerce/types@0.14.0-canary.14...@artisan-commerce/types@0.14.0-canary.15) (2021-10-05)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **global:** fix ProductDetail builder and update its types ([cdc6cf9](https://bitbucket.org/tradesystem/artisn_sdk/commit/cdc6cf9ed2e7ff1a340bc691b0dc1156bc682d38))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
6
15
|
## [0.14.0-canary.14](https://bitbucket.org/tradesystem/artisn_sdk/compare/@artisan-commerce/types@0.14.0-canary.13...@artisan-commerce/types@0.14.0-canary.14) (2021-10-01)
|
|
7
16
|
|
|
8
17
|
|
|
@@ -5,21 +5,17 @@
|
|
|
5
5
|
* @since 0.5.14
|
|
6
6
|
*/
|
|
7
7
|
export interface Country {
|
|
8
|
-
/** Country's
|
|
9
|
-
|
|
8
|
+
/** Country's identifier */
|
|
9
|
+
id: number;
|
|
10
10
|
/** Country's name */
|
|
11
11
|
name: string;
|
|
12
12
|
/** Country ISO code, see {@link CountryCode} */
|
|
13
13
|
code: CountryCode;
|
|
14
|
-
/** Whether or not the country is active */
|
|
15
|
-
active: boolean;
|
|
16
14
|
/**
|
|
17
15
|
* Object which contains information about country's currency,
|
|
18
16
|
* see {@link CountryCurrency}
|
|
19
17
|
*/
|
|
20
18
|
currency: CountryCurrency;
|
|
21
|
-
/** Array of taxes usually applied on the country, see {@link CountryTax} */
|
|
22
|
-
taxes: CountryTax[];
|
|
23
19
|
}
|
|
24
20
|
/**
|
|
25
21
|
* Representation of a country's currency.
|
|
@@ -28,26 +24,14 @@ export interface Country {
|
|
|
28
24
|
* @since 0.5.14
|
|
29
25
|
*/
|
|
30
26
|
export interface CountryCurrency {
|
|
31
|
-
/** Currency's
|
|
32
|
-
|
|
27
|
+
/** Currency's identifier */
|
|
28
|
+
id: number;
|
|
33
29
|
/** Currency's name */
|
|
34
30
|
name: string;
|
|
35
31
|
/** Currency's symbol */
|
|
36
32
|
sign: string;
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
* Representation of a country's tax.
|
|
40
|
-
*
|
|
41
|
-
* @interface CountryTax
|
|
42
|
-
* @since 0.5.14
|
|
43
|
-
*/
|
|
44
|
-
export interface CountryTax {
|
|
45
|
-
/** Tax name */
|
|
46
|
-
tax: string;
|
|
47
|
-
/** Value added tax rate */
|
|
48
|
-
vatRate: string;
|
|
49
|
-
/** Tax percentage */
|
|
50
|
-
percentage: number;
|
|
33
|
+
/** Currency's external identifier */
|
|
34
|
+
external_id: string;
|
|
51
35
|
}
|
|
52
36
|
/**
|
|
53
37
|
* List of country codes currently supported.
|
|
@@ -222,8 +222,8 @@ export interface ProductDetails extends BaseProduct {
|
|
|
222
222
|
/** Array of product questions, see {@link ProductQuestion} */
|
|
223
223
|
questions: ProductQuestion[];
|
|
224
224
|
/** The benefit id of the product */
|
|
225
|
-
benefitId
|
|
226
|
-
categories
|
|
225
|
+
benefitId: number | null;
|
|
226
|
+
categories: Category[] | null;
|
|
227
227
|
}
|
|
228
228
|
/**
|
|
229
229
|
* Representation of a Commerce Product Answer.
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@artisan-commerce/types",
|
|
3
3
|
"description": "Artisn's types and interfaces library",
|
|
4
|
-
"version": "0.14.0-canary.
|
|
4
|
+
"version": "0.14.0-canary.15",
|
|
5
5
|
"main": "./build/index.js",
|
|
6
6
|
"types": "./build/index.d.ts",
|
|
7
7
|
"files": [
|
|
@@ -45,5 +45,5 @@
|
|
|
45
45
|
"prettier": "^2.1.2",
|
|
46
46
|
"webpack-bundle-analyzer": "^3.9.0"
|
|
47
47
|
},
|
|
48
|
-
"gitHead": "
|
|
48
|
+
"gitHead": "3dd98531bbced6940b68711bfc3246163339ed61"
|
|
49
49
|
}
|