ultracart_rest_api_v2_typescript 4.0.225 → 4.0.227
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/.openapi-generator/FILES +3 -0
- package/README.md +4 -2
- package/dist/apis/ItemApi.d.ts +24 -1
- package/dist/apis/ItemApi.js +56 -0
- package/dist/models/ConversationPbxPhoneNumber.d.ts +1 -1
- package/dist/models/ConversationPbxPhoneNumber.js +2 -2
- package/dist/models/ItemAutoOrderStep.d.ts +2 -2
- package/dist/models/ItemInventorySnapshot.d.ts +58 -0
- package/dist/models/ItemInventorySnapshot.js +53 -0
- package/dist/models/ItemInventorySnapshotDistributionCenter.d.ts +51 -0
- package/dist/models/ItemInventorySnapshotDistributionCenter.js +50 -0
- package/dist/models/ItemInventorySnapshotResponse.d.ts +55 -0
- package/dist/models/ItemInventorySnapshotResponse.js +54 -0
- package/dist/models/index.d.ts +3 -0
- package/dist/models/index.js +3 -0
- package/package.json +1 -1
- package/src/apis/ItemApi.ts +55 -0
- package/src/models/ConversationPbxPhoneNumber.ts +3 -3
- package/src/models/ItemAutoOrderStep.ts +2 -2
- package/src/models/ItemInventorySnapshot.ts +103 -0
- package/src/models/ItemInventorySnapshotDistributionCenter.ts +88 -0
- package/src/models/ItemInventorySnapshotResponse.ts +113 -0
- package/src/models/index.ts +3 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -561,6 +561,9 @@ src/models/ItemIdentifiers.ts
|
|
|
561
561
|
src/models/ItemInstantPaymentNotification.ts
|
|
562
562
|
src/models/ItemInstantPaymentNotifications.ts
|
|
563
563
|
src/models/ItemInternal.ts
|
|
564
|
+
src/models/ItemInventorySnapshot.ts
|
|
565
|
+
src/models/ItemInventorySnapshotDistributionCenter.ts
|
|
566
|
+
src/models/ItemInventorySnapshotResponse.ts
|
|
564
567
|
src/models/ItemKitComponent.ts
|
|
565
568
|
src/models/ItemKitDefinition.ts
|
|
566
569
|
src/models/ItemOption.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## ultracart_rest_api_v2_typescript@4.0.
|
|
1
|
+
## ultracart_rest_api_v2_typescript@4.0.227
|
|
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.227 --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.227 | 06/03/2024 | conversationPbxPhoneNumber - fix serialized name for phone number UUID |
|
|
58
|
+
| 4.0.226 | 05/31/2024 | ItemApi.getInventorySnapshot method |
|
|
57
59
|
| 4.0.225 | 05/30/2024 | add adult sig req. to the merchant item destination markup for items |
|
|
58
60
|
| 4.0.224 | 05/29/2024 | added methods getEmailCommseqRateLimiters, resetEmailCommseqRateLimiters |
|
|
59
61
|
| 4.0.223 | 05/28/2024 | added property to OrderQuery object to allow querying from cache |
|
package/dist/apis/ItemApi.d.ts
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import { Item, ItemContentAttribute, ItemDigitalItem, ItemDigitalItemResponse, ItemDigitalItemsResponse, ItemResponse, ItemReview, ItemReviewResponse, ItemReviewsResponse, ItemsRequest, ItemsResponse, PricingTiersResponse, TempMultimediaResponse } from '../models';
|
|
13
|
+
import { Item, ItemContentAttribute, ItemDigitalItem, ItemDigitalItemResponse, ItemDigitalItemsResponse, ItemInventorySnapshotResponse, ItemResponse, ItemReview, ItemReviewResponse, ItemReviewsResponse, ItemsRequest, ItemsResponse, PricingTiersResponse, TempMultimediaResponse } from '../models';
|
|
14
14
|
export interface DeleteDigitalItemRequest {
|
|
15
15
|
digitalItemOid: number;
|
|
16
16
|
}
|
|
@@ -385,6 +385,19 @@ export interface ItemApiInterface {
|
|
|
385
385
|
* Upsert an item content attribute
|
|
386
386
|
*/
|
|
387
387
|
insertUpdateItemContentAttribute(requestParameters: InsertUpdateItemContentAttributeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
388
|
+
/**
|
|
389
|
+
* Retrieve a list of item inventories. This method may be called once every 15 minutes. More than that will result in a 429 response.
|
|
390
|
+
* @summary Retrieve a list of item inventories. This method may be called once every 15 minutes. More than that will result in a 429 response.
|
|
391
|
+
* @param {*} [options] Override http request option.
|
|
392
|
+
* @throws {RequiredError}
|
|
393
|
+
* @memberof ItemApiInterface
|
|
394
|
+
*/
|
|
395
|
+
restItemInventorySnapshotResponseRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ItemInventorySnapshotResponse>>;
|
|
396
|
+
/**
|
|
397
|
+
* Retrieve a list of item inventories. This method may be called once every 15 minutes. More than that will result in a 429 response.
|
|
398
|
+
* Retrieve a list of item inventories. This method may be called once every 15 minutes. More than that will result in a 429 response.
|
|
399
|
+
*/
|
|
400
|
+
restItemInventorySnapshotResponse(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ItemInventorySnapshotResponse>;
|
|
388
401
|
/**
|
|
389
402
|
* Updates a file within the digital library. This does not update an item, but updates a digital file available and selectable as part (or all) of an item.
|
|
390
403
|
* @summary Updates a file within the digital library
|
|
@@ -639,6 +652,16 @@ export declare class ItemApi extends runtime.BaseAPI implements ItemApiInterface
|
|
|
639
652
|
* Upsert an item content attribute
|
|
640
653
|
*/
|
|
641
654
|
insertUpdateItemContentAttribute(requestParameters: InsertUpdateItemContentAttributeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
655
|
+
/**
|
|
656
|
+
* Retrieve a list of item inventories. This method may be called once every 15 minutes. More than that will result in a 429 response.
|
|
657
|
+
* Retrieve a list of item inventories. This method may be called once every 15 minutes. More than that will result in a 429 response.
|
|
658
|
+
*/
|
|
659
|
+
restItemInventorySnapshotResponseRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ItemInventorySnapshotResponse>>;
|
|
660
|
+
/**
|
|
661
|
+
* Retrieve a list of item inventories. This method may be called once every 15 minutes. More than that will result in a 429 response.
|
|
662
|
+
* Retrieve a list of item inventories. This method may be called once every 15 minutes. More than that will result in a 429 response.
|
|
663
|
+
*/
|
|
664
|
+
restItemInventorySnapshotResponse(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ItemInventorySnapshotResponse>;
|
|
642
665
|
/**
|
|
643
666
|
* Updates a file within the digital library. This does not update an item, but updates a digital file available and selectable as part (or all) of an item.
|
|
644
667
|
* Updates a file within the digital library
|
package/dist/apis/ItemApi.js
CHANGED
|
@@ -1163,6 +1163,62 @@ var ItemApi = /** @class */ (function (_super) {
|
|
|
1163
1163
|
});
|
|
1164
1164
|
});
|
|
1165
1165
|
};
|
|
1166
|
+
/**
|
|
1167
|
+
* Retrieve a list of item inventories. This method may be called once every 15 minutes. More than that will result in a 429 response.
|
|
1168
|
+
* Retrieve a list of item inventories. This method may be called once every 15 minutes. More than that will result in a 429 response.
|
|
1169
|
+
*/
|
|
1170
|
+
ItemApi.prototype.restItemInventorySnapshotResponseRaw = function (initOverrides) {
|
|
1171
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1172
|
+
var queryParameters, headerParameters, _a, _b, response;
|
|
1173
|
+
return __generator(this, function (_c) {
|
|
1174
|
+
switch (_c.label) {
|
|
1175
|
+
case 0:
|
|
1176
|
+
queryParameters = {};
|
|
1177
|
+
headerParameters = {};
|
|
1178
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
1179
|
+
// oauth required
|
|
1180
|
+
_a = headerParameters;
|
|
1181
|
+
_b = "Authorization";
|
|
1182
|
+
return [4 /*yield*/, this.configuration.accessToken("ultraCartOauth", ["item_read"])];
|
|
1183
|
+
case 1:
|
|
1184
|
+
// oauth required
|
|
1185
|
+
_a[_b] = _c.sent();
|
|
1186
|
+
_c.label = 2;
|
|
1187
|
+
case 2:
|
|
1188
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1189
|
+
headerParameters["x-ultracart-simple-key"] = this.configuration.apiKey("x-ultracart-simple-key"); // ultraCartSimpleApiKey authentication
|
|
1190
|
+
}
|
|
1191
|
+
return [4 /*yield*/, this.request({
|
|
1192
|
+
path: "/item/items/inventory_snapshot",
|
|
1193
|
+
method: 'GET',
|
|
1194
|
+
headers: headerParameters,
|
|
1195
|
+
query: queryParameters,
|
|
1196
|
+
}, initOverrides)];
|
|
1197
|
+
case 3:
|
|
1198
|
+
response = _c.sent();
|
|
1199
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, models_1.ItemInventorySnapshotResponseFromJSON)(jsonValue); })];
|
|
1200
|
+
}
|
|
1201
|
+
});
|
|
1202
|
+
});
|
|
1203
|
+
};
|
|
1204
|
+
/**
|
|
1205
|
+
* Retrieve a list of item inventories. This method may be called once every 15 minutes. More than that will result in a 429 response.
|
|
1206
|
+
* Retrieve a list of item inventories. This method may be called once every 15 minutes. More than that will result in a 429 response.
|
|
1207
|
+
*/
|
|
1208
|
+
ItemApi.prototype.restItemInventorySnapshotResponse = function (initOverrides) {
|
|
1209
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1210
|
+
var response;
|
|
1211
|
+
return __generator(this, function (_a) {
|
|
1212
|
+
switch (_a.label) {
|
|
1213
|
+
case 0: return [4 /*yield*/, this.restItemInventorySnapshotResponseRaw(initOverrides)];
|
|
1214
|
+
case 1:
|
|
1215
|
+
response = _a.sent();
|
|
1216
|
+
return [4 /*yield*/, response.value()];
|
|
1217
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
1218
|
+
}
|
|
1219
|
+
});
|
|
1220
|
+
});
|
|
1221
|
+
};
|
|
1166
1222
|
/**
|
|
1167
1223
|
* Updates a file within the digital library. This does not update an item, but updates a digital file available and selectable as part (or all) of an item.
|
|
1168
1224
|
* Updates a file within the digital library
|
|
@@ -36,7 +36,7 @@ function ConversationPbxPhoneNumberFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
36
36
|
return {
|
|
37
37
|
'action': !(0, runtime_1.exists)(json, 'action') ? undefined : json['action'],
|
|
38
38
|
'action_target': !(0, runtime_1.exists)(json, 'action_target') ? undefined : json['action_target'],
|
|
39
|
-
'
|
|
39
|
+
'conversation_pbx_phone_number_uuid': !(0, runtime_1.exists)(json, 'conversation_pbx_phone_number_uuid') ? undefined : json['conversation_pbx_phone_number_uuid'],
|
|
40
40
|
'merchant_id': !(0, runtime_1.exists)(json, 'merchant_id') ? undefined : json['merchant_id'],
|
|
41
41
|
'phone_number': !(0, runtime_1.exists)(json, 'phone_number') ? undefined : json['phone_number'],
|
|
42
42
|
};
|
|
@@ -52,7 +52,7 @@ function ConversationPbxPhoneNumberToJSON(value) {
|
|
|
52
52
|
return {
|
|
53
53
|
'action': value.action,
|
|
54
54
|
'action_target': value.action_target,
|
|
55
|
-
'
|
|
55
|
+
'conversation_pbx_phone_number_uuid': value.conversation_pbx_phone_number_uuid,
|
|
56
56
|
'merchant_id': value.merchant_id,
|
|
57
57
|
'phone_number': value.phone_number,
|
|
58
58
|
};
|
|
@@ -102,13 +102,13 @@ export interface ItemAutoOrderStep {
|
|
|
102
102
|
*/
|
|
103
103
|
schedule?: string;
|
|
104
104
|
/**
|
|
105
|
-
* Email list name to subscribe the customer to when the rebill occurs
|
|
105
|
+
* Email list name to subscribe the customer to when the rebill occurs (decommissioned email engine)
|
|
106
106
|
* @type {string}
|
|
107
107
|
* @memberof ItemAutoOrderStep
|
|
108
108
|
*/
|
|
109
109
|
subscribe_email_list_name?: string;
|
|
110
110
|
/**
|
|
111
|
-
* Email list identifier to subscribe the customer to when this rebill occurs
|
|
111
|
+
* Email list identifier to subscribe the customer to when this rebill occurs (decommissioned email engine)
|
|
112
112
|
* @type {number}
|
|
113
113
|
* @memberof ItemAutoOrderStep
|
|
114
114
|
*/
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* UltraCart Rest API V2
|
|
3
|
+
* UltraCart REST API Version 2
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2.0.0
|
|
6
|
+
* Contact: support@ultracart.com
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import { ItemInventorySnapshotDistributionCenter } from './ItemInventorySnapshotDistributionCenter';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ItemInventorySnapshot
|
|
17
|
+
*/
|
|
18
|
+
export interface ItemInventorySnapshot {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {number}
|
|
22
|
+
* @memberof ItemInventorySnapshot
|
|
23
|
+
*/
|
|
24
|
+
allocated_to_placed_orders?: number;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {number}
|
|
28
|
+
* @memberof ItemInventorySnapshot
|
|
29
|
+
*/
|
|
30
|
+
allocated_to_shopping_carts?: number;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {number}
|
|
34
|
+
* @memberof ItemInventorySnapshot
|
|
35
|
+
*/
|
|
36
|
+
available_to_allocate?: number;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {Array<ItemInventorySnapshotDistributionCenter>}
|
|
40
|
+
* @memberof ItemInventorySnapshot
|
|
41
|
+
*/
|
|
42
|
+
distribution_centers?: Array<ItemInventorySnapshotDistributionCenter>;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof ItemInventorySnapshot
|
|
47
|
+
*/
|
|
48
|
+
merchant_item_id?: string;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {number}
|
|
52
|
+
* @memberof ItemInventorySnapshot
|
|
53
|
+
*/
|
|
54
|
+
quantity?: number;
|
|
55
|
+
}
|
|
56
|
+
export declare function ItemInventorySnapshotFromJSON(json: any): ItemInventorySnapshot;
|
|
57
|
+
export declare function ItemInventorySnapshotFromJSONTyped(json: any, ignoreDiscriminator: boolean): ItemInventorySnapshot;
|
|
58
|
+
export declare function ItemInventorySnapshotToJSON(value?: ItemInventorySnapshot | null): any;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* UltraCart Rest API V2
|
|
6
|
+
* UltraCart REST API Version 2
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 2.0.0
|
|
9
|
+
* Contact: support@ultracart.com
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.ItemInventorySnapshotToJSON = exports.ItemInventorySnapshotFromJSONTyped = exports.ItemInventorySnapshotFromJSON = void 0;
|
|
17
|
+
var runtime_1 = require("../runtime");
|
|
18
|
+
var ItemInventorySnapshotDistributionCenter_1 = require("./ItemInventorySnapshotDistributionCenter");
|
|
19
|
+
function ItemInventorySnapshotFromJSON(json) {
|
|
20
|
+
return ItemInventorySnapshotFromJSONTyped(json, false);
|
|
21
|
+
}
|
|
22
|
+
exports.ItemInventorySnapshotFromJSON = ItemInventorySnapshotFromJSON;
|
|
23
|
+
function ItemInventorySnapshotFromJSONTyped(json, ignoreDiscriminator) {
|
|
24
|
+
if ((json === undefined) || (json === null)) {
|
|
25
|
+
return json;
|
|
26
|
+
}
|
|
27
|
+
return {
|
|
28
|
+
'allocated_to_placed_orders': !(0, runtime_1.exists)(json, 'allocated_to_placed_orders') ? undefined : json['allocated_to_placed_orders'],
|
|
29
|
+
'allocated_to_shopping_carts': !(0, runtime_1.exists)(json, 'allocated_to_shopping_carts') ? undefined : json['allocated_to_shopping_carts'],
|
|
30
|
+
'available_to_allocate': !(0, runtime_1.exists)(json, 'available_to_allocate') ? undefined : json['available_to_allocate'],
|
|
31
|
+
'distribution_centers': !(0, runtime_1.exists)(json, 'distribution_centers') ? undefined : (json['distribution_centers'].map(ItemInventorySnapshotDistributionCenter_1.ItemInventorySnapshotDistributionCenterFromJSON)),
|
|
32
|
+
'merchant_item_id': !(0, runtime_1.exists)(json, 'merchant_item_id') ? undefined : json['merchant_item_id'],
|
|
33
|
+
'quantity': !(0, runtime_1.exists)(json, 'quantity') ? undefined : json['quantity'],
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
exports.ItemInventorySnapshotFromJSONTyped = ItemInventorySnapshotFromJSONTyped;
|
|
37
|
+
function ItemInventorySnapshotToJSON(value) {
|
|
38
|
+
if (value === undefined) {
|
|
39
|
+
return undefined;
|
|
40
|
+
}
|
|
41
|
+
if (value === null) {
|
|
42
|
+
return null;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'allocated_to_placed_orders': value.allocated_to_placed_orders,
|
|
46
|
+
'allocated_to_shopping_carts': value.allocated_to_shopping_carts,
|
|
47
|
+
'available_to_allocate': value.available_to_allocate,
|
|
48
|
+
'distribution_centers': value.distribution_centers === undefined ? undefined : (value.distribution_centers.map(ItemInventorySnapshotDistributionCenter_1.ItemInventorySnapshotDistributionCenterToJSON)),
|
|
49
|
+
'merchant_item_id': value.merchant_item_id,
|
|
50
|
+
'quantity': value.quantity,
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
exports.ItemInventorySnapshotToJSON = ItemInventorySnapshotToJSON;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* UltraCart Rest API V2
|
|
3
|
+
* UltraCart REST API Version 2
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2.0.0
|
|
6
|
+
* Contact: support@ultracart.com
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface ItemInventorySnapshotDistributionCenter
|
|
16
|
+
*/
|
|
17
|
+
export interface ItemInventorySnapshotDistributionCenter {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof ItemInventorySnapshotDistributionCenter
|
|
22
|
+
*/
|
|
23
|
+
allocated_to_placed_orders?: number;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof ItemInventorySnapshotDistributionCenter
|
|
28
|
+
*/
|
|
29
|
+
allocated_to_shopping_carts?: number;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof ItemInventorySnapshotDistributionCenter
|
|
34
|
+
*/
|
|
35
|
+
available_to_allocate?: number;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof ItemInventorySnapshotDistributionCenter
|
|
40
|
+
*/
|
|
41
|
+
code?: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {number}
|
|
45
|
+
* @memberof ItemInventorySnapshotDistributionCenter
|
|
46
|
+
*/
|
|
47
|
+
quantity?: number;
|
|
48
|
+
}
|
|
49
|
+
export declare function ItemInventorySnapshotDistributionCenterFromJSON(json: any): ItemInventorySnapshotDistributionCenter;
|
|
50
|
+
export declare function ItemInventorySnapshotDistributionCenterFromJSONTyped(json: any, ignoreDiscriminator: boolean): ItemInventorySnapshotDistributionCenter;
|
|
51
|
+
export declare function ItemInventorySnapshotDistributionCenterToJSON(value?: ItemInventorySnapshotDistributionCenter | null): any;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* UltraCart Rest API V2
|
|
6
|
+
* UltraCart REST API Version 2
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 2.0.0
|
|
9
|
+
* Contact: support@ultracart.com
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.ItemInventorySnapshotDistributionCenterToJSON = exports.ItemInventorySnapshotDistributionCenterFromJSONTyped = exports.ItemInventorySnapshotDistributionCenterFromJSON = void 0;
|
|
17
|
+
var runtime_1 = require("../runtime");
|
|
18
|
+
function ItemInventorySnapshotDistributionCenterFromJSON(json) {
|
|
19
|
+
return ItemInventorySnapshotDistributionCenterFromJSONTyped(json, false);
|
|
20
|
+
}
|
|
21
|
+
exports.ItemInventorySnapshotDistributionCenterFromJSON = ItemInventorySnapshotDistributionCenterFromJSON;
|
|
22
|
+
function ItemInventorySnapshotDistributionCenterFromJSONTyped(json, ignoreDiscriminator) {
|
|
23
|
+
if ((json === undefined) || (json === null)) {
|
|
24
|
+
return json;
|
|
25
|
+
}
|
|
26
|
+
return {
|
|
27
|
+
'allocated_to_placed_orders': !(0, runtime_1.exists)(json, 'allocated_to_placed_orders') ? undefined : json['allocated_to_placed_orders'],
|
|
28
|
+
'allocated_to_shopping_carts': !(0, runtime_1.exists)(json, 'allocated_to_shopping_carts') ? undefined : json['allocated_to_shopping_carts'],
|
|
29
|
+
'available_to_allocate': !(0, runtime_1.exists)(json, 'available_to_allocate') ? undefined : json['available_to_allocate'],
|
|
30
|
+
'code': !(0, runtime_1.exists)(json, 'code') ? undefined : json['code'],
|
|
31
|
+
'quantity': !(0, runtime_1.exists)(json, 'quantity') ? undefined : json['quantity'],
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
exports.ItemInventorySnapshotDistributionCenterFromJSONTyped = ItemInventorySnapshotDistributionCenterFromJSONTyped;
|
|
35
|
+
function ItemInventorySnapshotDistributionCenterToJSON(value) {
|
|
36
|
+
if (value === undefined) {
|
|
37
|
+
return undefined;
|
|
38
|
+
}
|
|
39
|
+
if (value === null) {
|
|
40
|
+
return null;
|
|
41
|
+
}
|
|
42
|
+
return {
|
|
43
|
+
'allocated_to_placed_orders': value.allocated_to_placed_orders,
|
|
44
|
+
'allocated_to_shopping_carts': value.allocated_to_shopping_carts,
|
|
45
|
+
'available_to_allocate': value.available_to_allocate,
|
|
46
|
+
'code': value.code,
|
|
47
|
+
'quantity': value.quantity,
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
exports.ItemInventorySnapshotDistributionCenterToJSON = ItemInventorySnapshotDistributionCenterToJSON;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* UltraCart Rest API V2
|
|
3
|
+
* UltraCart REST API Version 2
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2.0.0
|
|
6
|
+
* Contact: support@ultracart.com
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import { ItemInventorySnapshot } from './ItemInventorySnapshot';
|
|
13
|
+
import { ModelError } from './ModelError';
|
|
14
|
+
import { ResponseMetadata } from './ResponseMetadata';
|
|
15
|
+
import { Warning } from './Warning';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface ItemInventorySnapshotResponse
|
|
20
|
+
*/
|
|
21
|
+
export interface ItemInventorySnapshotResponse {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {ModelError}
|
|
25
|
+
* @memberof ItemInventorySnapshotResponse
|
|
26
|
+
*/
|
|
27
|
+
error?: ModelError;
|
|
28
|
+
/**
|
|
29
|
+
* inventories
|
|
30
|
+
* @type {Array<ItemInventorySnapshot>}
|
|
31
|
+
* @memberof ItemInventorySnapshotResponse
|
|
32
|
+
*/
|
|
33
|
+
inventories?: Array<ItemInventorySnapshot>;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {ResponseMetadata}
|
|
37
|
+
* @memberof ItemInventorySnapshotResponse
|
|
38
|
+
*/
|
|
39
|
+
metadata?: ResponseMetadata;
|
|
40
|
+
/**
|
|
41
|
+
* Indicates if API call was successful
|
|
42
|
+
* @type {boolean}
|
|
43
|
+
* @memberof ItemInventorySnapshotResponse
|
|
44
|
+
*/
|
|
45
|
+
success?: boolean;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {Warning}
|
|
49
|
+
* @memberof ItemInventorySnapshotResponse
|
|
50
|
+
*/
|
|
51
|
+
warning?: Warning;
|
|
52
|
+
}
|
|
53
|
+
export declare function ItemInventorySnapshotResponseFromJSON(json: any): ItemInventorySnapshotResponse;
|
|
54
|
+
export declare function ItemInventorySnapshotResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ItemInventorySnapshotResponse;
|
|
55
|
+
export declare function ItemInventorySnapshotResponseToJSON(value?: ItemInventorySnapshotResponse | null): any;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* UltraCart Rest API V2
|
|
6
|
+
* UltraCart REST API Version 2
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 2.0.0
|
|
9
|
+
* Contact: support@ultracart.com
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.ItemInventorySnapshotResponseToJSON = exports.ItemInventorySnapshotResponseFromJSONTyped = exports.ItemInventorySnapshotResponseFromJSON = void 0;
|
|
17
|
+
var runtime_1 = require("../runtime");
|
|
18
|
+
var ItemInventorySnapshot_1 = require("./ItemInventorySnapshot");
|
|
19
|
+
var ModelError_1 = require("./ModelError");
|
|
20
|
+
var ResponseMetadata_1 = require("./ResponseMetadata");
|
|
21
|
+
var Warning_1 = require("./Warning");
|
|
22
|
+
function ItemInventorySnapshotResponseFromJSON(json) {
|
|
23
|
+
return ItemInventorySnapshotResponseFromJSONTyped(json, false);
|
|
24
|
+
}
|
|
25
|
+
exports.ItemInventorySnapshotResponseFromJSON = ItemInventorySnapshotResponseFromJSON;
|
|
26
|
+
function ItemInventorySnapshotResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
27
|
+
if ((json === undefined) || (json === null)) {
|
|
28
|
+
return json;
|
|
29
|
+
}
|
|
30
|
+
return {
|
|
31
|
+
'error': !(0, runtime_1.exists)(json, 'error') ? undefined : (0, ModelError_1.ModelErrorFromJSON)(json['error']),
|
|
32
|
+
'inventories': !(0, runtime_1.exists)(json, 'inventories') ? undefined : (json['inventories'].map(ItemInventorySnapshot_1.ItemInventorySnapshotFromJSON)),
|
|
33
|
+
'metadata': !(0, runtime_1.exists)(json, 'metadata') ? undefined : (0, ResponseMetadata_1.ResponseMetadataFromJSON)(json['metadata']),
|
|
34
|
+
'success': !(0, runtime_1.exists)(json, 'success') ? undefined : json['success'],
|
|
35
|
+
'warning': !(0, runtime_1.exists)(json, 'warning') ? undefined : (0, Warning_1.WarningFromJSON)(json['warning']),
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
exports.ItemInventorySnapshotResponseFromJSONTyped = ItemInventorySnapshotResponseFromJSONTyped;
|
|
39
|
+
function ItemInventorySnapshotResponseToJSON(value) {
|
|
40
|
+
if (value === undefined) {
|
|
41
|
+
return undefined;
|
|
42
|
+
}
|
|
43
|
+
if (value === null) {
|
|
44
|
+
return null;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'error': (0, ModelError_1.ModelErrorToJSON)(value.error),
|
|
48
|
+
'inventories': value.inventories === undefined ? undefined : (value.inventories.map(ItemInventorySnapshot_1.ItemInventorySnapshotToJSON)),
|
|
49
|
+
'metadata': (0, ResponseMetadata_1.ResponseMetadataToJSON)(value.metadata),
|
|
50
|
+
'success': value.success,
|
|
51
|
+
'warning': (0, Warning_1.WarningToJSON)(value.warning),
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
exports.ItemInventorySnapshotResponseToJSON = ItemInventorySnapshotResponseToJSON;
|
package/dist/models/index.d.ts
CHANGED
|
@@ -534,6 +534,9 @@ export * from './ItemIdentifiers';
|
|
|
534
534
|
export * from './ItemInstantPaymentNotification';
|
|
535
535
|
export * from './ItemInstantPaymentNotifications';
|
|
536
536
|
export * from './ItemInternal';
|
|
537
|
+
export * from './ItemInventorySnapshot';
|
|
538
|
+
export * from './ItemInventorySnapshotDistributionCenter';
|
|
539
|
+
export * from './ItemInventorySnapshotResponse';
|
|
537
540
|
export * from './ItemKitComponent';
|
|
538
541
|
export * from './ItemKitDefinition';
|
|
539
542
|
export * from './ItemOption';
|
package/dist/models/index.js
CHANGED
|
@@ -552,6 +552,9 @@ __exportStar(require("./ItemIdentifiers"), exports);
|
|
|
552
552
|
__exportStar(require("./ItemInstantPaymentNotification"), exports);
|
|
553
553
|
__exportStar(require("./ItemInstantPaymentNotifications"), exports);
|
|
554
554
|
__exportStar(require("./ItemInternal"), exports);
|
|
555
|
+
__exportStar(require("./ItemInventorySnapshot"), exports);
|
|
556
|
+
__exportStar(require("./ItemInventorySnapshotDistributionCenter"), exports);
|
|
557
|
+
__exportStar(require("./ItemInventorySnapshotResponse"), exports);
|
|
555
558
|
__exportStar(require("./ItemKitComponent"), exports);
|
|
556
559
|
__exportStar(require("./ItemKitDefinition"), exports);
|
|
557
560
|
__exportStar(require("./ItemOption"), exports);
|
package/package.json
CHANGED
package/src/apis/ItemApi.ts
CHANGED
|
@@ -33,6 +33,9 @@ import {
|
|
|
33
33
|
ItemDigitalItemsResponse,
|
|
34
34
|
ItemDigitalItemsResponseFromJSON,
|
|
35
35
|
ItemDigitalItemsResponseToJSON,
|
|
36
|
+
ItemInventorySnapshotResponse,
|
|
37
|
+
ItemInventorySnapshotResponseFromJSON,
|
|
38
|
+
ItemInventorySnapshotResponseToJSON,
|
|
36
39
|
ItemResponse,
|
|
37
40
|
ItemResponseFromJSON,
|
|
38
41
|
ItemResponseToJSON,
|
|
@@ -489,6 +492,21 @@ export interface ItemApiInterface {
|
|
|
489
492
|
*/
|
|
490
493
|
insertUpdateItemContentAttribute(requestParameters: InsertUpdateItemContentAttributeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
491
494
|
|
|
495
|
+
/**
|
|
496
|
+
* Retrieve a list of item inventories. This method may be called once every 15 minutes. More than that will result in a 429 response.
|
|
497
|
+
* @summary Retrieve a list of item inventories. This method may be called once every 15 minutes. More than that will result in a 429 response.
|
|
498
|
+
* @param {*} [options] Override http request option.
|
|
499
|
+
* @throws {RequiredError}
|
|
500
|
+
* @memberof ItemApiInterface
|
|
501
|
+
*/
|
|
502
|
+
restItemInventorySnapshotResponseRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ItemInventorySnapshotResponse>>;
|
|
503
|
+
|
|
504
|
+
/**
|
|
505
|
+
* Retrieve a list of item inventories. This method may be called once every 15 minutes. More than that will result in a 429 response.
|
|
506
|
+
* Retrieve a list of item inventories. This method may be called once every 15 minutes. More than that will result in a 429 response.
|
|
507
|
+
*/
|
|
508
|
+
restItemInventorySnapshotResponse(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ItemInventorySnapshotResponse>;
|
|
509
|
+
|
|
492
510
|
/**
|
|
493
511
|
* Updates a file within the digital library. This does not update an item, but updates a digital file available and selectable as part (or all) of an item.
|
|
494
512
|
* @summary Updates a file within the digital library
|
|
@@ -1398,6 +1416,43 @@ export class ItemApi extends runtime.BaseAPI implements ItemApiInterface {
|
|
|
1398
1416
|
await this.insertUpdateItemContentAttributeRaw(requestParameters, initOverrides);
|
|
1399
1417
|
}
|
|
1400
1418
|
|
|
1419
|
+
/**
|
|
1420
|
+
* Retrieve a list of item inventories. This method may be called once every 15 minutes. More than that will result in a 429 response.
|
|
1421
|
+
* Retrieve a list of item inventories. This method may be called once every 15 minutes. More than that will result in a 429 response.
|
|
1422
|
+
*/
|
|
1423
|
+
async restItemInventorySnapshotResponseRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ItemInventorySnapshotResponse>> {
|
|
1424
|
+
const queryParameters: any = {};
|
|
1425
|
+
|
|
1426
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
1427
|
+
|
|
1428
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1429
|
+
// oauth required
|
|
1430
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("ultraCartOauth", ["item_read"]);
|
|
1431
|
+
}
|
|
1432
|
+
|
|
1433
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1434
|
+
headerParameters["x-ultracart-simple-key"] = this.configuration.apiKey("x-ultracart-simple-key"); // ultraCartSimpleApiKey authentication
|
|
1435
|
+
}
|
|
1436
|
+
|
|
1437
|
+
const response = await this.request({
|
|
1438
|
+
path: `/item/items/inventory_snapshot`,
|
|
1439
|
+
method: 'GET',
|
|
1440
|
+
headers: headerParameters,
|
|
1441
|
+
query: queryParameters,
|
|
1442
|
+
}, initOverrides);
|
|
1443
|
+
|
|
1444
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ItemInventorySnapshotResponseFromJSON(jsonValue));
|
|
1445
|
+
}
|
|
1446
|
+
|
|
1447
|
+
/**
|
|
1448
|
+
* Retrieve a list of item inventories. This method may be called once every 15 minutes. More than that will result in a 429 response.
|
|
1449
|
+
* Retrieve a list of item inventories. This method may be called once every 15 minutes. More than that will result in a 429 response.
|
|
1450
|
+
*/
|
|
1451
|
+
async restItemInventorySnapshotResponse(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ItemInventorySnapshotResponse> {
|
|
1452
|
+
const response = await this.restItemInventorySnapshotResponseRaw(initOverrides);
|
|
1453
|
+
return await response.value();
|
|
1454
|
+
}
|
|
1455
|
+
|
|
1401
1456
|
/**
|
|
1402
1457
|
* Updates a file within the digital library. This does not update an item, but updates a digital file available and selectable as part (or all) of an item.
|
|
1403
1458
|
* Updates a file within the digital library
|
|
@@ -36,7 +36,7 @@ export interface ConversationPbxPhoneNumber {
|
|
|
36
36
|
* @type {string}
|
|
37
37
|
* @memberof ConversationPbxPhoneNumber
|
|
38
38
|
*/
|
|
39
|
-
|
|
39
|
+
conversation_pbx_phone_number_uuid?: string;
|
|
40
40
|
/**
|
|
41
41
|
* Merchant Id
|
|
42
42
|
* @type {string}
|
|
@@ -77,7 +77,7 @@ export function ConversationPbxPhoneNumberFromJSONTyped(json: any, ignoreDiscrim
|
|
|
77
77
|
|
|
78
78
|
'action': !exists(json, 'action') ? undefined : json['action'],
|
|
79
79
|
'action_target': !exists(json, 'action_target') ? undefined : json['action_target'],
|
|
80
|
-
'
|
|
80
|
+
'conversation_pbx_phone_number_uuid': !exists(json, 'conversation_pbx_phone_number_uuid') ? undefined : json['conversation_pbx_phone_number_uuid'],
|
|
81
81
|
'merchant_id': !exists(json, 'merchant_id') ? undefined : json['merchant_id'],
|
|
82
82
|
'phone_number': !exists(json, 'phone_number') ? undefined : json['phone_number'],
|
|
83
83
|
};
|
|
@@ -94,7 +94,7 @@ export function ConversationPbxPhoneNumberToJSON(value?: ConversationPbxPhoneNum
|
|
|
94
94
|
|
|
95
95
|
'action': value.action,
|
|
96
96
|
'action_target': value.action_target,
|
|
97
|
-
'
|
|
97
|
+
'conversation_pbx_phone_number_uuid': value.conversation_pbx_phone_number_uuid,
|
|
98
98
|
'merchant_id': value.merchant_id,
|
|
99
99
|
'phone_number': value.phone_number,
|
|
100
100
|
};
|
|
@@ -117,13 +117,13 @@ export interface ItemAutoOrderStep {
|
|
|
117
117
|
*/
|
|
118
118
|
schedule?: string;
|
|
119
119
|
/**
|
|
120
|
-
* Email list name to subscribe the customer to when the rebill occurs
|
|
120
|
+
* Email list name to subscribe the customer to when the rebill occurs (decommissioned email engine)
|
|
121
121
|
* @type {string}
|
|
122
122
|
* @memberof ItemAutoOrderStep
|
|
123
123
|
*/
|
|
124
124
|
subscribe_email_list_name?: string;
|
|
125
125
|
/**
|
|
126
|
-
* Email list identifier to subscribe the customer to when this rebill occurs
|
|
126
|
+
* Email list identifier to subscribe the customer to when this rebill occurs (decommissioned email engine)
|
|
127
127
|
* @type {number}
|
|
128
128
|
* @memberof ItemAutoOrderStep
|
|
129
129
|
*/
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* UltraCart Rest API V2
|
|
5
|
+
* UltraCart REST API Version 2
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 2.0.0
|
|
8
|
+
* Contact: support@ultracart.com
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { exists, mapValues } from '../runtime';
|
|
16
|
+
import {
|
|
17
|
+
ItemInventorySnapshotDistributionCenter,
|
|
18
|
+
ItemInventorySnapshotDistributionCenterFromJSON,
|
|
19
|
+
ItemInventorySnapshotDistributionCenterFromJSONTyped,
|
|
20
|
+
ItemInventorySnapshotDistributionCenterToJSON,
|
|
21
|
+
} from './ItemInventorySnapshotDistributionCenter';
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @export
|
|
26
|
+
* @interface ItemInventorySnapshot
|
|
27
|
+
*/
|
|
28
|
+
export interface ItemInventorySnapshot {
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {number}
|
|
32
|
+
* @memberof ItemInventorySnapshot
|
|
33
|
+
*/
|
|
34
|
+
allocated_to_placed_orders?: number;
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @type {number}
|
|
38
|
+
* @memberof ItemInventorySnapshot
|
|
39
|
+
*/
|
|
40
|
+
allocated_to_shopping_carts?: number;
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @type {number}
|
|
44
|
+
* @memberof ItemInventorySnapshot
|
|
45
|
+
*/
|
|
46
|
+
available_to_allocate?: number;
|
|
47
|
+
/**
|
|
48
|
+
*
|
|
49
|
+
* @type {Array<ItemInventorySnapshotDistributionCenter>}
|
|
50
|
+
* @memberof ItemInventorySnapshot
|
|
51
|
+
*/
|
|
52
|
+
distribution_centers?: Array<ItemInventorySnapshotDistributionCenter>;
|
|
53
|
+
/**
|
|
54
|
+
*
|
|
55
|
+
* @type {string}
|
|
56
|
+
* @memberof ItemInventorySnapshot
|
|
57
|
+
*/
|
|
58
|
+
merchant_item_id?: string;
|
|
59
|
+
/**
|
|
60
|
+
*
|
|
61
|
+
* @type {number}
|
|
62
|
+
* @memberof ItemInventorySnapshot
|
|
63
|
+
*/
|
|
64
|
+
quantity?: number;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export function ItemInventorySnapshotFromJSON(json: any): ItemInventorySnapshot {
|
|
68
|
+
return ItemInventorySnapshotFromJSONTyped(json, false);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export function ItemInventorySnapshotFromJSONTyped(json: any, ignoreDiscriminator: boolean): ItemInventorySnapshot {
|
|
72
|
+
if ((json === undefined) || (json === null)) {
|
|
73
|
+
return json;
|
|
74
|
+
}
|
|
75
|
+
return {
|
|
76
|
+
|
|
77
|
+
'allocated_to_placed_orders': !exists(json, 'allocated_to_placed_orders') ? undefined : json['allocated_to_placed_orders'],
|
|
78
|
+
'allocated_to_shopping_carts': !exists(json, 'allocated_to_shopping_carts') ? undefined : json['allocated_to_shopping_carts'],
|
|
79
|
+
'available_to_allocate': !exists(json, 'available_to_allocate') ? undefined : json['available_to_allocate'],
|
|
80
|
+
'distribution_centers': !exists(json, 'distribution_centers') ? undefined : ((json['distribution_centers'] as Array<any>).map(ItemInventorySnapshotDistributionCenterFromJSON)),
|
|
81
|
+
'merchant_item_id': !exists(json, 'merchant_item_id') ? undefined : json['merchant_item_id'],
|
|
82
|
+
'quantity': !exists(json, 'quantity') ? undefined : json['quantity'],
|
|
83
|
+
};
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
export function ItemInventorySnapshotToJSON(value?: ItemInventorySnapshot | null): any {
|
|
87
|
+
if (value === undefined) {
|
|
88
|
+
return undefined;
|
|
89
|
+
}
|
|
90
|
+
if (value === null) {
|
|
91
|
+
return null;
|
|
92
|
+
}
|
|
93
|
+
return {
|
|
94
|
+
|
|
95
|
+
'allocated_to_placed_orders': value.allocated_to_placed_orders,
|
|
96
|
+
'allocated_to_shopping_carts': value.allocated_to_shopping_carts,
|
|
97
|
+
'available_to_allocate': value.available_to_allocate,
|
|
98
|
+
'distribution_centers': value.distribution_centers === undefined ? undefined : ((value.distribution_centers as Array<any>).map(ItemInventorySnapshotDistributionCenterToJSON)),
|
|
99
|
+
'merchant_item_id': value.merchant_item_id,
|
|
100
|
+
'quantity': value.quantity,
|
|
101
|
+
};
|
|
102
|
+
}
|
|
103
|
+
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* UltraCart Rest API V2
|
|
5
|
+
* UltraCart REST API Version 2
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 2.0.0
|
|
8
|
+
* Contact: support@ultracart.com
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { exists, mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface ItemInventorySnapshotDistributionCenter
|
|
20
|
+
*/
|
|
21
|
+
export interface ItemInventorySnapshotDistributionCenter {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof ItemInventorySnapshotDistributionCenter
|
|
26
|
+
*/
|
|
27
|
+
allocated_to_placed_orders?: number;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {number}
|
|
31
|
+
* @memberof ItemInventorySnapshotDistributionCenter
|
|
32
|
+
*/
|
|
33
|
+
allocated_to_shopping_carts?: number;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {number}
|
|
37
|
+
* @memberof ItemInventorySnapshotDistributionCenter
|
|
38
|
+
*/
|
|
39
|
+
available_to_allocate?: number;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof ItemInventorySnapshotDistributionCenter
|
|
44
|
+
*/
|
|
45
|
+
code?: string;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {number}
|
|
49
|
+
* @memberof ItemInventorySnapshotDistributionCenter
|
|
50
|
+
*/
|
|
51
|
+
quantity?: number;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export function ItemInventorySnapshotDistributionCenterFromJSON(json: any): ItemInventorySnapshotDistributionCenter {
|
|
55
|
+
return ItemInventorySnapshotDistributionCenterFromJSONTyped(json, false);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export function ItemInventorySnapshotDistributionCenterFromJSONTyped(json: any, ignoreDiscriminator: boolean): ItemInventorySnapshotDistributionCenter {
|
|
59
|
+
if ((json === undefined) || (json === null)) {
|
|
60
|
+
return json;
|
|
61
|
+
}
|
|
62
|
+
return {
|
|
63
|
+
|
|
64
|
+
'allocated_to_placed_orders': !exists(json, 'allocated_to_placed_orders') ? undefined : json['allocated_to_placed_orders'],
|
|
65
|
+
'allocated_to_shopping_carts': !exists(json, 'allocated_to_shopping_carts') ? undefined : json['allocated_to_shopping_carts'],
|
|
66
|
+
'available_to_allocate': !exists(json, 'available_to_allocate') ? undefined : json['available_to_allocate'],
|
|
67
|
+
'code': !exists(json, 'code') ? undefined : json['code'],
|
|
68
|
+
'quantity': !exists(json, 'quantity') ? undefined : json['quantity'],
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export function ItemInventorySnapshotDistributionCenterToJSON(value?: ItemInventorySnapshotDistributionCenter | null): any {
|
|
73
|
+
if (value === undefined) {
|
|
74
|
+
return undefined;
|
|
75
|
+
}
|
|
76
|
+
if (value === null) {
|
|
77
|
+
return null;
|
|
78
|
+
}
|
|
79
|
+
return {
|
|
80
|
+
|
|
81
|
+
'allocated_to_placed_orders': value.allocated_to_placed_orders,
|
|
82
|
+
'allocated_to_shopping_carts': value.allocated_to_shopping_carts,
|
|
83
|
+
'available_to_allocate': value.available_to_allocate,
|
|
84
|
+
'code': value.code,
|
|
85
|
+
'quantity': value.quantity,
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* UltraCart Rest API V2
|
|
5
|
+
* UltraCart REST API Version 2
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 2.0.0
|
|
8
|
+
* Contact: support@ultracart.com
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { exists, mapValues } from '../runtime';
|
|
16
|
+
import {
|
|
17
|
+
ItemInventorySnapshot,
|
|
18
|
+
ItemInventorySnapshotFromJSON,
|
|
19
|
+
ItemInventorySnapshotFromJSONTyped,
|
|
20
|
+
ItemInventorySnapshotToJSON,
|
|
21
|
+
} from './ItemInventorySnapshot';
|
|
22
|
+
import {
|
|
23
|
+
ModelError,
|
|
24
|
+
ModelErrorFromJSON,
|
|
25
|
+
ModelErrorFromJSONTyped,
|
|
26
|
+
ModelErrorToJSON,
|
|
27
|
+
} from './ModelError';
|
|
28
|
+
import {
|
|
29
|
+
ResponseMetadata,
|
|
30
|
+
ResponseMetadataFromJSON,
|
|
31
|
+
ResponseMetadataFromJSONTyped,
|
|
32
|
+
ResponseMetadataToJSON,
|
|
33
|
+
} from './ResponseMetadata';
|
|
34
|
+
import {
|
|
35
|
+
Warning,
|
|
36
|
+
WarningFromJSON,
|
|
37
|
+
WarningFromJSONTyped,
|
|
38
|
+
WarningToJSON,
|
|
39
|
+
} from './Warning';
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @export
|
|
44
|
+
* @interface ItemInventorySnapshotResponse
|
|
45
|
+
*/
|
|
46
|
+
export interface ItemInventorySnapshotResponse {
|
|
47
|
+
/**
|
|
48
|
+
*
|
|
49
|
+
* @type {ModelError}
|
|
50
|
+
* @memberof ItemInventorySnapshotResponse
|
|
51
|
+
*/
|
|
52
|
+
error?: ModelError;
|
|
53
|
+
/**
|
|
54
|
+
* inventories
|
|
55
|
+
* @type {Array<ItemInventorySnapshot>}
|
|
56
|
+
* @memberof ItemInventorySnapshotResponse
|
|
57
|
+
*/
|
|
58
|
+
inventories?: Array<ItemInventorySnapshot>;
|
|
59
|
+
/**
|
|
60
|
+
*
|
|
61
|
+
* @type {ResponseMetadata}
|
|
62
|
+
* @memberof ItemInventorySnapshotResponse
|
|
63
|
+
*/
|
|
64
|
+
metadata?: ResponseMetadata;
|
|
65
|
+
/**
|
|
66
|
+
* Indicates if API call was successful
|
|
67
|
+
* @type {boolean}
|
|
68
|
+
* @memberof ItemInventorySnapshotResponse
|
|
69
|
+
*/
|
|
70
|
+
success?: boolean;
|
|
71
|
+
/**
|
|
72
|
+
*
|
|
73
|
+
* @type {Warning}
|
|
74
|
+
* @memberof ItemInventorySnapshotResponse
|
|
75
|
+
*/
|
|
76
|
+
warning?: Warning;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export function ItemInventorySnapshotResponseFromJSON(json: any): ItemInventorySnapshotResponse {
|
|
80
|
+
return ItemInventorySnapshotResponseFromJSONTyped(json, false);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export function ItemInventorySnapshotResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ItemInventorySnapshotResponse {
|
|
84
|
+
if ((json === undefined) || (json === null)) {
|
|
85
|
+
return json;
|
|
86
|
+
}
|
|
87
|
+
return {
|
|
88
|
+
|
|
89
|
+
'error': !exists(json, 'error') ? undefined : ModelErrorFromJSON(json['error']),
|
|
90
|
+
'inventories': !exists(json, 'inventories') ? undefined : ((json['inventories'] as Array<any>).map(ItemInventorySnapshotFromJSON)),
|
|
91
|
+
'metadata': !exists(json, 'metadata') ? undefined : ResponseMetadataFromJSON(json['metadata']),
|
|
92
|
+
'success': !exists(json, 'success') ? undefined : json['success'],
|
|
93
|
+
'warning': !exists(json, 'warning') ? undefined : WarningFromJSON(json['warning']),
|
|
94
|
+
};
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
export function ItemInventorySnapshotResponseToJSON(value?: ItemInventorySnapshotResponse | null): any {
|
|
98
|
+
if (value === undefined) {
|
|
99
|
+
return undefined;
|
|
100
|
+
}
|
|
101
|
+
if (value === null) {
|
|
102
|
+
return null;
|
|
103
|
+
}
|
|
104
|
+
return {
|
|
105
|
+
|
|
106
|
+
'error': ModelErrorToJSON(value.error),
|
|
107
|
+
'inventories': value.inventories === undefined ? undefined : ((value.inventories as Array<any>).map(ItemInventorySnapshotToJSON)),
|
|
108
|
+
'metadata': ResponseMetadataToJSON(value.metadata),
|
|
109
|
+
'success': value.success,
|
|
110
|
+
'warning': WarningToJSON(value.warning),
|
|
111
|
+
};
|
|
112
|
+
}
|
|
113
|
+
|
package/src/models/index.ts
CHANGED
|
@@ -536,6 +536,9 @@ export * from './ItemIdentifiers';
|
|
|
536
536
|
export * from './ItemInstantPaymentNotification';
|
|
537
537
|
export * from './ItemInstantPaymentNotifications';
|
|
538
538
|
export * from './ItemInternal';
|
|
539
|
+
export * from './ItemInventorySnapshot';
|
|
540
|
+
export * from './ItemInventorySnapshotDistributionCenter';
|
|
541
|
+
export * from './ItemInventorySnapshotResponse';
|
|
539
542
|
export * from './ItemKitComponent';
|
|
540
543
|
export * from './ItemKitDefinition';
|
|
541
544
|
export * from './ItemOption';
|