ultracart_rest_api_v2_typescript 4.0.72-RC → 4.0.73-RC

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,4 +1,4 @@
1
- ## ultracart_rest_api_v2_typescript@4.0.72-RC
1
+ ## ultracart_rest_api_v2_typescript@4.0.73-RC
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.72-RC --save
39
+ npm install ultracart_rest_api_v2_typescript@4.0.73-RC --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
@@ -54,6 +54,7 @@ Not every change is committed to every SDK.
54
54
 
55
55
  | Version | Date | Comments |
56
56
  | --: | :-: | --- |
57
+ | 4.0.73-RC | 10/07/2022 | bug fix for digital items response |
57
58
  | 4.0.72-RC | 10/05/2022 | storefront rest file cdn icon urls |
58
59
  | 4.0.71-RC | 10/04/2022 | bug fix for new storefront file mgr |
59
60
  | 4.0.70-RC | 09/29/2022 | page_paths search category for search2 method |
@@ -199,6 +199,12 @@ export interface Customer {
199
199
  * @memberof Customer
200
200
  */
201
201
  maximum_item_count?: number;
202
+ /**
203
+ * Merchant ID
204
+ * @type {string}
205
+ * @memberof Customer
206
+ */
207
+ merchant_id?: string;
202
208
  /**
203
209
  * Minimum item count
204
210
  * @type {number}
@@ -68,6 +68,7 @@ function CustomerFromJSONTyped(json, ignoreDiscriminator) {
68
68
  'last_modified_dts': !(0, runtime_1.exists)(json, 'last_modified_dts') ? undefined : json['last_modified_dts'],
69
69
  'loyalty': !(0, runtime_1.exists)(json, 'loyalty') ? undefined : (0, CustomerLoyalty_1.CustomerLoyaltyFromJSON)(json['loyalty']),
70
70
  'maximum_item_count': !(0, runtime_1.exists)(json, 'maximum_item_count') ? undefined : json['maximum_item_count'],
71
+ 'merchant_id': !(0, runtime_1.exists)(json, 'merchant_id') ? undefined : json['merchant_id'],
71
72
  'minimum_item_count': !(0, runtime_1.exists)(json, 'minimum_item_count') ? undefined : json['minimum_item_count'],
72
73
  'minimum_subtotal': !(0, runtime_1.exists)(json, 'minimum_subtotal') ? undefined : json['minimum_subtotal'],
73
74
  'no_coupons': !(0, runtime_1.exists)(json, 'no_coupons') ? undefined : json['no_coupons'],
@@ -138,6 +139,7 @@ function CustomerToJSON(value) {
138
139
  'last_modified_dts': value.last_modified_dts,
139
140
  'loyalty': (0, CustomerLoyalty_1.CustomerLoyaltyToJSON)(value.loyalty),
140
141
  'maximum_item_count': value.maximum_item_count,
142
+ 'merchant_id': value.merchant_id,
141
143
  'minimum_item_count': value.minimum_item_count,
142
144
  'minimum_subtotal': value.minimum_subtotal,
143
145
  'no_coupons': value.no_coupons,
@@ -24,7 +24,7 @@ export interface ItemDigitalItemsResponse {
24
24
  * @type {Array<ItemDigitalItem>}
25
25
  * @memberof ItemDigitalItemsResponse
26
26
  */
27
- digitalItems?: Array<ItemDigitalItem>;
27
+ digital_items?: Array<ItemDigitalItem>;
28
28
  /**
29
29
  *
30
30
  * @type {ModelError}
@@ -28,7 +28,7 @@ function ItemDigitalItemsResponseFromJSONTyped(json, ignoreDiscriminator) {
28
28
  return json;
29
29
  }
30
30
  return {
31
- 'digitalItems': !(0, runtime_1.exists)(json, 'digitalItems') ? undefined : (json['digitalItems'].map(ItemDigitalItem_1.ItemDigitalItemFromJSON)),
31
+ 'digital_items': !(0, runtime_1.exists)(json, 'digital_items') ? undefined : (json['digital_items'].map(ItemDigitalItem_1.ItemDigitalItemFromJSON)),
32
32
  'error': !(0, runtime_1.exists)(json, 'error') ? undefined : (0, ModelError_1.ModelErrorFromJSON)(json['error']),
33
33
  'metadata': !(0, runtime_1.exists)(json, 'metadata') ? undefined : (0, ResponseMetadata_1.ResponseMetadataFromJSON)(json['metadata']),
34
34
  'success': !(0, runtime_1.exists)(json, 'success') ? undefined : json['success'],
@@ -44,7 +44,7 @@ function ItemDigitalItemsResponseToJSON(value) {
44
44
  return null;
45
45
  }
46
46
  return {
47
- 'digitalItems': value.digitalItems === undefined ? undefined : (value.digitalItems.map(ItemDigitalItem_1.ItemDigitalItemToJSON)),
47
+ 'digital_items': value.digital_items === undefined ? undefined : (value.digital_items.map(ItemDigitalItem_1.ItemDigitalItemToJSON)),
48
48
  'error': (0, ModelError_1.ModelErrorToJSON)(value.error),
49
49
  'metadata': (0, ResponseMetadata_1.ResponseMetadataToJSON)(value.metadata),
50
50
  'success': value.success,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ultracart_rest_api_v2_typescript",
3
- "version": "4.0.72-RC",
3
+ "version": "4.0.73-RC",
4
4
  "description": "UltraCart Rest TypeScript SDK",
5
5
  "author": "UltraCart",
6
6
  "repository": {
@@ -284,6 +284,12 @@ export interface Customer {
284
284
  * @memberof Customer
285
285
  */
286
286
  maximum_item_count?: number;
287
+ /**
288
+ * Merchant ID
289
+ * @type {string}
290
+ * @memberof Customer
291
+ */
292
+ merchant_id?: string;
287
293
  /**
288
294
  * Minimum item count
289
295
  * @type {number}
@@ -510,6 +516,7 @@ export function CustomerFromJSONTyped(json: any, ignoreDiscriminator: boolean):
510
516
  'last_modified_dts': !exists(json, 'last_modified_dts') ? undefined : json['last_modified_dts'],
511
517
  'loyalty': !exists(json, 'loyalty') ? undefined : CustomerLoyaltyFromJSON(json['loyalty']),
512
518
  'maximum_item_count': !exists(json, 'maximum_item_count') ? undefined : json['maximum_item_count'],
519
+ 'merchant_id': !exists(json, 'merchant_id') ? undefined : json['merchant_id'],
513
520
  'minimum_item_count': !exists(json, 'minimum_item_count') ? undefined : json['minimum_item_count'],
514
521
  'minimum_subtotal': !exists(json, 'minimum_subtotal') ? undefined : json['minimum_subtotal'],
515
522
  'no_coupons': !exists(json, 'no_coupons') ? undefined : json['no_coupons'],
@@ -581,6 +588,7 @@ export function CustomerToJSON(value?: Customer | null): any {
581
588
  'last_modified_dts': value.last_modified_dts,
582
589
  'loyalty': CustomerLoyaltyToJSON(value.loyalty),
583
590
  'maximum_item_count': value.maximum_item_count,
591
+ 'merchant_id': value.merchant_id,
584
592
  'minimum_item_count': value.minimum_item_count,
585
593
  'minimum_subtotal': value.minimum_subtotal,
586
594
  'no_coupons': value.no_coupons,
@@ -49,7 +49,7 @@ export interface ItemDigitalItemsResponse {
49
49
  * @type {Array<ItemDigitalItem>}
50
50
  * @memberof ItemDigitalItemsResponse
51
51
  */
52
- digitalItems?: Array<ItemDigitalItem>;
52
+ digital_items?: Array<ItemDigitalItem>;
53
53
  /**
54
54
  *
55
55
  * @type {ModelError}
@@ -86,7 +86,7 @@ export function ItemDigitalItemsResponseFromJSONTyped(json: any, ignoreDiscrimin
86
86
  }
87
87
  return {
88
88
 
89
- 'digitalItems': !exists(json, 'digitalItems') ? undefined : ((json['digitalItems'] as Array<any>).map(ItemDigitalItemFromJSON)),
89
+ 'digital_items': !exists(json, 'digital_items') ? undefined : ((json['digital_items'] as Array<any>).map(ItemDigitalItemFromJSON)),
90
90
  'error': !exists(json, 'error') ? undefined : ModelErrorFromJSON(json['error']),
91
91
  'metadata': !exists(json, 'metadata') ? undefined : ResponseMetadataFromJSON(json['metadata']),
92
92
  'success': !exists(json, 'success') ? undefined : json['success'],
@@ -103,7 +103,7 @@ export function ItemDigitalItemsResponseToJSON(value?: ItemDigitalItemsResponse
103
103
  }
104
104
  return {
105
105
 
106
- 'digitalItems': value.digitalItems === undefined ? undefined : ((value.digitalItems as Array<any>).map(ItemDigitalItemToJSON)),
106
+ 'digital_items': value.digital_items === undefined ? undefined : ((value.digital_items as Array<any>).map(ItemDigitalItemToJSON)),
107
107
  'error': ModelErrorToJSON(value.error),
108
108
  'metadata': ResponseMetadataToJSON(value.metadata),
109
109
  'success': value.success,