@restorecommerce/protos 6.0.0 → 6.1.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 +27 -0
- package/echo/echo.proto +4 -4
- package/io/restorecommerce/access_control.proto +8 -8
- package/io/restorecommerce/address.proto +6 -6
- package/io/restorecommerce/auth.proto +3 -3
- package/io/restorecommerce/authentication_log.proto +6 -6
- package/io/restorecommerce/code.proto +5 -5
- package/io/restorecommerce/command.proto +5 -5
- package/io/restorecommerce/commandinterface.proto +2 -2
- package/io/restorecommerce/contact_point.proto +6 -6
- package/io/restorecommerce/contact_point_type.proto +6 -6
- package/io/restorecommerce/country.proto +6 -6
- package/io/restorecommerce/credential.proto +6 -6
- package/io/restorecommerce/currency.proto +10 -10
- package/io/restorecommerce/customer.proto +5 -5
- package/io/restorecommerce/file.proto +1 -1
- package/io/restorecommerce/filter.proto +5 -5
- package/io/restorecommerce/fulfillment.proto +14 -15
- package/io/restorecommerce/fulfillment_courier.proto +7 -7
- package/io/restorecommerce/fulfillment_product.proto +13 -12
- package/io/restorecommerce/graph.proto +9 -9
- package/io/restorecommerce/image.proto +1 -1
- package/io/restorecommerce/invoice.proto +10 -10
- package/io/restorecommerce/job.proto +7 -7
- package/io/restorecommerce/locale.proto +6 -6
- package/io/restorecommerce/location.proto +6 -6
- package/io/restorecommerce/manufacturer.proto +6 -6
- package/io/restorecommerce/notification.proto +6 -6
- package/io/restorecommerce/notification_channel.proto +6 -6
- package/io/restorecommerce/oauth.proto +9 -9
- package/io/restorecommerce/order.proto +18 -18
- package/io/restorecommerce/organization.proto +7 -7
- package/io/restorecommerce/ostorage.proto +57 -57
- package/io/restorecommerce/payment.proto +15 -15
- package/io/restorecommerce/payment_method.proto +6 -6
- package/io/restorecommerce/policy.proto +5 -5
- package/io/restorecommerce/policy_set.proto +5 -5
- package/io/restorecommerce/price_group.proto +6 -6
- package/io/restorecommerce/product.proto +8 -8
- package/io/restorecommerce/product_category.proto +6 -6
- package/io/restorecommerce/product_prototype.proto +6 -6
- package/io/restorecommerce/rendering.proto +8 -8
- package/io/restorecommerce/resource_base.proto +12 -12
- package/io/restorecommerce/role.proto +6 -6
- package/io/restorecommerce/rule.proto +5 -5
- package/io/restorecommerce/search.proto +1 -1
- package/io/restorecommerce/shop.proto +5 -5
- package/io/restorecommerce/status.proto +7 -7
- package/io/restorecommerce/tax.proto +6 -6
- package/io/restorecommerce/tax_type.proto +5 -5
- package/io/restorecommerce/timezone.proto +6 -6
- package/io/restorecommerce/user.proto +81 -81
- package/package.json +2 -2
- package/test/test.proto +30 -30
- package/google/protobuf/struct.proto +0 -96
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,33 @@
|
|
|
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.1.1](https://github.com/restorecommerce/libs/compare/@restorecommerce/protos@6.1.0...@restorecommerce/protos@6.1.1) (2023-09-18)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @restorecommerce/protos
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [6.1.0](https://github.com/restorecommerce/libs/compare/@restorecommerce/protos@6.0.0...@restorecommerce/protos@6.1.0) (2023-09-18)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Bug Fixes
|
|
18
|
+
|
|
19
|
+
* **fulfillment_courier:** shop_ids should be repeated ([b9bfa2e](https://github.com/restorecommerce/libs/commit/b9bfa2ec37385fa29bfc4e061eb8faaa3ae97635))
|
|
20
|
+
* **fulfillment:** fix fulfillment protos ([8c2ed99](https://github.com/restorecommerce/libs/commit/8c2ed99168ff7bb14b61657cd1264a8a1d6760a4))
|
|
21
|
+
* **product.proto:** add missing optional modifiers in product.proto ([9b85ee5](https://github.com/restorecommerce/libs/commit/9b85ee5eb7efd98a5c1a7f9d540702f11908f8c1))
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
### Features
|
|
25
|
+
|
|
26
|
+
* **protos:** made all fields optional ([09e6f94](https://github.com/restorecommerce/libs/commit/09e6f9440a44160b6f5b3fd548d6a289b1ab7004))
|
|
27
|
+
* regenrate rc-grpc-clients with initializeFieldsAsUndefined as false and fixed facade typings ([685d9b5](https://github.com/restorecommerce/libs/commit/685d9b5be92833ba475f46c6b0d4234ac7125211))
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
6
33
|
# [6.0.0](https://github.com/restorecommerce/libs/compare/@restorecommerce/protos@5.0.1...@restorecommerce/protos@6.0.0) (2023-08-01)
|
|
7
34
|
|
|
8
35
|
|
package/echo/echo.proto
CHANGED
|
@@ -14,11 +14,11 @@ service EchoService {
|
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
message EchoRequest {
|
|
17
|
-
string message = 1;
|
|
18
|
-
google.protobuf.Any test = 2;
|
|
17
|
+
optional string message = 1;
|
|
18
|
+
optional google.protobuf.Any test = 2;
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
message EchoResponse {
|
|
22
|
-
string message = 1;
|
|
23
|
-
google.protobuf.Any test = 2;
|
|
22
|
+
optional string message = 1;
|
|
23
|
+
optional google.protobuf.Any test = 2;
|
|
24
24
|
}
|
|
@@ -14,16 +14,16 @@ import "io/restorecommerce/options.proto";
|
|
|
14
14
|
*/
|
|
15
15
|
|
|
16
16
|
message Request {
|
|
17
|
-
io.restorecommerce.rule.Target target = 1;
|
|
17
|
+
optional io.restorecommerce.rule.Target target = 1;
|
|
18
18
|
// generic data structure which can be provided
|
|
19
19
|
// to a contextQuery (see io/restorecommerce/rule.proto)
|
|
20
|
-
Context context = 2;
|
|
20
|
+
optional Context context = 2;
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
message Context {
|
|
24
|
-
google.protobuf.Any subject = 1;
|
|
24
|
+
optional google.protobuf.Any subject = 1;
|
|
25
25
|
repeated google.protobuf.Any resources = 2;
|
|
26
|
-
google.protobuf.Any security = 3;
|
|
26
|
+
optional google.protobuf.Any security = 3;
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
message Response {
|
|
@@ -33,16 +33,16 @@ message Response {
|
|
|
33
33
|
NOT_APPLICABLE = 2;
|
|
34
34
|
INDETERMINATE = 3;
|
|
35
35
|
}
|
|
36
|
-
Decision decision = 1;
|
|
36
|
+
optional Decision decision = 1;
|
|
37
37
|
repeated io.restorecommerce.attribute.Attribute obligations = 2;
|
|
38
|
-
bool evaluation_cacheable = 3;
|
|
39
|
-
io.restorecommerce.status.OperationStatus operation_status = 4;
|
|
38
|
+
optional bool evaluation_cacheable = 3;
|
|
39
|
+
optional io.restorecommerce.status.OperationStatus operation_status = 4;
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
message ReverseQuery {
|
|
43
43
|
repeated io.restorecommerce.policy_set.PolicySetRQ policy_sets = 1;
|
|
44
44
|
repeated io.restorecommerce.attribute.Attribute obligations = 2;
|
|
45
|
-
io.restorecommerce.status.OperationStatus operation_status = 3;
|
|
45
|
+
optional io.restorecommerce.status.OperationStatus operation_status = 3;
|
|
46
46
|
}
|
|
47
47
|
|
|
48
48
|
service AccessControlService {
|
|
@@ -25,24 +25,24 @@ service AddressService {
|
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
message Deleted {
|
|
28
|
-
string id = 1;
|
|
28
|
+
optional string id = 1;
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
message AddressList {
|
|
32
32
|
repeated Address items = 1;
|
|
33
33
|
optional uint32 total_count = 2;
|
|
34
|
-
io.restorecommerce.auth.Subject subject = 3;
|
|
34
|
+
optional io.restorecommerce.auth.Subject subject = 3;
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
message AddressListResponse {
|
|
38
38
|
repeated AddressResponse items = 1;
|
|
39
|
-
uint32 total_count = 2;
|
|
40
|
-
io.restorecommerce.status.OperationStatus operation_status = 3;
|
|
39
|
+
optional uint32 total_count = 2;
|
|
40
|
+
optional io.restorecommerce.status.OperationStatus operation_status = 3;
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
message AddressResponse {
|
|
44
|
-
Address payload = 1;
|
|
45
|
-
io.restorecommerce.status.Status status = 2;
|
|
44
|
+
optional Address payload = 1;
|
|
45
|
+
optional io.restorecommerce.status.Status status = 2;
|
|
46
46
|
}
|
|
47
47
|
|
|
48
48
|
message GeoPoint {
|
|
@@ -38,11 +38,11 @@ message RoleAssociation {
|
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
message HierarchicalScopesRequest {
|
|
41
|
-
string token = 1;
|
|
41
|
+
optional string token = 1;
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
message HierarchicalScopesResponse {
|
|
45
|
-
string subject_id = 1;
|
|
45
|
+
optional string subject_id = 1;
|
|
46
46
|
repeated HierarchicalScope hierarchical_scopes = 2;
|
|
47
|
-
string token = 3;
|
|
47
|
+
optional string token = 3;
|
|
48
48
|
}
|
|
@@ -25,18 +25,18 @@ service AuthenticationLogService {
|
|
|
25
25
|
message AuthenticationLogList {
|
|
26
26
|
repeated AuthenticationLog items = 1;
|
|
27
27
|
optional uint32 total_count = 2;
|
|
28
|
-
io.restorecommerce.auth.Subject subject = 3;
|
|
28
|
+
optional io.restorecommerce.auth.Subject subject = 3;
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
message AuthenticationLogListResponse {
|
|
32
32
|
repeated AuthenticationLogResponse items = 1;
|
|
33
|
-
uint32 total_count = 2;
|
|
34
|
-
io.restorecommerce.status.OperationStatus operation_status = 3;
|
|
33
|
+
optional uint32 total_count = 2;
|
|
34
|
+
optional io.restorecommerce.status.OperationStatus operation_status = 3;
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
message AuthenticationLogResponse {
|
|
38
|
-
AuthenticationLog payload = 1;
|
|
39
|
-
io.restorecommerce.status.Status status = 2;
|
|
38
|
+
optional AuthenticationLog payload = 1;
|
|
39
|
+
optional io.restorecommerce.status.Status status = 2;
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
/**
|
|
@@ -56,5 +56,5 @@ message AuthenticationLog {
|
|
|
56
56
|
}
|
|
57
57
|
|
|
58
58
|
message Deleted {
|
|
59
|
-
string id = 1;
|
|
59
|
+
optional string id = 1;
|
|
60
60
|
}
|
|
@@ -21,18 +21,18 @@ service CodeService {
|
|
|
21
21
|
message CodeList {
|
|
22
22
|
repeated Code items = 1;
|
|
23
23
|
optional uint32 total_count = 2;
|
|
24
|
-
io.restorecommerce.auth.Subject subject = 3;
|
|
24
|
+
optional io.restorecommerce.auth.Subject subject = 3;
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
message CodeListResponse {
|
|
28
28
|
repeated CodeResponse items = 1;
|
|
29
|
-
uint32 total_count = 2;
|
|
30
|
-
io.restorecommerce.status.OperationStatus operation_status = 3;
|
|
29
|
+
optional uint32 total_count = 2;
|
|
30
|
+
optional io.restorecommerce.status.OperationStatus operation_status = 3;
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
message CodeResponse {
|
|
34
|
-
Code payload = 1;
|
|
35
|
-
io.restorecommerce.status.Status status = 2;
|
|
34
|
+
optional Code payload = 1;
|
|
35
|
+
optional io.restorecommerce.status.Status status = 2;
|
|
36
36
|
}
|
|
37
37
|
|
|
38
38
|
message Code {
|
|
@@ -35,18 +35,18 @@ message CommandParameter {
|
|
|
35
35
|
message CommandList {
|
|
36
36
|
repeated Command items = 1;
|
|
37
37
|
optional uint32 total_count = 2;
|
|
38
|
-
io.restorecommerce.auth.Subject subject = 3;
|
|
38
|
+
optional io.restorecommerce.auth.Subject subject = 3;
|
|
39
39
|
}
|
|
40
40
|
|
|
41
41
|
message CommandListResponse {
|
|
42
42
|
repeated CommandResponse items = 1;
|
|
43
|
-
uint32 total_count = 2;
|
|
44
|
-
io.restorecommerce.status.OperationStatus operation_status = 3;
|
|
43
|
+
optional uint32 total_count = 2;
|
|
44
|
+
optional io.restorecommerce.status.OperationStatus operation_status = 3;
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
message CommandResponse {
|
|
48
|
-
Command payload = 1;
|
|
49
|
-
io.restorecommerce.status.Status status = 2;
|
|
48
|
+
optional Command payload = 1;
|
|
49
|
+
optional io.restorecommerce.status.Status status = 2;
|
|
50
50
|
}
|
|
51
51
|
|
|
52
52
|
service CommandService {
|
|
@@ -11,7 +11,7 @@ message CommandRequest {
|
|
|
11
11
|
// command identifier (used to demultiplex operation in the command implementation)
|
|
12
12
|
optional string name = 1;
|
|
13
13
|
optional google.protobuf.Any payload = 2; // variable payload
|
|
14
|
-
io.restorecommerce.auth.Subject subject = 3;
|
|
14
|
+
optional io.restorecommerce.auth.Subject subject = 3;
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
// used to push responses to Kafka
|
|
@@ -20,7 +20,7 @@ message CommandResponse {
|
|
|
20
20
|
// (multiple services may reply to one system command)
|
|
21
21
|
// (multiple service names can be bound to one microservice)
|
|
22
22
|
repeated string services = 1;
|
|
23
|
-
google.protobuf.Any payload = 2; // variable payload
|
|
23
|
+
optional google.protobuf.Any payload = 2; // variable payload
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
/**
|
|
@@ -25,24 +25,24 @@ service ContactPointService {
|
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
message Deleted {
|
|
28
|
-
string id = 1;
|
|
28
|
+
optional string id = 1;
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
message ContactPointList {
|
|
32
32
|
repeated ContactPoint items = 1;
|
|
33
33
|
optional uint32 total_count = 2;
|
|
34
|
-
io.restorecommerce.auth.Subject subject = 3;
|
|
34
|
+
optional io.restorecommerce.auth.Subject subject = 3;
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
message ContactPointListResponse {
|
|
38
38
|
repeated ContactPointResponse items = 1;
|
|
39
|
-
uint32 total_count = 2;
|
|
40
|
-
io.restorecommerce.status.OperationStatus operation_status = 3;
|
|
39
|
+
optional uint32 total_count = 2;
|
|
40
|
+
optional io.restorecommerce.status.OperationStatus operation_status = 3;
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
message ContactPointResponse {
|
|
44
|
-
ContactPoint payload = 1;
|
|
45
|
-
io.restorecommerce.status.Status status = 2;
|
|
44
|
+
optional ContactPoint payload = 1;
|
|
45
|
+
optional io.restorecommerce.status.Status status = 2;
|
|
46
46
|
}
|
|
47
47
|
|
|
48
48
|
message ContactPoint {
|
|
@@ -22,13 +22,13 @@ service ContactPointTypeService {
|
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
message Deleted {
|
|
25
|
-
string id = 1;
|
|
25
|
+
optional string id = 1;
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
message ContactPointTypeList {
|
|
29
29
|
repeated ContactPointType items = 1;
|
|
30
30
|
optional uint32 total_count = 2;
|
|
31
|
-
io.restorecommerce.auth.Subject subject = 3;
|
|
31
|
+
optional io.restorecommerce.auth.Subject subject = 3;
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
message ContactPointType {
|
|
@@ -39,11 +39,11 @@ message ContactPointType {
|
|
|
39
39
|
|
|
40
40
|
message ContactPointTypeListResponse {
|
|
41
41
|
repeated ContactPointTypeResponse items = 1;
|
|
42
|
-
uint32 total_count = 2;
|
|
43
|
-
io.restorecommerce.status.OperationStatus operation_status = 3;
|
|
42
|
+
optional uint32 total_count = 2;
|
|
43
|
+
optional io.restorecommerce.status.OperationStatus operation_status = 3;
|
|
44
44
|
}
|
|
45
45
|
|
|
46
46
|
message ContactPointTypeResponse {
|
|
47
|
-
ContactPointType payload = 1;
|
|
48
|
-
io.restorecommerce.status.Status status = 2;
|
|
47
|
+
optional ContactPointType payload = 1;
|
|
48
|
+
optional io.restorecommerce.status.Status status = 2;
|
|
49
49
|
}
|
|
@@ -22,24 +22,24 @@ service CountryService {
|
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
message Deleted {
|
|
25
|
-
string id = 1;
|
|
25
|
+
optional string id = 1;
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
message CountryList {
|
|
29
29
|
repeated Country items = 1;
|
|
30
30
|
optional uint32 total_count = 2;
|
|
31
|
-
io.restorecommerce.auth.Subject subject = 3;
|
|
31
|
+
optional io.restorecommerce.auth.Subject subject = 3;
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
message CountryListResponse {
|
|
35
35
|
repeated CountryResponse items = 1;
|
|
36
|
-
uint32 total_count = 2;
|
|
37
|
-
io.restorecommerce.status.OperationStatus operation_status = 3;
|
|
36
|
+
optional uint32 total_count = 2;
|
|
37
|
+
optional io.restorecommerce.status.OperationStatus operation_status = 3;
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
message CountryResponse {
|
|
41
|
-
Country payload = 1;
|
|
42
|
-
io.restorecommerce.status.Status status = 2;
|
|
41
|
+
optional Country payload = 1;
|
|
42
|
+
optional io.restorecommerce.status.Status status = 2;
|
|
43
43
|
}
|
|
44
44
|
|
|
45
45
|
message Country {
|
|
@@ -20,24 +20,24 @@ service CredentialService {
|
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
message Deleted {
|
|
23
|
-
string id = 1;
|
|
23
|
+
optional string id = 1;
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
message CredentialList {
|
|
27
27
|
repeated Credential items = 1;
|
|
28
28
|
optional uint32 total_count = 2;
|
|
29
|
-
io.restorecommerce.auth.Subject subject = 3;
|
|
29
|
+
optional io.restorecommerce.auth.Subject subject = 3;
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
message CredentialListResponse {
|
|
33
33
|
repeated CredentialResponse items = 1;
|
|
34
|
-
uint32 total_count = 2;
|
|
35
|
-
io.restorecommerce.status.OperationStatus operation_status = 3;
|
|
34
|
+
optional uint32 total_count = 2;
|
|
35
|
+
optional io.restorecommerce.status.OperationStatus operation_status = 3;
|
|
36
36
|
}
|
|
37
37
|
|
|
38
38
|
message CredentialResponse {
|
|
39
|
-
Credential payload = 1;
|
|
40
|
-
io.restorecommerce.status.Status status = 2;
|
|
39
|
+
optional Credential payload = 1;
|
|
40
|
+
optional io.restorecommerce.status.Status status = 2;
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
message Credential {
|
|
@@ -24,24 +24,24 @@ service CurrencyService {
|
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
message Deleted {
|
|
27
|
-
string id = 1;
|
|
27
|
+
optional string id = 1;
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
message CurrencyList {
|
|
31
31
|
repeated Currency items = 1;
|
|
32
32
|
optional uint32 total_count = 2;
|
|
33
|
-
io.restorecommerce.auth.Subject subject = 3;
|
|
33
|
+
optional io.restorecommerce.auth.Subject subject = 3;
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
message CurrencyListResponse {
|
|
37
37
|
repeated CurrencyResponse items = 1;
|
|
38
|
-
uint32 total_count = 2;
|
|
39
|
-
io.restorecommerce.status.OperationStatus operation_status = 3;
|
|
38
|
+
optional uint32 total_count = 2;
|
|
39
|
+
optional io.restorecommerce.status.OperationStatus operation_status = 3;
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
message CurrencyResponse {
|
|
43
|
-
Currency payload = 1;
|
|
44
|
-
io.restorecommerce.status.Status status = 2;
|
|
43
|
+
optional Currency payload = 1;
|
|
44
|
+
optional io.restorecommerce.status.Status status = 2;
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
message Currency {
|
|
@@ -74,17 +74,17 @@ message ExchangeRateQuery {
|
|
|
74
74
|
message ExchangeRateQueryList {
|
|
75
75
|
repeated ExchangeRate items = 1;
|
|
76
76
|
optional uint32 total_count = 2;
|
|
77
|
-
io.restorecommerce.auth.Subject subject = 3;
|
|
77
|
+
optional io.restorecommerce.auth.Subject subject = 3;
|
|
78
78
|
}
|
|
79
79
|
|
|
80
80
|
message ExchangeRateResponse {
|
|
81
81
|
optional string from_currency_id = 1;
|
|
82
|
-
ExchangeRate payload = 3;
|
|
82
|
+
optional ExchangeRate payload = 3;
|
|
83
83
|
optional google.protobuf.Timestamp timestamp = 2;
|
|
84
|
-
io.restorecommerce.status.Status status = 4;
|
|
84
|
+
optional io.restorecommerce.status.Status status = 4;
|
|
85
85
|
}
|
|
86
86
|
|
|
87
87
|
message ExchangeRateListResponse {
|
|
88
88
|
repeated ExchangeRateResponse items = 1;
|
|
89
|
-
io.restorecommerce.status.OperationStatus operation_status = 3;
|
|
89
|
+
optional io.restorecommerce.status.OperationStatus operation_status = 3;
|
|
90
90
|
}
|
|
@@ -29,18 +29,18 @@ service CustomerService {
|
|
|
29
29
|
message CustomerList {
|
|
30
30
|
repeated Customer items = 1;
|
|
31
31
|
optional uint32 total_count = 2;
|
|
32
|
-
io.restorecommerce.auth.Subject subject = 3;
|
|
32
|
+
optional io.restorecommerce.auth.Subject subject = 3;
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
message CustomerListResponse {
|
|
36
36
|
repeated CustomerResponse items = 1;
|
|
37
|
-
uint32 total_count = 2;
|
|
38
|
-
io.restorecommerce.status.OperationStatus operation_status = 3;
|
|
37
|
+
optional uint32 total_count = 2;
|
|
38
|
+
optional io.restorecommerce.status.OperationStatus operation_status = 3;
|
|
39
39
|
}
|
|
40
40
|
|
|
41
41
|
message CustomerResponse {
|
|
42
|
-
Customer payload = 1;
|
|
43
|
-
io.restorecommerce.status.Status status = 2;
|
|
42
|
+
optional Customer payload = 1;
|
|
43
|
+
optional io.restorecommerce.status.Status status = 2;
|
|
44
44
|
}
|
|
45
45
|
|
|
46
46
|
message Customer {
|
|
@@ -3,7 +3,7 @@ syntax = "proto3";
|
|
|
3
3
|
package io.restorecommerce.filter;
|
|
4
4
|
|
|
5
5
|
message Filter {
|
|
6
|
-
string field = 1;
|
|
6
|
+
optional string field = 1;
|
|
7
7
|
enum Operation {
|
|
8
8
|
eq = 0;
|
|
9
9
|
lt = 1;
|
|
@@ -15,8 +15,8 @@ message Filter {
|
|
|
15
15
|
in = 7;
|
|
16
16
|
neq = 8;
|
|
17
17
|
}
|
|
18
|
-
Operation operation = 2;
|
|
19
|
-
string value = 3;
|
|
18
|
+
optional Operation operation = 2;
|
|
19
|
+
optional string value = 3;
|
|
20
20
|
enum ValueType {
|
|
21
21
|
STRING = 0; // default value type if not specified
|
|
22
22
|
NUMBER = 1;
|
|
@@ -24,7 +24,7 @@ message Filter {
|
|
|
24
24
|
DATE = 3;
|
|
25
25
|
ARRAY = 4;
|
|
26
26
|
}
|
|
27
|
-
ValueType type = 4;
|
|
27
|
+
optional ValueType type = 4;
|
|
28
28
|
repeated FilterOp filters = 6;
|
|
29
29
|
}
|
|
30
30
|
|
|
@@ -34,5 +34,5 @@ message FilterOp {
|
|
|
34
34
|
and = 0;
|
|
35
35
|
or = 1;
|
|
36
36
|
}
|
|
37
|
-
Operator operator = 2;
|
|
37
|
+
optional Operator operator = 2;
|
|
38
38
|
}
|
|
@@ -81,12 +81,12 @@ service FulfillmentService {
|
|
|
81
81
|
/**
|
|
82
82
|
Requires Invoice Service
|
|
83
83
|
*/
|
|
84
|
-
rpc CreateInvoice (
|
|
84
|
+
rpc CreateInvoice (FulfillmentInvoiceRequestList) returns (io.restorecommerce.invoice.InvoiceListResponse);
|
|
85
85
|
|
|
86
86
|
/**
|
|
87
87
|
Requires Invoice Service
|
|
88
88
|
*/
|
|
89
|
-
rpc TriggerInvoice (
|
|
89
|
+
rpc TriggerInvoice (FulfillmentInvoiceRequestList) returns (io.restorecommerce.status.StatusListResponse);
|
|
90
90
|
}
|
|
91
91
|
|
|
92
92
|
enum State {
|
|
@@ -217,46 +217,45 @@ message FulfillmentList {
|
|
|
217
217
|
}
|
|
218
218
|
|
|
219
219
|
message FulfillmentResponse {
|
|
220
|
-
Fulfillment payload = 1;
|
|
221
|
-
io.restorecommerce.status.Status status = 2;
|
|
220
|
+
optional Fulfillment payload = 1;
|
|
221
|
+
optional io.restorecommerce.status.Status status = 2;
|
|
222
222
|
}
|
|
223
223
|
|
|
224
224
|
message FulfillmentListResponse {
|
|
225
225
|
repeated FulfillmentResponse items = 1;
|
|
226
|
-
uint32 total_count = 2;
|
|
227
|
-
io.restorecommerce.status.OperationStatus operation_status = 3;
|
|
226
|
+
optional uint32 total_count = 2;
|
|
227
|
+
optional io.restorecommerce.status.OperationStatus operation_status = 3;
|
|
228
228
|
}
|
|
229
229
|
|
|
230
230
|
message FulfillmentId {
|
|
231
231
|
optional string id = 1;
|
|
232
232
|
repeated string shipment_numbers = 2; //optional
|
|
233
233
|
optional google.protobuf.Any options = 3;
|
|
234
|
-
optional io.restorecommerce.auth.Subject subject = 4;
|
|
235
234
|
}
|
|
236
235
|
|
|
237
236
|
message FulfillmentIdList {
|
|
238
237
|
repeated FulfillmentId items = 1;
|
|
239
238
|
optional uint32 total_count = 2;
|
|
240
|
-
io.restorecommerce.auth.Subject subject = 3;
|
|
239
|
+
optional io.restorecommerce.auth.Subject subject = 3;
|
|
241
240
|
}
|
|
242
241
|
|
|
243
242
|
message Deleted {
|
|
244
|
-
string id = 1;
|
|
243
|
+
optional string id = 1;
|
|
245
244
|
}
|
|
246
245
|
|
|
247
|
-
message
|
|
246
|
+
message FulfillmentInvoiceSection {
|
|
248
247
|
optional string fulfillment_id = 1;
|
|
249
248
|
repeated string selected_parcels = 2; // selects all on empty
|
|
250
249
|
}
|
|
251
250
|
|
|
252
|
-
message
|
|
251
|
+
message FulfillmentInvoiceRequest {
|
|
253
252
|
optional string invoice_number = 1; // if given
|
|
254
253
|
repeated string payment_hints = 2;
|
|
255
|
-
repeated
|
|
254
|
+
repeated FulfillmentInvoiceSection sections = 3;
|
|
256
255
|
}
|
|
257
256
|
|
|
258
|
-
message
|
|
259
|
-
repeated
|
|
257
|
+
message FulfillmentInvoiceRequestList {
|
|
258
|
+
repeated FulfillmentInvoiceRequest items = 1;
|
|
260
259
|
optional uint32 total_count = 2;
|
|
261
|
-
io.restorecommerce.auth.Subject subject = 3;
|
|
260
|
+
optional io.restorecommerce.auth.Subject subject = 3;
|
|
262
261
|
}
|
|
@@ -37,7 +37,7 @@ message FulfillmentCourier {
|
|
|
37
37
|
|
|
38
38
|
optional string id = 1;
|
|
39
39
|
optional io.restorecommerce.meta.Meta meta = 2;
|
|
40
|
-
|
|
40
|
+
repeated string shop_ids = 3 [
|
|
41
41
|
(io.restorecommerce.options.resolver) = {
|
|
42
42
|
target_type: ".io.restorecommerce.shop.Shop",
|
|
43
43
|
target_service: "master_data",
|
|
@@ -57,21 +57,21 @@ message FulfillmentCourier {
|
|
|
57
57
|
message FulfillmentCourierList {
|
|
58
58
|
repeated FulfillmentCourier items = 1;
|
|
59
59
|
optional uint32 total_count = 2;
|
|
60
|
-
io.restorecommerce.auth.Subject subject = 3;
|
|
60
|
+
optional io.restorecommerce.auth.Subject subject = 3;
|
|
61
61
|
}
|
|
62
62
|
|
|
63
63
|
message FulfillmentCourierResponse {
|
|
64
|
-
FulfillmentCourier payload = 1;
|
|
65
|
-
io.restorecommerce.status.Status status = 2;
|
|
64
|
+
optional FulfillmentCourier payload = 1;
|
|
65
|
+
optional io.restorecommerce.status.Status status = 2;
|
|
66
66
|
}
|
|
67
67
|
|
|
68
68
|
message FulfillmentCourierListResponse {
|
|
69
69
|
repeated FulfillmentCourierResponse items = 1;
|
|
70
|
-
uint32 total_count = 2;
|
|
71
|
-
io.restorecommerce.status.OperationStatus operation_status = 3;
|
|
70
|
+
optional uint32 total_count = 2;
|
|
71
|
+
optional io.restorecommerce.status.OperationStatus operation_status = 3;
|
|
72
72
|
}
|
|
73
73
|
|
|
74
74
|
message Deleted {
|
|
75
|
-
string id = 1;
|
|
75
|
+
optional string id = 1;
|
|
76
76
|
}
|
|
77
77
|
|
|
@@ -24,7 +24,7 @@ service FulfillmentProductService {
|
|
|
24
24
|
rpc Read (io.restorecommerce.resourcebase.ReadRequest) returns (FulfillmentProductListResponse) {
|
|
25
25
|
option (io.restorecommerce.options.is_query) = true;
|
|
26
26
|
};
|
|
27
|
-
rpc Find (
|
|
27
|
+
rpc Find (PackingSolutionQueryList) returns (PackingSolutionListResponse) {
|
|
28
28
|
option (io.restorecommerce.options.is_query) = true;
|
|
29
29
|
};
|
|
30
30
|
rpc Create (FulfillmentProductList) returns (FulfillmentProductListResponse);
|
|
@@ -38,7 +38,7 @@ message Preferences {
|
|
|
38
38
|
repeated io.restorecommerce.attribute.Attribute options = 2;
|
|
39
39
|
}
|
|
40
40
|
|
|
41
|
-
message
|
|
41
|
+
message PackingSolutionQuery {
|
|
42
42
|
optional string customer_id = 1 [
|
|
43
43
|
(io.restorecommerce.options.resolver) = {
|
|
44
44
|
target_type: ".io.restorecommerce.customer.Customer",
|
|
@@ -64,10 +64,10 @@ message ProductQuery {
|
|
|
64
64
|
optional io.restorecommerce.reference.Reference reference = 7;
|
|
65
65
|
}
|
|
66
66
|
|
|
67
|
-
message
|
|
68
|
-
repeated
|
|
67
|
+
message PackingSolutionQueryList {
|
|
68
|
+
repeated PackingSolutionQuery items = 1;
|
|
69
69
|
optional uint32 total_count = 2;
|
|
70
|
-
io.restorecommerce.auth.Subject subject = 3;
|
|
70
|
+
optional io.restorecommerce.auth.Subject subject = 3;
|
|
71
71
|
}
|
|
72
72
|
|
|
73
73
|
message FulfillmentProduct {
|
|
@@ -106,23 +106,24 @@ message Variant {
|
|
|
106
106
|
optional io.restorecommerce.price.Price price = 4;
|
|
107
107
|
optional io.restorecommerce.geometry.BoundingBox3D max_size = 6;
|
|
108
108
|
optional double max_weight = 7;
|
|
109
|
+
repeated io.restorecommerce.attribute.Attribute attributes = 8;
|
|
109
110
|
}
|
|
110
111
|
|
|
111
112
|
message FulfillmentProductList {
|
|
112
113
|
repeated FulfillmentProduct items = 1;
|
|
113
114
|
optional uint32 total_count = 2;
|
|
114
|
-
io.restorecommerce.auth.Subject subject = 3;
|
|
115
|
+
optional io.restorecommerce.auth.Subject subject = 3;
|
|
115
116
|
}
|
|
116
117
|
|
|
117
118
|
message FulfillmentProductResponse {
|
|
118
|
-
FulfillmentProduct payload = 1;
|
|
119
|
-
io.restorecommerce.status.Status status = 2;
|
|
119
|
+
optional FulfillmentProduct payload = 1;
|
|
120
|
+
optional io.restorecommerce.status.Status status = 2;
|
|
120
121
|
}
|
|
121
122
|
|
|
122
123
|
message FulfillmentProductListResponse {
|
|
123
124
|
repeated FulfillmentProductResponse items = 1;
|
|
124
|
-
uint32 total_count = 2;
|
|
125
|
-
io.restorecommerce.status.OperationStatus operation_status = 3;
|
|
125
|
+
optional uint32 total_count = 2;
|
|
126
|
+
optional io.restorecommerce.status.OperationStatus operation_status = 3;
|
|
126
127
|
}
|
|
127
128
|
|
|
128
129
|
message PackingSolution {
|
|
@@ -142,9 +143,9 @@ message PackingSolutionResponse {
|
|
|
142
143
|
message PackingSolutionListResponse {
|
|
143
144
|
repeated PackingSolutionResponse items = 1;
|
|
144
145
|
optional uint32 total_count = 2;
|
|
145
|
-
io.restorecommerce.status.OperationStatus operation_status = 3;
|
|
146
|
+
optional io.restorecommerce.status.OperationStatus operation_status = 3;
|
|
146
147
|
}
|
|
147
148
|
|
|
148
149
|
message Deleted {
|
|
149
|
-
string id = 1;
|
|
150
|
+
optional string id = 1;
|
|
150
151
|
}
|