ultracart_rest_api_v2_typescript 4.0.175 → 4.0.177
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/CustomerProperty.d.ts +6 -0
- package/dist/models/CustomerProperty.js +2 -0
- package/dist/models/ItemIdentifiers.d.ts +24 -0
- package/dist/models/ItemIdentifiers.js +8 -0
- package/dist/models/OrderItem.d.ts +24 -0
- package/dist/models/OrderItem.js +8 -0
- package/package.json +1 -1
- package/src/models/CustomerProperty.ts +8 -0
- package/src/models/ItemIdentifiers.ts +32 -0
- package/src/models/OrderItem.ts +32 -0
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## ultracart_rest_api_v2_typescript@4.0.
|
|
1
|
+
## ultracart_rest_api_v2_typescript@4.0.177
|
|
2
2
|
|
|
3
3
|
This generator creates TypeScript/JavaScript client that utilizes [Fetch API](https://fetch.spec.whatwg.org/). The generated Node module can be used in the following environments:
|
|
4
4
|
|
|
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
|
|
|
36
36
|
_published:_
|
|
37
37
|
|
|
38
38
|
```
|
|
39
|
-
npm install ultracart_rest_api_v2_typescript@4.0.
|
|
39
|
+
npm install ultracart_rest_api_v2_typescript@4.0.177 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -54,6 +54,8 @@ Not every change is committed to every SDK.
|
|
|
54
54
|
|
|
55
55
|
| Version | Date | Comments |
|
|
56
56
|
| --: | :-: | --- |
|
|
57
|
+
| 4.0.177 | 09/15/2023 | new item fields for additional barcodes |
|
|
58
|
+
| 4.0.176 | 09/12/2023 | added oids to customer properties |
|
|
57
59
|
| 4.0.175 | 09/06/2023 | esp condition for survey trigger |
|
|
58
60
|
| 4.0.174 | 09/05/2023 | auto order schedule - add intervals for 4 6 and 8 weeks |
|
|
59
61
|
| 4.0.173 | 08/31/2023 | new coupon - free item and free shipping with purchase |
|
|
@@ -15,6 +15,12 @@
|
|
|
15
15
|
* @interface CustomerProperty
|
|
16
16
|
*/
|
|
17
17
|
export interface CustomerProperty {
|
|
18
|
+
/**
|
|
19
|
+
* Customer profile property oid
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof CustomerProperty
|
|
22
|
+
*/
|
|
23
|
+
customer_profile_property_oid?: number;
|
|
18
24
|
/**
|
|
19
25
|
* The date/time that the property expires and is deleted
|
|
20
26
|
* @type {string}
|
|
@@ -24,6 +24,7 @@ function CustomerPropertyFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
24
24
|
return json;
|
|
25
25
|
}
|
|
26
26
|
return {
|
|
27
|
+
'customer_profile_property_oid': !(0, runtime_1.exists)(json, 'customer_profile_property_oid') ? undefined : json['customer_profile_property_oid'],
|
|
27
28
|
'expiration_dts': !(0, runtime_1.exists)(json, 'expiration_dts') ? undefined : json['expiration_dts'],
|
|
28
29
|
'name': !(0, runtime_1.exists)(json, 'name') ? undefined : json['name'],
|
|
29
30
|
'value': !(0, runtime_1.exists)(json, 'value') ? undefined : json['value'],
|
|
@@ -38,6 +39,7 @@ function CustomerPropertyToJSON(value) {
|
|
|
38
39
|
return null;
|
|
39
40
|
}
|
|
40
41
|
return {
|
|
42
|
+
'customer_profile_property_oid': value.customer_profile_property_oid,
|
|
41
43
|
'expiration_dts': value.expiration_dts,
|
|
42
44
|
'name': value.name,
|
|
43
45
|
'value': value.value,
|
|
@@ -21,6 +21,30 @@ export interface ItemIdentifiers {
|
|
|
21
21
|
* @memberof ItemIdentifiers
|
|
22
22
|
*/
|
|
23
23
|
barcode?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Barcode - GTIN 12
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof ItemIdentifiers
|
|
28
|
+
*/
|
|
29
|
+
barcode_gtin12?: string;
|
|
30
|
+
/**
|
|
31
|
+
* Barcode - GTIN 14
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof ItemIdentifiers
|
|
34
|
+
*/
|
|
35
|
+
barcode_gtin14?: string;
|
|
36
|
+
/**
|
|
37
|
+
* Barcode - UPC 11
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof ItemIdentifiers
|
|
40
|
+
*/
|
|
41
|
+
barcode_upc11?: string;
|
|
42
|
+
/**
|
|
43
|
+
* Barcode - UPC 12
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof ItemIdentifiers
|
|
46
|
+
*/
|
|
47
|
+
barcode_upc12?: string;
|
|
24
48
|
/**
|
|
25
49
|
* Manufacturer Name
|
|
26
50
|
* @type {string}
|
|
@@ -25,6 +25,10 @@ function ItemIdentifiersFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
25
25
|
}
|
|
26
26
|
return {
|
|
27
27
|
'barcode': !(0, runtime_1.exists)(json, 'barcode') ? undefined : json['barcode'],
|
|
28
|
+
'barcode_gtin12': !(0, runtime_1.exists)(json, 'barcode_gtin12') ? undefined : json['barcode_gtin12'],
|
|
29
|
+
'barcode_gtin14': !(0, runtime_1.exists)(json, 'barcode_gtin14') ? undefined : json['barcode_gtin14'],
|
|
30
|
+
'barcode_upc11': !(0, runtime_1.exists)(json, 'barcode_upc11') ? undefined : json['barcode_upc11'],
|
|
31
|
+
'barcode_upc12': !(0, runtime_1.exists)(json, 'barcode_upc12') ? undefined : json['barcode_upc12'],
|
|
28
32
|
'manufacturer_name': !(0, runtime_1.exists)(json, 'manufacturer_name') ? undefined : json['manufacturer_name'],
|
|
29
33
|
'manufacturer_sku': !(0, runtime_1.exists)(json, 'manufacturer_sku') ? undefined : json['manufacturer_sku'],
|
|
30
34
|
'unspsc': !(0, runtime_1.exists)(json, 'unspsc') ? undefined : json['unspsc'],
|
|
@@ -40,6 +44,10 @@ function ItemIdentifiersToJSON(value) {
|
|
|
40
44
|
}
|
|
41
45
|
return {
|
|
42
46
|
'barcode': value.barcode,
|
|
47
|
+
'barcode_gtin12': value.barcode_gtin12,
|
|
48
|
+
'barcode_gtin14': value.barcode_gtin14,
|
|
49
|
+
'barcode_upc11': value.barcode_upc11,
|
|
50
|
+
'barcode_upc12': value.barcode_upc12,
|
|
43
51
|
'manufacturer_name': value.manufacturer_name,
|
|
44
52
|
'manufacturer_sku': value.manufacturer_sku,
|
|
45
53
|
'unspsc': value.unspsc,
|
|
@@ -58,6 +58,30 @@ export interface OrderItem {
|
|
|
58
58
|
* @memberof OrderItem
|
|
59
59
|
*/
|
|
60
60
|
barcode?: string;
|
|
61
|
+
/**
|
|
62
|
+
* Barcode - GTIN 12
|
|
63
|
+
* @type {string}
|
|
64
|
+
* @memberof OrderItem
|
|
65
|
+
*/
|
|
66
|
+
barcode_gtin12?: string;
|
|
67
|
+
/**
|
|
68
|
+
* Barcode - GTIN 14
|
|
69
|
+
* @type {string}
|
|
70
|
+
* @memberof OrderItem
|
|
71
|
+
*/
|
|
72
|
+
barcode_gtin14?: string;
|
|
73
|
+
/**
|
|
74
|
+
* Barcode - UPC 11
|
|
75
|
+
* @type {string}
|
|
76
|
+
* @memberof OrderItem
|
|
77
|
+
*/
|
|
78
|
+
barcode_upc11?: string;
|
|
79
|
+
/**
|
|
80
|
+
* Barcode - UPC 12
|
|
81
|
+
* @type {string}
|
|
82
|
+
* @memberof OrderItem
|
|
83
|
+
*/
|
|
84
|
+
barcode_upc12?: string;
|
|
61
85
|
/**
|
|
62
86
|
* Channel partner item id if this order came through a channel partner and the channel partner item id was mapped to an internal item id
|
|
63
87
|
* @type {string}
|
package/dist/models/OrderItem.js
CHANGED
|
@@ -46,6 +46,10 @@ function OrderItemFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
46
46
|
'auto_order_last_rebill_dts': !(0, runtime_1.exists)(json, 'auto_order_last_rebill_dts') ? undefined : json['auto_order_last_rebill_dts'],
|
|
47
47
|
'auto_order_schedule': !(0, runtime_1.exists)(json, 'auto_order_schedule') ? undefined : json['auto_order_schedule'],
|
|
48
48
|
'barcode': !(0, runtime_1.exists)(json, 'barcode') ? undefined : json['barcode'],
|
|
49
|
+
'barcode_gtin12': !(0, runtime_1.exists)(json, 'barcode_gtin12') ? undefined : json['barcode_gtin12'],
|
|
50
|
+
'barcode_gtin14': !(0, runtime_1.exists)(json, 'barcode_gtin14') ? undefined : json['barcode_gtin14'],
|
|
51
|
+
'barcode_upc11': !(0, runtime_1.exists)(json, 'barcode_upc11') ? undefined : json['barcode_upc11'],
|
|
52
|
+
'barcode_upc12': !(0, runtime_1.exists)(json, 'barcode_upc12') ? undefined : json['barcode_upc12'],
|
|
49
53
|
'channel_partner_item_id': !(0, runtime_1.exists)(json, 'channel_partner_item_id') ? undefined : json['channel_partner_item_id'],
|
|
50
54
|
'cogs': !(0, runtime_1.exists)(json, 'cogs') ? undefined : json['cogs'],
|
|
51
55
|
'component_unit_value': !(0, runtime_1.exists)(json, 'component_unit_value') ? undefined : json['component_unit_value'],
|
|
@@ -118,6 +122,10 @@ function OrderItemToJSON(value) {
|
|
|
118
122
|
'auto_order_last_rebill_dts': value.auto_order_last_rebill_dts,
|
|
119
123
|
'auto_order_schedule': value.auto_order_schedule,
|
|
120
124
|
'barcode': value.barcode,
|
|
125
|
+
'barcode_gtin12': value.barcode_gtin12,
|
|
126
|
+
'barcode_gtin14': value.barcode_gtin14,
|
|
127
|
+
'barcode_upc11': value.barcode_upc11,
|
|
128
|
+
'barcode_upc12': value.barcode_upc12,
|
|
121
129
|
'channel_partner_item_id': value.channel_partner_item_id,
|
|
122
130
|
'cogs': value.cogs,
|
|
123
131
|
'component_unit_value': value.component_unit_value,
|
package/package.json
CHANGED
|
@@ -19,6 +19,12 @@ import { exists, mapValues } from '../runtime';
|
|
|
19
19
|
* @interface CustomerProperty
|
|
20
20
|
*/
|
|
21
21
|
export interface CustomerProperty {
|
|
22
|
+
/**
|
|
23
|
+
* Customer profile property oid
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof CustomerProperty
|
|
26
|
+
*/
|
|
27
|
+
customer_profile_property_oid?: number;
|
|
22
28
|
/**
|
|
23
29
|
* The date/time that the property expires and is deleted
|
|
24
30
|
* @type {string}
|
|
@@ -49,6 +55,7 @@ export function CustomerPropertyFromJSONTyped(json: any, ignoreDiscriminator: bo
|
|
|
49
55
|
}
|
|
50
56
|
return {
|
|
51
57
|
|
|
58
|
+
'customer_profile_property_oid': !exists(json, 'customer_profile_property_oid') ? undefined : json['customer_profile_property_oid'],
|
|
52
59
|
'expiration_dts': !exists(json, 'expiration_dts') ? undefined : json['expiration_dts'],
|
|
53
60
|
'name': !exists(json, 'name') ? undefined : json['name'],
|
|
54
61
|
'value': !exists(json, 'value') ? undefined : json['value'],
|
|
@@ -64,6 +71,7 @@ export function CustomerPropertyToJSON(value?: CustomerProperty | null): any {
|
|
|
64
71
|
}
|
|
65
72
|
return {
|
|
66
73
|
|
|
74
|
+
'customer_profile_property_oid': value.customer_profile_property_oid,
|
|
67
75
|
'expiration_dts': value.expiration_dts,
|
|
68
76
|
'name': value.name,
|
|
69
77
|
'value': value.value,
|
|
@@ -25,6 +25,30 @@ export interface ItemIdentifiers {
|
|
|
25
25
|
* @memberof ItemIdentifiers
|
|
26
26
|
*/
|
|
27
27
|
barcode?: string;
|
|
28
|
+
/**
|
|
29
|
+
* Barcode - GTIN 12
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof ItemIdentifiers
|
|
32
|
+
*/
|
|
33
|
+
barcode_gtin12?: string;
|
|
34
|
+
/**
|
|
35
|
+
* Barcode - GTIN 14
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof ItemIdentifiers
|
|
38
|
+
*/
|
|
39
|
+
barcode_gtin14?: string;
|
|
40
|
+
/**
|
|
41
|
+
* Barcode - UPC 11
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof ItemIdentifiers
|
|
44
|
+
*/
|
|
45
|
+
barcode_upc11?: string;
|
|
46
|
+
/**
|
|
47
|
+
* Barcode - UPC 12
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof ItemIdentifiers
|
|
50
|
+
*/
|
|
51
|
+
barcode_upc12?: string;
|
|
28
52
|
/**
|
|
29
53
|
* Manufacturer Name
|
|
30
54
|
* @type {string}
|
|
@@ -56,6 +80,10 @@ export function ItemIdentifiersFromJSONTyped(json: any, ignoreDiscriminator: boo
|
|
|
56
80
|
return {
|
|
57
81
|
|
|
58
82
|
'barcode': !exists(json, 'barcode') ? undefined : json['barcode'],
|
|
83
|
+
'barcode_gtin12': !exists(json, 'barcode_gtin12') ? undefined : json['barcode_gtin12'],
|
|
84
|
+
'barcode_gtin14': !exists(json, 'barcode_gtin14') ? undefined : json['barcode_gtin14'],
|
|
85
|
+
'barcode_upc11': !exists(json, 'barcode_upc11') ? undefined : json['barcode_upc11'],
|
|
86
|
+
'barcode_upc12': !exists(json, 'barcode_upc12') ? undefined : json['barcode_upc12'],
|
|
59
87
|
'manufacturer_name': !exists(json, 'manufacturer_name') ? undefined : json['manufacturer_name'],
|
|
60
88
|
'manufacturer_sku': !exists(json, 'manufacturer_sku') ? undefined : json['manufacturer_sku'],
|
|
61
89
|
'unspsc': !exists(json, 'unspsc') ? undefined : json['unspsc'],
|
|
@@ -72,6 +100,10 @@ export function ItemIdentifiersToJSON(value?: ItemIdentifiers | null): any {
|
|
|
72
100
|
return {
|
|
73
101
|
|
|
74
102
|
'barcode': value.barcode,
|
|
103
|
+
'barcode_gtin12': value.barcode_gtin12,
|
|
104
|
+
'barcode_gtin14': value.barcode_gtin14,
|
|
105
|
+
'barcode_upc11': value.barcode_upc11,
|
|
106
|
+
'barcode_upc12': value.barcode_upc12,
|
|
75
107
|
'manufacturer_name': value.manufacturer_name,
|
|
76
108
|
'manufacturer_sku': value.manufacturer_sku,
|
|
77
109
|
'unspsc': value.unspsc,
|
package/src/models/OrderItem.ts
CHANGED
|
@@ -98,6 +98,30 @@ export interface OrderItem {
|
|
|
98
98
|
* @memberof OrderItem
|
|
99
99
|
*/
|
|
100
100
|
barcode?: string;
|
|
101
|
+
/**
|
|
102
|
+
* Barcode - GTIN 12
|
|
103
|
+
* @type {string}
|
|
104
|
+
* @memberof OrderItem
|
|
105
|
+
*/
|
|
106
|
+
barcode_gtin12?: string;
|
|
107
|
+
/**
|
|
108
|
+
* Barcode - GTIN 14
|
|
109
|
+
* @type {string}
|
|
110
|
+
* @memberof OrderItem
|
|
111
|
+
*/
|
|
112
|
+
barcode_gtin14?: string;
|
|
113
|
+
/**
|
|
114
|
+
* Barcode - UPC 11
|
|
115
|
+
* @type {string}
|
|
116
|
+
* @memberof OrderItem
|
|
117
|
+
*/
|
|
118
|
+
barcode_upc11?: string;
|
|
119
|
+
/**
|
|
120
|
+
* Barcode - UPC 12
|
|
121
|
+
* @type {string}
|
|
122
|
+
* @memberof OrderItem
|
|
123
|
+
*/
|
|
124
|
+
barcode_upc12?: string;
|
|
101
125
|
/**
|
|
102
126
|
* Channel partner item id if this order came through a channel partner and the channel partner item id was mapped to an internal item id
|
|
103
127
|
* @type {string}
|
|
@@ -459,6 +483,10 @@ export function OrderItemFromJSONTyped(json: any, ignoreDiscriminator: boolean):
|
|
|
459
483
|
'auto_order_last_rebill_dts': !exists(json, 'auto_order_last_rebill_dts') ? undefined : json['auto_order_last_rebill_dts'],
|
|
460
484
|
'auto_order_schedule': !exists(json, 'auto_order_schedule') ? undefined : json['auto_order_schedule'],
|
|
461
485
|
'barcode': !exists(json, 'barcode') ? undefined : json['barcode'],
|
|
486
|
+
'barcode_gtin12': !exists(json, 'barcode_gtin12') ? undefined : json['barcode_gtin12'],
|
|
487
|
+
'barcode_gtin14': !exists(json, 'barcode_gtin14') ? undefined : json['barcode_gtin14'],
|
|
488
|
+
'barcode_upc11': !exists(json, 'barcode_upc11') ? undefined : json['barcode_upc11'],
|
|
489
|
+
'barcode_upc12': !exists(json, 'barcode_upc12') ? undefined : json['barcode_upc12'],
|
|
462
490
|
'channel_partner_item_id': !exists(json, 'channel_partner_item_id') ? undefined : json['channel_partner_item_id'],
|
|
463
491
|
'cogs': !exists(json, 'cogs') ? undefined : json['cogs'],
|
|
464
492
|
'component_unit_value': !exists(json, 'component_unit_value') ? undefined : json['component_unit_value'],
|
|
@@ -532,6 +560,10 @@ export function OrderItemToJSON(value?: OrderItem | null): any {
|
|
|
532
560
|
'auto_order_last_rebill_dts': value.auto_order_last_rebill_dts,
|
|
533
561
|
'auto_order_schedule': value.auto_order_schedule,
|
|
534
562
|
'barcode': value.barcode,
|
|
563
|
+
'barcode_gtin12': value.barcode_gtin12,
|
|
564
|
+
'barcode_gtin14': value.barcode_gtin14,
|
|
565
|
+
'barcode_upc11': value.barcode_upc11,
|
|
566
|
+
'barcode_upc12': value.barcode_upc12,
|
|
535
567
|
'channel_partner_item_id': value.channel_partner_item_id,
|
|
536
568
|
'cogs': value.cogs,
|
|
537
569
|
'component_unit_value': value.component_unit_value,
|