@revenexx/sdk 0.0.4 → 0.0.6
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/dist/cjs/sdk.js +13491 -6163
- package/dist/cjs/sdk.js.map +1 -1
- package/dist/esm/sdk.js +13464 -6162
- package/dist/esm/sdk.js.map +1 -1
- package/dist/iife/sdk.js +13491 -6163
- package/package.json +1 -1
- package/src/client.ts +1 -1
- package/src/enums/address-type.ts +4 -0
- package/src/enums/cart-export-format.ts +4 -0
- package/src/enums/cart-io-apply-mode.ts +5 -0
- package/src/enums/cart-io-direction.ts +4 -0
- package/src/enums/cart-io-entity.ts +4 -0
- package/src/enums/cart-io-format.ts +4 -0
- package/src/enums/cart-item-type.ts +5 -0
- package/src/enums/channel-status.ts +4 -0
- package/src/enums/channel-type.ts +7 -0
- package/src/enums/contact-role.ts +6 -0
- package/src/enums/contact-status.ts +5 -0
- package/src/enums/location-type.ts +6 -0
- package/src/enums/market-status.ts +4 -0
- package/src/enums/order-comment-visibility.ts +4 -0
- package/src/enums/order-item-type.ts +5 -0
- package/src/enums/order-list-kind.ts +4 -0
- package/src/enums/order-payment-status.ts +9 -0
- package/src/enums/organization-status.ts +4 -0
- package/src/enums/page-status.ts +5 -0
- package/src/enums/payment-fee-type.ts +5 -0
- package/src/enums/payment-method-kind.ts +4 -0
- package/src/enums/price-entry-type.ts +4 -0
- package/src/enums/price-list-status.ts +4 -0
- package/src/enums/shipping-method-matrix-basis.ts +6 -0
- package/src/enums/shipping-method-pricing-type.ts +5 -0
- package/src/enums/store-asset-request-visibility.ts +4 -0
- package/src/enums/visibility.ts +4 -0
- package/src/index.ts +28 -2
- package/src/models.ts +5309 -1009
- package/src/services/apps.ts +154 -154
- package/src/services/avatars.ts +57 -57
- package/src/services/carts.ts +739 -104
- package/src/services/channels.ts +147 -19
- package/src/services/customers.ts +809 -69
- package/src/services/greetings.ts +18 -18
- package/src/services/inventories.ts +620 -65
- package/src/services/locale.ts +16 -16
- package/src/services/markets.ts +690 -75
- package/src/services/messaging.ts +273 -273
- package/src/services/orderlists.ts +889 -0
- package/src/services/orders.ts +692 -137
- package/src/services/pages.ts +661 -155
- package/src/services/payments.ts +591 -64
- package/src/services/prices.ts +585 -59
- package/src/services/products.ts +1908 -272
- package/src/services/search.ts +24 -24
- package/src/services/shipping.ts +451 -59
- package/src/services/sites.ts +116 -116
- package/src/services/storage.ts +933 -599
- package/src/services/tokens.ts +14 -14
- package/types/enums/address-type.d.ts +4 -0
- package/types/enums/cart-export-format.d.ts +4 -0
- package/types/enums/cart-io-apply-mode.d.ts +5 -0
- package/types/enums/cart-io-direction.d.ts +4 -0
- package/types/enums/cart-io-entity.d.ts +4 -0
- package/types/enums/cart-io-format.d.ts +4 -0
- package/types/enums/cart-item-type.d.ts +5 -0
- package/types/enums/channel-status.d.ts +4 -0
- package/types/enums/channel-type.d.ts +7 -0
- package/types/enums/contact-role.d.ts +6 -0
- package/types/enums/contact-status.d.ts +5 -0
- package/types/enums/location-type.d.ts +6 -0
- package/types/enums/market-status.d.ts +4 -0
- package/types/enums/order-comment-visibility.d.ts +4 -0
- package/types/enums/order-item-type.d.ts +5 -0
- package/types/enums/order-list-kind.d.ts +4 -0
- package/types/enums/order-payment-status.d.ts +9 -0
- package/types/enums/organization-status.d.ts +4 -0
- package/types/enums/page-status.d.ts +5 -0
- package/types/enums/payment-fee-type.d.ts +5 -0
- package/types/enums/payment-method-kind.d.ts +4 -0
- package/types/enums/price-entry-type.d.ts +4 -0
- package/types/enums/price-list-status.d.ts +4 -0
- package/types/enums/shipping-method-matrix-basis.d.ts +6 -0
- package/types/enums/shipping-method-pricing-type.d.ts +5 -0
- package/types/enums/store-asset-request-visibility.d.ts +4 -0
- package/types/enums/visibility.d.ts +4 -0
- package/types/index.d.ts +28 -2
- package/types/models.d.ts +5170 -1010
- package/types/services/carts.d.ts +271 -12
- package/types/services/channels.d.ts +54 -2
- package/types/services/customers.d.ts +298 -12
- package/types/services/inventories.d.ts +225 -11
- package/types/services/markets.d.ts +235 -6
- package/types/services/orderlists.d.ts +324 -0
- package/types/services/orders.d.ts +238 -16
- package/types/services/pages.d.ts +190 -6
- package/types/services/payments.d.ts +221 -7
- package/types/services/prices.d.ts +218 -6
- package/types/services/products.d.ts +672 -32
- package/types/services/shipping.d.ts +168 -6
- package/types/services/storage.d.ts +353 -285
|
@@ -1,26 +1,69 @@
|
|
|
1
1
|
import { Client } from '../client';
|
|
2
2
|
import type { Models } from '../models';
|
|
3
|
+
import { LocationType } from '../enums/location-type';
|
|
3
4
|
export declare class Inventories {
|
|
4
5
|
client: Client;
|
|
5
6
|
constructor(client: Client);
|
|
6
7
|
/**
|
|
7
8
|
*
|
|
9
|
+
* @param {Models.InventoryAdjustItem[]} params.items - The corrections — quantities are SIGNED deltas (at most 200).
|
|
10
|
+
* @param {string} params.reason - Mandatory audit reason — every adjustment is a ledger row.
|
|
11
|
+
* @param {string} params.locationCode - Adjusted location (default 'main').
|
|
8
12
|
* @throws {RevenexxException}
|
|
9
13
|
* @returns {Promise<{}>}
|
|
10
14
|
*/
|
|
11
|
-
inventoriesAdjust(
|
|
15
|
+
inventoriesAdjust(params: {
|
|
16
|
+
items: Models.InventoryAdjustItem[];
|
|
17
|
+
reason: string;
|
|
18
|
+
locationCode?: string;
|
|
19
|
+
}): Promise<{}>;
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @param {Models.InventoryAdjustItem[]} items - The corrections — quantities are SIGNED deltas (at most 200).
|
|
23
|
+
* @param {string} reason - Mandatory audit reason — every adjustment is a ledger row.
|
|
24
|
+
* @param {string} locationCode - Adjusted location (default 'main').
|
|
25
|
+
* @throws {RevenexxException}
|
|
26
|
+
* @returns {Promise<{}>}
|
|
27
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
28
|
+
*/
|
|
29
|
+
inventoriesAdjust(items: Models.InventoryAdjustItem[], reason: string, locationCode?: string): Promise<{}>;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @param {Models.InventoryAvailabilityItem[]} params.items - The items to check (batch, at most 200).
|
|
33
|
+
* @param {string} params.locationCode - Restrict the check to one location (default: all enabled locations).
|
|
34
|
+
* @throws {RevenexxException}
|
|
35
|
+
* @returns {Promise<{}>}
|
|
36
|
+
*/
|
|
37
|
+
inventoriesAvailability(params: {
|
|
38
|
+
items: Models.InventoryAvailabilityItem[];
|
|
39
|
+
locationCode?: string;
|
|
40
|
+
}): Promise<{}>;
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @param {Models.InventoryAvailabilityItem[]} items - The items to check (batch, at most 200).
|
|
44
|
+
* @param {string} locationCode - Restrict the check to one location (default: all enabled locations).
|
|
45
|
+
* @throws {RevenexxException}
|
|
46
|
+
* @returns {Promise<{}>}
|
|
47
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
48
|
+
*/
|
|
49
|
+
inventoriesAvailability(items: Models.InventoryAvailabilityItem[], locationCode?: string): Promise<{}>;
|
|
12
50
|
/**
|
|
13
51
|
*
|
|
52
|
+
* @param {string} params.orderRef - The order whose active reservations are committed (shipment).
|
|
14
53
|
* @throws {RevenexxException}
|
|
15
54
|
* @returns {Promise<{}>}
|
|
16
55
|
*/
|
|
17
|
-
|
|
56
|
+
inventoriesCommit(params: {
|
|
57
|
+
orderRef: string;
|
|
58
|
+
}): Promise<{}>;
|
|
18
59
|
/**
|
|
19
60
|
*
|
|
61
|
+
* @param {string} orderRef - The order whose active reservations are committed (shipment).
|
|
20
62
|
* @throws {RevenexxException}
|
|
21
63
|
* @returns {Promise<{}>}
|
|
64
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
22
65
|
*/
|
|
23
|
-
inventoriesCommit(): Promise<{}>;
|
|
66
|
+
inventoriesCommit(orderRef: string): Promise<{}>;
|
|
24
67
|
/**
|
|
25
68
|
*
|
|
26
69
|
* @throws {RevenexxException}
|
|
@@ -29,10 +72,42 @@ export declare class Inventories {
|
|
|
29
72
|
inventoriesLocationsList(): Promise<{}>;
|
|
30
73
|
/**
|
|
31
74
|
*
|
|
75
|
+
* @param {string} params.code - Unique location code (per tenant).
|
|
76
|
+
* @param {string} params.name -
|
|
77
|
+
* @param {object} params.address -
|
|
78
|
+
* @param {boolean} params.enabled - Disabled locations are skipped by availability and reserve (default true).
|
|
79
|
+
* @param {object} params.labels - Localised display names ({de, en, …}).
|
|
80
|
+
* @param {object} params.metadata - Free-form metadata.
|
|
81
|
+
* @param {number} params.priority - Sourcing order — lower wins (default 0).
|
|
82
|
+
* @param {LocationType} params.type - Default 'warehouse'.
|
|
83
|
+
* @throws {RevenexxException}
|
|
84
|
+
* @returns {Promise<Models.Location>}
|
|
85
|
+
*/
|
|
86
|
+
inventoriesLocationsCreate(params: {
|
|
87
|
+
code: string;
|
|
88
|
+
name: string;
|
|
89
|
+
address?: object;
|
|
90
|
+
enabled?: boolean;
|
|
91
|
+
labels?: object;
|
|
92
|
+
metadata?: object;
|
|
93
|
+
priority?: number;
|
|
94
|
+
type?: LocationType;
|
|
95
|
+
}): Promise<Models.Location>;
|
|
96
|
+
/**
|
|
97
|
+
*
|
|
98
|
+
* @param {string} code - Unique location code (per tenant).
|
|
99
|
+
* @param {string} name -
|
|
100
|
+
* @param {object} address -
|
|
101
|
+
* @param {boolean} enabled - Disabled locations are skipped by availability and reserve (default true).
|
|
102
|
+
* @param {object} labels - Localised display names ({de, en, …}).
|
|
103
|
+
* @param {object} metadata - Free-form metadata.
|
|
104
|
+
* @param {number} priority - Sourcing order — lower wins (default 0).
|
|
105
|
+
* @param {LocationType} type - Default 'warehouse'.
|
|
32
106
|
* @throws {RevenexxException}
|
|
33
107
|
* @returns {Promise<Models.Location>}
|
|
108
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
34
109
|
*/
|
|
35
|
-
inventoriesLocationsCreate(): Promise<Models.Location>;
|
|
110
|
+
inventoriesLocationsCreate(code: string, name: string, address?: object, enabled?: boolean, labels?: object, metadata?: object, priority?: number, type?: LocationType): Promise<Models.Location>;
|
|
36
111
|
/**
|
|
37
112
|
*
|
|
38
113
|
* @throws {RevenexxException}
|
|
@@ -76,20 +151,44 @@ export declare class Inventories {
|
|
|
76
151
|
/**
|
|
77
152
|
*
|
|
78
153
|
* @param {string} params.id -
|
|
154
|
+
* @param {object} params.address -
|
|
155
|
+
* @param {string} params.code - Unique location code (per tenant).
|
|
156
|
+
* @param {boolean} params.enabled - Disabled locations are skipped by availability and reserve (default true).
|
|
157
|
+
* @param {object} params.labels - Localised display names ({de, en, …}).
|
|
158
|
+
* @param {object} params.metadata - Free-form metadata.
|
|
159
|
+
* @param {string} params.name -
|
|
160
|
+
* @param {number} params.priority - Sourcing order — lower wins (default 0).
|
|
161
|
+
* @param {LocationType} params.type - Default 'warehouse'.
|
|
79
162
|
* @throws {RevenexxException}
|
|
80
163
|
* @returns {Promise<Models.Location>}
|
|
81
164
|
*/
|
|
82
165
|
inventoriesLocationsUpdate(params: {
|
|
83
166
|
id: string;
|
|
167
|
+
address?: object;
|
|
168
|
+
code?: string;
|
|
169
|
+
enabled?: boolean;
|
|
170
|
+
labels?: object;
|
|
171
|
+
metadata?: object;
|
|
172
|
+
name?: string;
|
|
173
|
+
priority?: number;
|
|
174
|
+
type?: LocationType;
|
|
84
175
|
}): Promise<Models.Location>;
|
|
85
176
|
/**
|
|
86
177
|
*
|
|
87
178
|
* @param {string} id -
|
|
179
|
+
* @param {object} address -
|
|
180
|
+
* @param {string} code - Unique location code (per tenant).
|
|
181
|
+
* @param {boolean} enabled - Disabled locations are skipped by availability and reserve (default true).
|
|
182
|
+
* @param {object} labels - Localised display names ({de, en, …}).
|
|
183
|
+
* @param {object} metadata - Free-form metadata.
|
|
184
|
+
* @param {string} name -
|
|
185
|
+
* @param {number} priority - Sourcing order — lower wins (default 0).
|
|
186
|
+
* @param {LocationType} type - Default 'warehouse'.
|
|
88
187
|
* @throws {RevenexxException}
|
|
89
188
|
* @returns {Promise<Models.Location>}
|
|
90
189
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
91
190
|
*/
|
|
92
|
-
inventoriesLocationsUpdate(id: string): Promise<Models.Location>;
|
|
191
|
+
inventoriesLocationsUpdate(id: string, address?: object, code?: string, enabled?: boolean, labels?: object, metadata?: object, name?: string, priority?: number, type?: LocationType): Promise<Models.Location>;
|
|
93
192
|
/**
|
|
94
193
|
*
|
|
95
194
|
* @throws {RevenexxException}
|
|
@@ -115,16 +214,44 @@ export declare class Inventories {
|
|
|
115
214
|
inventoriesMovementsGet(id: string): Promise<Models.StockMovement>;
|
|
116
215
|
/**
|
|
117
216
|
*
|
|
217
|
+
* @param {Models.InventoryStockItem[]} params.items - The inbound items (at most 200).
|
|
218
|
+
* @param {string} params.locationCode - Receiving location (default 'main').
|
|
219
|
+
* @param {string} params.reason - Ledger note (e.g. delivery note number).
|
|
118
220
|
* @throws {RevenexxException}
|
|
119
221
|
* @returns {Promise<{}>}
|
|
120
222
|
*/
|
|
121
|
-
inventoriesReceive(
|
|
223
|
+
inventoriesReceive(params: {
|
|
224
|
+
items: Models.InventoryStockItem[];
|
|
225
|
+
locationCode?: string;
|
|
226
|
+
reason?: string;
|
|
227
|
+
}): Promise<{}>;
|
|
122
228
|
/**
|
|
123
229
|
*
|
|
230
|
+
* @param {Models.InventoryStockItem[]} items - The inbound items (at most 200).
|
|
231
|
+
* @param {string} locationCode - Receiving location (default 'main').
|
|
232
|
+
* @param {string} reason - Ledger note (e.g. delivery note number).
|
|
124
233
|
* @throws {RevenexxException}
|
|
125
234
|
* @returns {Promise<{}>}
|
|
235
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
126
236
|
*/
|
|
127
|
-
|
|
237
|
+
inventoriesReceive(items: Models.InventoryStockItem[], locationCode?: string, reason?: string): Promise<{}>;
|
|
238
|
+
/**
|
|
239
|
+
*
|
|
240
|
+
* @param {string} params.orderRef - The order whose active reservations are released.
|
|
241
|
+
* @throws {RevenexxException}
|
|
242
|
+
* @returns {Promise<{}>}
|
|
243
|
+
*/
|
|
244
|
+
inventoriesRelease(params: {
|
|
245
|
+
orderRef: string;
|
|
246
|
+
}): Promise<{}>;
|
|
247
|
+
/**
|
|
248
|
+
*
|
|
249
|
+
* @param {string} orderRef - The order whose active reservations are released.
|
|
250
|
+
* @throws {RevenexxException}
|
|
251
|
+
* @returns {Promise<{}>}
|
|
252
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
253
|
+
*/
|
|
254
|
+
inventoriesRelease(orderRef: string): Promise<{}>;
|
|
128
255
|
/**
|
|
129
256
|
*
|
|
130
257
|
* @throws {RevenexxException}
|
|
@@ -150,16 +277,53 @@ export declare class Inventories {
|
|
|
150
277
|
inventoriesReservationsGet(id: string): Promise<Models.Reservation>;
|
|
151
278
|
/**
|
|
152
279
|
*
|
|
280
|
+
* @param {Models.InventoryStockItem[]} params.items - The items to reserve — all-or-nothing (at most 200).
|
|
281
|
+
* @param {string} params.orderRef - The order this reservation belongs to.
|
|
282
|
+
* @param {string} params.expiresAt - Optional reservation expiry.
|
|
153
283
|
* @throws {RevenexxException}
|
|
154
284
|
* @returns {Promise<{}>}
|
|
155
285
|
*/
|
|
156
|
-
inventoriesReserve(
|
|
286
|
+
inventoriesReserve(params: {
|
|
287
|
+
items: Models.InventoryStockItem[];
|
|
288
|
+
orderRef: string;
|
|
289
|
+
expiresAt?: string;
|
|
290
|
+
}): Promise<{}>;
|
|
157
291
|
/**
|
|
158
292
|
*
|
|
293
|
+
* @param {Models.InventoryStockItem[]} items - The items to reserve — all-or-nothing (at most 200).
|
|
294
|
+
* @param {string} orderRef - The order this reservation belongs to.
|
|
295
|
+
* @param {string} expiresAt - Optional reservation expiry.
|
|
159
296
|
* @throws {RevenexxException}
|
|
160
297
|
* @returns {Promise<{}>}
|
|
298
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
161
299
|
*/
|
|
162
|
-
|
|
300
|
+
inventoriesReserve(items: Models.InventoryStockItem[], orderRef: string, expiresAt?: string): Promise<{}>;
|
|
301
|
+
/**
|
|
302
|
+
*
|
|
303
|
+
* @param {Models.InventoryStockItem[]} params.items - The returned items (at most 200).
|
|
304
|
+
* @param {string} params.locationCode - Restocking location (default 'main').
|
|
305
|
+
* @param {string} params.orderRef - Originating order (ledger reference).
|
|
306
|
+
* @param {string} params.reason - Ledger note (e.g. return reason).
|
|
307
|
+
* @throws {RevenexxException}
|
|
308
|
+
* @returns {Promise<{}>}
|
|
309
|
+
*/
|
|
310
|
+
inventoriesRestock(params: {
|
|
311
|
+
items: Models.InventoryStockItem[];
|
|
312
|
+
locationCode?: string;
|
|
313
|
+
orderRef?: string;
|
|
314
|
+
reason?: string;
|
|
315
|
+
}): Promise<{}>;
|
|
316
|
+
/**
|
|
317
|
+
*
|
|
318
|
+
* @param {Models.InventoryStockItem[]} items - The returned items (at most 200).
|
|
319
|
+
* @param {string} locationCode - Restocking location (default 'main').
|
|
320
|
+
* @param {string} orderRef - Originating order (ledger reference).
|
|
321
|
+
* @param {string} reason - Ledger note (e.g. return reason).
|
|
322
|
+
* @throws {RevenexxException}
|
|
323
|
+
* @returns {Promise<{}>}
|
|
324
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
325
|
+
*/
|
|
326
|
+
inventoriesRestock(items: Models.InventoryStockItem[], locationCode?: string, orderRef?: string, reason?: string): Promise<{}>;
|
|
163
327
|
/**
|
|
164
328
|
*
|
|
165
329
|
* @throws {RevenexxException}
|
|
@@ -168,10 +332,39 @@ export declare class Inventories {
|
|
|
168
332
|
inventoriesStockList(): Promise<{}>;
|
|
169
333
|
/**
|
|
170
334
|
*
|
|
335
|
+
* @param {string} params.locationId - Owning location.
|
|
336
|
+
* @param {object} params.metadata - Free-form metadata.
|
|
337
|
+
* @param {number} params.onHand - Physical stock (default 0).
|
|
338
|
+
* @param {string} params.productId - Tracked product.
|
|
339
|
+
* @param {number} params.reorderPoint -
|
|
340
|
+
* @param {number} params.reserved - Reserved stock (default 0) — normally managed by reserve/release/commit.
|
|
341
|
+
* @param {string} params.sku - Tracked SKU (alternative to product_id).
|
|
171
342
|
* @throws {RevenexxException}
|
|
172
343
|
* @returns {Promise<Models.StockLevel>}
|
|
173
344
|
*/
|
|
174
|
-
inventoriesStockCreate(
|
|
345
|
+
inventoriesStockCreate(params: {
|
|
346
|
+
locationId: string;
|
|
347
|
+
metadata?: object;
|
|
348
|
+
onHand?: number;
|
|
349
|
+
productId?: string;
|
|
350
|
+
reorderPoint?: number;
|
|
351
|
+
reserved?: number;
|
|
352
|
+
sku?: string;
|
|
353
|
+
}): Promise<Models.StockLevel>;
|
|
354
|
+
/**
|
|
355
|
+
*
|
|
356
|
+
* @param {string} locationId - Owning location.
|
|
357
|
+
* @param {object} metadata - Free-form metadata.
|
|
358
|
+
* @param {number} onHand - Physical stock (default 0).
|
|
359
|
+
* @param {string} productId - Tracked product.
|
|
360
|
+
* @param {number} reorderPoint -
|
|
361
|
+
* @param {number} reserved - Reserved stock (default 0) — normally managed by reserve/release/commit.
|
|
362
|
+
* @param {string} sku - Tracked SKU (alternative to product_id).
|
|
363
|
+
* @throws {RevenexxException}
|
|
364
|
+
* @returns {Promise<Models.StockLevel>}
|
|
365
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
366
|
+
*/
|
|
367
|
+
inventoriesStockCreate(locationId: string, metadata?: object, onHand?: number, productId?: string, reorderPoint?: number, reserved?: number, sku?: string): Promise<Models.StockLevel>;
|
|
175
368
|
/**
|
|
176
369
|
*
|
|
177
370
|
* @param {string} params.id -
|
|
@@ -209,18 +402,39 @@ export declare class Inventories {
|
|
|
209
402
|
/**
|
|
210
403
|
*
|
|
211
404
|
* @param {string} params.id -
|
|
405
|
+
* @param {string} params.locationId - Owning location.
|
|
406
|
+
* @param {object} params.metadata - Free-form metadata.
|
|
407
|
+
* @param {number} params.onHand - Physical stock (default 0).
|
|
408
|
+
* @param {string} params.productId - Tracked product.
|
|
409
|
+
* @param {number} params.reorderPoint -
|
|
410
|
+
* @param {number} params.reserved - Reserved stock (default 0) — normally managed by reserve/release/commit.
|
|
411
|
+
* @param {string} params.sku - Tracked SKU (alternative to product_id).
|
|
212
412
|
* @throws {RevenexxException}
|
|
213
413
|
* @returns {Promise<Models.StockLevel>}
|
|
214
414
|
*/
|
|
215
415
|
inventoriesStockUpdate(params: {
|
|
216
416
|
id: string;
|
|
417
|
+
locationId?: string;
|
|
418
|
+
metadata?: object;
|
|
419
|
+
onHand?: number;
|
|
420
|
+
productId?: string;
|
|
421
|
+
reorderPoint?: number;
|
|
422
|
+
reserved?: number;
|
|
423
|
+
sku?: string;
|
|
217
424
|
}): Promise<Models.StockLevel>;
|
|
218
425
|
/**
|
|
219
426
|
*
|
|
220
427
|
* @param {string} id -
|
|
428
|
+
* @param {string} locationId - Owning location.
|
|
429
|
+
* @param {object} metadata - Free-form metadata.
|
|
430
|
+
* @param {number} onHand - Physical stock (default 0).
|
|
431
|
+
* @param {string} productId - Tracked product.
|
|
432
|
+
* @param {number} reorderPoint -
|
|
433
|
+
* @param {number} reserved - Reserved stock (default 0) — normally managed by reserve/release/commit.
|
|
434
|
+
* @param {string} sku - Tracked SKU (alternative to product_id).
|
|
221
435
|
* @throws {RevenexxException}
|
|
222
436
|
* @returns {Promise<Models.StockLevel>}
|
|
223
437
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
224
438
|
*/
|
|
225
|
-
inventoriesStockUpdate(id: string): Promise<Models.StockLevel>;
|
|
439
|
+
inventoriesStockUpdate(id: string, locationId?: string, metadata?: object, onHand?: number, productId?: string, reorderPoint?: number, reserved?: number, sku?: string): Promise<Models.StockLevel>;
|
|
226
440
|
}
|