@restorecommerce/protos 6.8.0 → 6.8.2
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 +25 -0
- package/io/restorecommerce/fulfillment.proto +10 -10
- package/io/restorecommerce/locale.proto +2 -1
- package/io/restorecommerce/order.proto +13 -17
- package/io/restorecommerce/product.proto +6 -36
- 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,31 @@
|
|
|
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.2](https://github.com/restorecommerce/libs/compare/@restorecommerce/protos@6.8.1...@restorecommerce/protos@6.8.2) (2024-04-19)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **ordering:** remove fulfillment state and payment state from order ([73ab259](https://github.com/restorecommerce/libs/commit/73ab25928fb7ce3cc9b19e7ac06cda31b2f0f78e))
|
|
12
|
+
* **protos:** rename State to FulfillmentState ([4debc8b](https://github.com/restorecommerce/libs/commit/4debc8bfcb7e870ca827826cb3d58c2f6aa20840))
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
## [6.8.1](https://github.com/restorecommerce/libs/compare/@restorecommerce/protos@6.8.0...@restorecommerce/protos@6.8.1) (2024-04-15)
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
### Bug Fixes
|
|
22
|
+
|
|
23
|
+
* **order_state:** remove FAILED and INVALID from order_state ([6a0c6bf](https://github.com/restorecommerce/libs/commit/6a0c6bfb54d00e5c169bd2d688f773baff8a88c8))
|
|
24
|
+
* **product:** add missing imports for resolver ([be68bdf](https://github.com/restorecommerce/libs/commit/be68bdfa5a281454a641808895bd227cdbc6e605))
|
|
25
|
+
* **timezone:** more information in timezone, fix invalid resolver on product.taxIds ([106ef81](https://github.com/restorecommerce/libs/commit/106ef81533ce279129c5d8be89f7070382a705da))
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
6
31
|
# [6.8.0](https://github.com/restorecommerce/libs/compare/@restorecommerce/protos@6.7.0...@restorecommerce/protos@6.8.0) (2024-03-05)
|
|
7
32
|
|
|
8
33
|
|
|
@@ -89,15 +89,15 @@ service FulfillmentService {
|
|
|
89
89
|
rpc TriggerInvoice (FulfillmentInvoiceRequestList) returns (io.restorecommerce.status.StatusListResponse);
|
|
90
90
|
}
|
|
91
91
|
|
|
92
|
-
enum
|
|
93
|
-
|
|
92
|
+
enum FulfillmentState {
|
|
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 {
|
|
@@ -133,7 +133,7 @@ message Label {
|
|
|
133
133
|
}
|
|
134
134
|
optional string parcel_id = 4;
|
|
135
135
|
optional string shipment_number = 5; //filled on Order
|
|
136
|
-
optional
|
|
136
|
+
optional FulfillmentState state = 6; //update by Track
|
|
137
137
|
optional io.restorecommerce.status.Status status = 7; //API status
|
|
138
138
|
}
|
|
139
139
|
|
|
@@ -207,7 +207,7 @@ message Fulfillment {
|
|
|
207
207
|
repeated Label labels = 8; //set by service
|
|
208
208
|
repeated Tracking trackings = 9; //set by service
|
|
209
209
|
repeated io.restorecommerce.amount.Amount total_amounts = 10; //set by service
|
|
210
|
-
optional
|
|
210
|
+
optional FulfillmentState fulfillment_state = 11; //set by service
|
|
211
211
|
}
|
|
212
212
|
|
|
213
213
|
message FulfillmentList {
|
|
@@ -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 {
|
|
@@ -126,15 +124,13 @@ message Order {
|
|
|
126
124
|
];
|
|
127
125
|
repeated Item items = 6;
|
|
128
126
|
optional OrderState order_state = 7; // Set by service
|
|
129
|
-
|
|
130
|
-
optional io.restorecommerce.
|
|
131
|
-
|
|
132
|
-
optional
|
|
133
|
-
optional
|
|
134
|
-
optional string
|
|
135
|
-
optional
|
|
136
|
-
optional string customer_remark = 15;
|
|
137
|
-
optional io.restorecommerce.fulfillment_product.Preferences packaging_preferences = 16;
|
|
127
|
+
repeated io.restorecommerce.amount.Amount total_amounts = 8; // Set by service --- repeated in case of variant currency?
|
|
128
|
+
optional io.restorecommerce.address.ShippingAddress shipping_address = 9;
|
|
129
|
+
optional io.restorecommerce.address.BillingAddress billing_address = 10;
|
|
130
|
+
optional string notification_email = 11;
|
|
131
|
+
optional string customer_order_nr = 12;
|
|
132
|
+
optional string customer_remark = 13;
|
|
133
|
+
optional io.restorecommerce.fulfillment_product.Preferences packaging_preferences = 14;
|
|
138
134
|
}
|
|
139
135
|
|
|
140
136
|
message OrderIdList {
|
|
@@ -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";
|
|
@@ -125,15 +127,7 @@ message IndividualProduct {
|
|
|
125
127
|
}
|
|
126
128
|
];
|
|
127
129
|
}
|
|
128
|
-
repeated string tax_ids = 8
|
|
129
|
-
(io.restorecommerce.options.resolver) = {
|
|
130
|
-
target_type: ".io.restorecommerce.tax.Tax",
|
|
131
|
-
target_service: "master_data",
|
|
132
|
-
target_sub_service: "tax",
|
|
133
|
-
target_method: "Read",
|
|
134
|
-
field_name: "tax",
|
|
135
|
-
}
|
|
136
|
-
];
|
|
130
|
+
repeated string tax_ids = 8;
|
|
137
131
|
optional string gtin = 10;
|
|
138
132
|
oneof nature {
|
|
139
133
|
PhysicalProduct physical = 11;
|
|
@@ -188,15 +182,7 @@ message PhysicalVariant {
|
|
|
188
182
|
optional string stock_keeping_unit = 8;
|
|
189
183
|
optional string parent_variant_id = 9;
|
|
190
184
|
repeated io.restorecommerce.property.Property properties = 10;
|
|
191
|
-
repeated string tax_ids = 11
|
|
192
|
-
(io.restorecommerce.options.resolver) = {
|
|
193
|
-
target_type: ".io.restorecommerce.tax.Tax",
|
|
194
|
-
target_service: "master_data",
|
|
195
|
-
target_sub_service: "tax",
|
|
196
|
-
target_method: "Read",
|
|
197
|
-
field_name: "tax",
|
|
198
|
-
}
|
|
199
|
-
];
|
|
185
|
+
repeated string tax_ids = 11;
|
|
200
186
|
optional Package package = 12;
|
|
201
187
|
}
|
|
202
188
|
|
|
@@ -211,15 +197,7 @@ message ServiceVariant {
|
|
|
211
197
|
optional string stock_keeping_unit = 8;
|
|
212
198
|
optional string parent_variant_id = 9;
|
|
213
199
|
repeated io.restorecommerce.property.Property properties = 10;
|
|
214
|
-
repeated string tax_ids = 11
|
|
215
|
-
(io.restorecommerce.options.resolver) = {
|
|
216
|
-
target_type: ".io.restorecommerce.tax.Tax",
|
|
217
|
-
target_service: "master_data",
|
|
218
|
-
target_sub_service: "tax",
|
|
219
|
-
target_method: "Read",
|
|
220
|
-
field_name: "tax",
|
|
221
|
-
}
|
|
222
|
-
];
|
|
200
|
+
repeated string tax_ids = 11;
|
|
223
201
|
}
|
|
224
202
|
|
|
225
203
|
message VirtualVariant {
|
|
@@ -233,15 +211,7 @@ message VirtualVariant {
|
|
|
233
211
|
optional string stock_keeping_unit = 8;
|
|
234
212
|
optional string parent_variant_id = 9;
|
|
235
213
|
repeated io.restorecommerce.property.Property properties = 10;
|
|
236
|
-
repeated string tax_ids = 11
|
|
237
|
-
(io.restorecommerce.options.resolver) = {
|
|
238
|
-
target_type: ".io.restorecommerce.tax.Tax",
|
|
239
|
-
target_service: "master_data",
|
|
240
|
-
target_sub_service: "tax",
|
|
241
|
-
target_method: "Read",
|
|
242
|
-
field_name: "tax",
|
|
243
|
-
}
|
|
244
|
-
];
|
|
214
|
+
repeated string tax_ids = 11;
|
|
245
215
|
}
|
|
246
216
|
|
|
247
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.8.
|
|
3
|
+
"version": "6.8.2",
|
|
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": "a612bb7c4da0d4aeebdabe4d5b9c4f15224188a1"
|
|
19
19
|
}
|