@platfformx/proto-contracts 1.5.8 → 1.5.10
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.
|
@@ -36,16 +36,15 @@ export interface RefundStockResponse {
|
|
|
36
36
|
ok: boolean;
|
|
37
37
|
}
|
|
38
38
|
export interface GetStockRequest {
|
|
39
|
-
|
|
39
|
+
productIds: string[];
|
|
40
40
|
}
|
|
41
41
|
export interface GetStockResponse {
|
|
42
|
-
|
|
43
|
-
reserved: number;
|
|
44
|
-
available: number;
|
|
42
|
+
items: StockAvailability[];
|
|
45
43
|
}
|
|
46
44
|
export interface StockItem {
|
|
47
45
|
productId: string;
|
|
48
46
|
quantity: number;
|
|
47
|
+
status: string;
|
|
49
48
|
}
|
|
50
49
|
export interface StockAvailability {
|
|
51
50
|
productId: string;
|
package/package.json
CHANGED
|
@@ -58,17 +58,16 @@ message RefundStockResponse {
|
|
|
58
58
|
}
|
|
59
59
|
|
|
60
60
|
message GetStockRequest {
|
|
61
|
-
string
|
|
61
|
+
repeated string product_ids = 1;
|
|
62
62
|
}
|
|
63
63
|
message GetStockResponse {
|
|
64
|
-
|
|
65
|
-
int32 reserved = 2;
|
|
66
|
-
int32 available = 3;
|
|
64
|
+
repeated StockAvailability items = 1;
|
|
67
65
|
}
|
|
68
66
|
|
|
69
67
|
message StockItem {
|
|
70
68
|
string product_id = 1;
|
|
71
69
|
int32 quantity = 2;
|
|
70
|
+
string status = 3;
|
|
72
71
|
}
|
|
73
72
|
|
|
74
73
|
message StockAvailability {
|