@restorecommerce/protos 6.7.0 → 6.8.1
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/CHANGELOG.md +24 -0
- package/io/restorecommerce/fulfillment.proto +7 -7
- package/io/restorecommerce/locale.proto +2 -1
- package/io/restorecommerce/order.proto +10 -11
- package/io/restorecommerce/product.proto +12 -14
- package/io/restorecommerce/tax.proto +2 -0
- package/io/restorecommerce/timezone.proto +12 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,30 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [6.8.1](https://github.com/restorecommerce/libs/compare/@restorecommerce/protos@6.8.0...@restorecommerce/protos@6.8.1) (2024-04-15)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **order_state:** remove FAILED and INVALID from order_state ([6a0c6bf](https://github.com/restorecommerce/libs/commit/6a0c6bfb54d00e5c169bd2d688f773baff8a88c8))
|
|
12
|
+
* **product:** add missing imports for resolver ([be68bdf](https://github.com/restorecommerce/libs/commit/be68bdfa5a281454a641808895bd227cdbc6e605))
|
|
13
|
+
* **timezone:** more information in timezone, fix invalid resolver on product.taxIds ([106ef81](https://github.com/restorecommerce/libs/commit/106ef81533ce279129c5d8be89f7070382a705da))
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
# [6.8.0](https://github.com/restorecommerce/libs/compare/@restorecommerce/protos@6.7.0...@restorecommerce/protos@6.8.0) (2024-03-05)
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
### Features
|
|
23
|
+
|
|
24
|
+
* **protos:** add tax_ids to Product.Variant, parenting in Order.Items ([2d66f4a](https://github.com/restorecommerce/libs/commit/2d66f4ac8831c84fd624d38c6a8e190f69a85703))
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
6
30
|
# [6.7.0](https://github.com/restorecommerce/libs/compare/@restorecommerce/protos@6.6.0...@restorecommerce/protos@6.7.0) (2024-01-24)
|
|
7
31
|
|
|
8
32
|
|
|
@@ -90,14 +90,14 @@ service FulfillmentService {
|
|
|
90
90
|
}
|
|
91
91
|
|
|
92
92
|
enum State {
|
|
93
|
-
|
|
93
|
+
PENDING = 0;
|
|
94
94
|
INVALID = 1;
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
95
|
+
SUBMITTED = 2;
|
|
96
|
+
IN_TRANSIT = 3;
|
|
97
|
+
COMPLETED = 4;
|
|
98
|
+
WITHDRAWN = 5;
|
|
99
|
+
CANCELLED = 6;
|
|
100
|
+
FAILED = 7;
|
|
101
101
|
}
|
|
102
102
|
|
|
103
103
|
message Item {
|
|
@@ -45,6 +45,7 @@ message LocaleResponse {
|
|
|
45
45
|
message Locale {
|
|
46
46
|
optional string id = 1;
|
|
47
47
|
optional io.restorecommerce.meta.Meta meta = 2;
|
|
48
|
-
optional string value = 3;
|
|
48
|
+
optional string value = 3; // official symbole
|
|
49
49
|
optional string description = 4;
|
|
50
|
+
optional string name = 5; // display name
|
|
50
51
|
}
|
|
@@ -21,6 +21,7 @@ import "io/restorecommerce/invoice.proto";
|
|
|
21
21
|
import "io/restorecommerce/user.proto";
|
|
22
22
|
import "io/restorecommerce/customer.proto";
|
|
23
23
|
import "io/restorecommerce/shop.proto";
|
|
24
|
+
import "io/restorecommerce/product.proto";
|
|
24
25
|
|
|
25
26
|
|
|
26
27
|
service OrderService {
|
|
@@ -50,14 +51,11 @@ service OrderService {
|
|
|
50
51
|
}
|
|
51
52
|
|
|
52
53
|
enum OrderState {
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
DONE = 5;
|
|
59
|
-
WITHDRAWN = 6;
|
|
60
|
-
CANCELLED = 7;
|
|
54
|
+
PENDING = 0;
|
|
55
|
+
SUBMITTED = 1;
|
|
56
|
+
COMPLETED = 2;
|
|
57
|
+
WITHDRAWN = 3;
|
|
58
|
+
CANCELLED = 4;
|
|
61
59
|
}
|
|
62
60
|
|
|
63
61
|
enum FulfillmentInvoiceMode {
|
|
@@ -77,9 +75,10 @@ message Item {
|
|
|
77
75
|
}
|
|
78
76
|
];
|
|
79
77
|
optional string variant_id = 3;
|
|
80
|
-
optional
|
|
81
|
-
optional
|
|
82
|
-
optional io.restorecommerce.
|
|
78
|
+
optional string parent_item_id = 4;
|
|
79
|
+
optional int32 quantity = 5;
|
|
80
|
+
optional io.restorecommerce.price.Price unit_price = 6; //Set by service
|
|
81
|
+
optional io.restorecommerce.amount.Amount amount = 7; //Set by service
|
|
83
82
|
}
|
|
84
83
|
|
|
85
84
|
/**
|
|
@@ -15,6 +15,8 @@ import "io/restorecommerce/price.proto";
|
|
|
15
15
|
import "io/restorecommerce/options.proto";
|
|
16
16
|
|
|
17
17
|
// Used by resolvers
|
|
18
|
+
import "io/restorecommerce/product_category.proto";
|
|
19
|
+
import "io/restorecommerce/product_prototype.proto";
|
|
18
20
|
import "io/restorecommerce/manufacturer.proto";
|
|
19
21
|
import "io/restorecommerce/property.proto";
|
|
20
22
|
import "io/restorecommerce/shop.proto";
|
|
@@ -46,9 +48,10 @@ message Association {
|
|
|
46
48
|
field_name: "product",
|
|
47
49
|
}
|
|
48
50
|
];
|
|
49
|
-
optional
|
|
50
|
-
|
|
51
|
-
|
|
51
|
+
optional string variant_id = 2;
|
|
52
|
+
optional AssociationType type = 3;
|
|
53
|
+
repeated string tags = 4;
|
|
54
|
+
optional google.protobuf.Any data = 5;
|
|
52
55
|
}
|
|
53
56
|
|
|
54
57
|
// Product resource entity
|
|
@@ -124,15 +127,7 @@ message IndividualProduct {
|
|
|
124
127
|
}
|
|
125
128
|
];
|
|
126
129
|
}
|
|
127
|
-
repeated string tax_ids = 8
|
|
128
|
-
(io.restorecommerce.options.resolver) = {
|
|
129
|
-
target_type: ".io.restorecommerce.tax.Tax",
|
|
130
|
-
target_service: "master_data",
|
|
131
|
-
target_sub_service: "tax",
|
|
132
|
-
target_method: "Read",
|
|
133
|
-
field_name: "tax",
|
|
134
|
-
}
|
|
135
|
-
];
|
|
130
|
+
repeated string tax_ids = 8;
|
|
136
131
|
optional string gtin = 10;
|
|
137
132
|
oneof nature {
|
|
138
133
|
PhysicalProduct physical = 11;
|
|
@@ -186,8 +181,9 @@ message PhysicalVariant {
|
|
|
186
181
|
repeated io.restorecommerce.file.File files = 7;
|
|
187
182
|
optional string stock_keeping_unit = 8;
|
|
188
183
|
optional string parent_variant_id = 9;
|
|
189
|
-
|
|
190
|
-
repeated
|
|
184
|
+
repeated io.restorecommerce.property.Property properties = 10;
|
|
185
|
+
repeated string tax_ids = 11;
|
|
186
|
+
optional Package package = 12;
|
|
191
187
|
}
|
|
192
188
|
|
|
193
189
|
message ServiceVariant {
|
|
@@ -201,6 +197,7 @@ message ServiceVariant {
|
|
|
201
197
|
optional string stock_keeping_unit = 8;
|
|
202
198
|
optional string parent_variant_id = 9;
|
|
203
199
|
repeated io.restorecommerce.property.Property properties = 10;
|
|
200
|
+
repeated string tax_ids = 11;
|
|
204
201
|
}
|
|
205
202
|
|
|
206
203
|
message VirtualVariant {
|
|
@@ -214,6 +211,7 @@ message VirtualVariant {
|
|
|
214
211
|
optional string stock_keeping_unit = 8;
|
|
215
212
|
optional string parent_variant_id = 9;
|
|
216
213
|
repeated io.restorecommerce.property.Property properties = 10;
|
|
214
|
+
repeated string tax_ids = 11;
|
|
217
215
|
}
|
|
218
216
|
|
|
219
217
|
message Bundle {
|
|
@@ -42,8 +42,19 @@ message TimezoneResponse {
|
|
|
42
42
|
optional io.restorecommerce.status.Status status = 2;
|
|
43
43
|
}
|
|
44
44
|
|
|
45
|
+
message TimezoneOffset {
|
|
46
|
+
optional int32 hours = 1;
|
|
47
|
+
optional int32 minutes = 2;
|
|
48
|
+
}
|
|
49
|
+
|
|
45
50
|
message Timezone {
|
|
46
51
|
optional string id = 1;
|
|
47
52
|
optional io.restorecommerce.meta.Meta meta = 2;
|
|
48
|
-
optional string
|
|
53
|
+
optional string name = 3; // display name
|
|
54
|
+
optional string value = 4; // official name
|
|
55
|
+
optional string abbreviation_std = 5;
|
|
56
|
+
optional string abbreviation_dst = 6;
|
|
57
|
+
optional TimezoneOffset offset_std = 7;
|
|
58
|
+
optional TimezoneOffset offset_dst = 8;
|
|
59
|
+
optional string description = 9;
|
|
49
60
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@restorecommerce/protos",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.8.1",
|
|
4
4
|
"description": "Protobuf descriptors for Restorecommerce services",
|
|
5
5
|
"author": "n-fuse GmbH",
|
|
6
6
|
"repository": {
|
|
@@ -15,5 +15,5 @@
|
|
|
15
15
|
"protobufs"
|
|
16
16
|
],
|
|
17
17
|
"scripts": {},
|
|
18
|
-
"gitHead": "
|
|
18
|
+
"gitHead": "068f1450161f53afd87f8ae9615778001edd66ce"
|
|
19
19
|
}
|