ultracart_rest_api_v2_typescript 4.1.112 → 4.1.114
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 +4 -2
- package/dist/models/AnrokConfig.d.ts +12 -0
- package/dist/models/AnrokConfig.js +4 -0
- package/package.json +1 -1
- package/src/models/AnrokConfig.ts +16 -0
package/README.md
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
# UltraCart Typescript SDK
|
|
2
|
-
## ultracart_rest_api_v2_typescript@4.1.
|
|
2
|
+
## ultracart_rest_api_v2_typescript@4.1.114
|
|
3
3
|
|
|
4
4
|
Every API method call has a sample for every language SDK. See https://github.com/UltraCart/sdk_samples
|
|
5
5
|
|
|
6
6
|
Installation
|
|
7
7
|
|
|
8
8
|
```
|
|
9
|
-
npm install ultracart_rest_api_v2_typescript@4.1.
|
|
9
|
+
npm install ultracart_rest_api_v2_typescript@4.1.114 --save
|
|
10
10
|
```
|
|
11
11
|
|
|
12
12
|
```typescript
|
|
@@ -85,6 +85,8 @@ Not every change is committed to every SDK.
|
|
|
85
85
|
|
|
86
86
|
| Version | Date | Comments |
|
|
87
87
|
| --: | :-: | --- |
|
|
88
|
+
| 4.1.114 | 07/08/2026 | tax - anrok tax provider |
|
|
89
|
+
| 4.1.113 | 07/08/2026 | tax - anrok tax provider |
|
|
88
90
|
| 4.1.112 | 07/08/2026 | tax - added anrok tax provider |
|
|
89
91
|
| 4.1.111 | 07/08/2026 | storefront - additional email dispatch log methods |
|
|
90
92
|
| 4.1.110 | 07/06/2026 | Conversation - CRM message type constant for tool call |
|
|
@@ -21,6 +21,12 @@ export interface AnrokConfig {
|
|
|
21
21
|
* @memberof AnrokConfig
|
|
22
22
|
*/
|
|
23
23
|
api_key?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Default Anrok Product ID, used for cart items that do not have their own Anrok Product ID assigned
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof AnrokConfig
|
|
28
|
+
*/
|
|
29
|
+
default_product_id?: string;
|
|
24
30
|
/**
|
|
25
31
|
* True if this Anrok configuration is to estimate taxes only and not report placed orders to Anrok
|
|
26
32
|
* @type {boolean}
|
|
@@ -33,6 +39,12 @@ export interface AnrokConfig {
|
|
|
33
39
|
* @memberof AnrokConfig
|
|
34
40
|
*/
|
|
35
41
|
last_test_dts?: string;
|
|
42
|
+
/**
|
|
43
|
+
* Anrok Product ID used to classify shipping/handling charges; must be created in Anrok and mapped to the Shipping cost tax category
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof AnrokConfig
|
|
46
|
+
*/
|
|
47
|
+
shipping_product_id?: string;
|
|
36
48
|
/**
|
|
37
49
|
* Test results of the last connection test to Anrok
|
|
38
50
|
* @type {string}
|
|
@@ -33,8 +33,10 @@ function AnrokConfigFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
33
33
|
}
|
|
34
34
|
return {
|
|
35
35
|
'api_key': !(0, runtime_1.exists)(json, 'api_key') ? undefined : json['api_key'],
|
|
36
|
+
'default_product_id': !(0, runtime_1.exists)(json, 'default_product_id') ? undefined : json['default_product_id'],
|
|
36
37
|
'estimate_only': !(0, runtime_1.exists)(json, 'estimate_only') ? undefined : json['estimate_only'],
|
|
37
38
|
'last_test_dts': !(0, runtime_1.exists)(json, 'last_test_dts') ? undefined : json['last_test_dts'],
|
|
39
|
+
'shipping_product_id': !(0, runtime_1.exists)(json, 'shipping_product_id') ? undefined : json['shipping_product_id'],
|
|
38
40
|
'test_results': !(0, runtime_1.exists)(json, 'test_results') ? undefined : json['test_results'],
|
|
39
41
|
};
|
|
40
42
|
}
|
|
@@ -48,8 +50,10 @@ function AnrokConfigToJSON(value) {
|
|
|
48
50
|
}
|
|
49
51
|
return {
|
|
50
52
|
'api_key': value.api_key,
|
|
53
|
+
'default_product_id': value.default_product_id,
|
|
51
54
|
'estimate_only': value.estimate_only,
|
|
52
55
|
'last_test_dts': value.last_test_dts,
|
|
56
|
+
'shipping_product_id': value.shipping_product_id,
|
|
53
57
|
'test_results': value.test_results,
|
|
54
58
|
};
|
|
55
59
|
}
|
package/package.json
CHANGED
|
@@ -25,6 +25,12 @@ export interface AnrokConfig {
|
|
|
25
25
|
* @memberof AnrokConfig
|
|
26
26
|
*/
|
|
27
27
|
api_key?: string;
|
|
28
|
+
/**
|
|
29
|
+
* Default Anrok Product ID, used for cart items that do not have their own Anrok Product ID assigned
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof AnrokConfig
|
|
32
|
+
*/
|
|
33
|
+
default_product_id?: string;
|
|
28
34
|
/**
|
|
29
35
|
* True if this Anrok configuration is to estimate taxes only and not report placed orders to Anrok
|
|
30
36
|
* @type {boolean}
|
|
@@ -37,6 +43,12 @@ export interface AnrokConfig {
|
|
|
37
43
|
* @memberof AnrokConfig
|
|
38
44
|
*/
|
|
39
45
|
last_test_dts?: string;
|
|
46
|
+
/**
|
|
47
|
+
* Anrok Product ID used to classify shipping/handling charges; must be created in Anrok and mapped to the Shipping cost tax category
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof AnrokConfig
|
|
50
|
+
*/
|
|
51
|
+
shipping_product_id?: string;
|
|
40
52
|
/**
|
|
41
53
|
* Test results of the last connection test to Anrok
|
|
42
54
|
* @type {string}
|
|
@@ -67,8 +79,10 @@ export function AnrokConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean
|
|
|
67
79
|
return {
|
|
68
80
|
|
|
69
81
|
'api_key': !exists(json, 'api_key') ? undefined : json['api_key'],
|
|
82
|
+
'default_product_id': !exists(json, 'default_product_id') ? undefined : json['default_product_id'],
|
|
70
83
|
'estimate_only': !exists(json, 'estimate_only') ? undefined : json['estimate_only'],
|
|
71
84
|
'last_test_dts': !exists(json, 'last_test_dts') ? undefined : json['last_test_dts'],
|
|
85
|
+
'shipping_product_id': !exists(json, 'shipping_product_id') ? undefined : json['shipping_product_id'],
|
|
72
86
|
'test_results': !exists(json, 'test_results') ? undefined : json['test_results'],
|
|
73
87
|
};
|
|
74
88
|
}
|
|
@@ -83,8 +97,10 @@ export function AnrokConfigToJSON(value?: AnrokConfig | null): any {
|
|
|
83
97
|
return {
|
|
84
98
|
|
|
85
99
|
'api_key': value.api_key,
|
|
100
|
+
'default_product_id': value.default_product_id,
|
|
86
101
|
'estimate_only': value.estimate_only,
|
|
87
102
|
'last_test_dts': value.last_test_dts,
|
|
103
|
+
'shipping_product_id': value.shipping_product_id,
|
|
88
104
|
'test_results': value.test_results,
|
|
89
105
|
};
|
|
90
106
|
}
|