@restorecommerce/protos 5.0.1 → 6.1.0
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 +35 -0
- 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 +60 -29
- package/io/restorecommerce/fulfillment_courier.proto +20 -8
- package/io/restorecommerce/fulfillment_product.proto +36 -18
- 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 +24 -22
- 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.proto +0 -10
- package/io/restorecommerce/price_group.proto +6 -6
- package/io/restorecommerce/product.proto +26 -16
- 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 -6
- 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/google/protobuf/struct.proto +0 -96
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,41 @@
|
|
|
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.0](https://github.com/restorecommerce/libs/compare/@restorecommerce/protos@6.0.0...@restorecommerce/protos@6.1.0) (2023-09-18)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **fulfillment_courier:** shop_ids should be repeated ([b9bfa2e](https://github.com/restorecommerce/libs/commit/b9bfa2ec37385fa29bfc4e061eb8faaa3ae97635))
|
|
12
|
+
* **fulfillment:** fix fulfillment protos ([8c2ed99](https://github.com/restorecommerce/libs/commit/8c2ed99168ff7bb14b61657cd1264a8a1d6760a4))
|
|
13
|
+
* **product.proto:** add missing optional modifiers in product.proto ([9b85ee5](https://github.com/restorecommerce/libs/commit/9b85ee5eb7efd98a5c1a7f9d540702f11908f8c1))
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
### Features
|
|
17
|
+
|
|
18
|
+
* **protos:** made all fields optional ([09e6f94](https://github.com/restorecommerce/libs/commit/09e6f9440a44160b6f5b3fd548d6a289b1ab7004))
|
|
19
|
+
* regenrate rc-grpc-clients with initializeFieldsAsUndefined as false and fixed facade typings ([685d9b5](https://github.com/restorecommerce/libs/commit/685d9b5be92833ba475f46c6b0d4234ac7125211))
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
# [6.0.0](https://github.com/restorecommerce/libs/compare/@restorecommerce/protos@5.0.1...@restorecommerce/protos@6.0.0) (2023-08-01)
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
### Bug Fixes
|
|
29
|
+
|
|
30
|
+
* **fulfillment, order, price, product, shop:** fix missing resolvers, enum style guide, naming ([103172c](https://github.com/restorecommerce/libs/commit/103172c9b2e1544a88257cededc1b39a2731fd8c))
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
### BREAKING CHANGES
|
|
34
|
+
|
|
35
|
+
* **fulfillment, order, price, product, shop:** changes in product require adjustments in example data
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
|
|
6
41
|
## [5.0.1](https://github.com/restorecommerce/libs/compare/@restorecommerce/protos@5.0.0...@restorecommerce/protos@5.0.1) (2023-07-25)
|
|
7
42
|
|
|
8
43
|
|
|
@@ -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
|
}
|
|
@@ -17,6 +17,11 @@ import "io/restorecommerce/amount.proto";
|
|
|
17
17
|
import "io/restorecommerce/invoice.proto";
|
|
18
18
|
import "google/protobuf/timestamp.proto";
|
|
19
19
|
|
|
20
|
+
// Used by resolvers
|
|
21
|
+
import "io/restorecommerce/user.proto";
|
|
22
|
+
import "io/restorecommerce/customer.proto";
|
|
23
|
+
import "io/restorecommerce/shop.proto";
|
|
24
|
+
|
|
20
25
|
/**
|
|
21
26
|
Microservice definition.
|
|
22
27
|
*/
|
|
@@ -76,12 +81,12 @@ service FulfillmentService {
|
|
|
76
81
|
/**
|
|
77
82
|
Requires Invoice Service
|
|
78
83
|
*/
|
|
79
|
-
rpc CreateInvoice (
|
|
84
|
+
rpc CreateInvoice (FulfillmentInvoiceRequestList) returns (io.restorecommerce.invoice.InvoiceListResponse);
|
|
80
85
|
|
|
81
86
|
/**
|
|
82
87
|
Requires Invoice Service
|
|
83
88
|
*/
|
|
84
|
-
rpc TriggerInvoice (
|
|
89
|
+
rpc TriggerInvoice (FulfillmentInvoiceRequestList) returns (io.restorecommerce.status.StatusListResponse);
|
|
85
90
|
}
|
|
86
91
|
|
|
87
92
|
enum State {
|
|
@@ -133,14 +138,13 @@ message Label {
|
|
|
133
138
|
}
|
|
134
139
|
|
|
135
140
|
message Packaging {
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
optional io.restorecommerce.address.ShippingAddress
|
|
139
|
-
optional
|
|
140
|
-
optional string
|
|
141
|
-
optional string
|
|
142
|
-
optional string
|
|
143
|
-
optional string invoice_number = 8;
|
|
141
|
+
repeated Parcel parcels = 1;
|
|
142
|
+
optional io.restorecommerce.address.ShippingAddress sender = 2;
|
|
143
|
+
optional io.restorecommerce.address.ShippingAddress recipient = 3;
|
|
144
|
+
optional string notify = 4;
|
|
145
|
+
optional string export_type = 5;
|
|
146
|
+
optional string export_description = 6;
|
|
147
|
+
optional string invoice_number = 7;
|
|
144
148
|
}
|
|
145
149
|
|
|
146
150
|
message Event {
|
|
@@ -170,12 +174,40 @@ message Fulfillment {
|
|
|
170
174
|
};
|
|
171
175
|
|
|
172
176
|
optional string id = 1;
|
|
173
|
-
optional
|
|
174
|
-
optional
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
177
|
+
optional io.restorecommerce.meta.Meta meta = 2;
|
|
178
|
+
optional string user_id = 3 [
|
|
179
|
+
(io.restorecommerce.options.resolver) = {
|
|
180
|
+
target_type: ".io.restorecommerce.user.User",
|
|
181
|
+
target_service: "identity",
|
|
182
|
+
target_sub_service: "user",
|
|
183
|
+
target_method: "Read",
|
|
184
|
+
field_name: "user",
|
|
185
|
+
}
|
|
186
|
+
];
|
|
187
|
+
optional string customer_id = 4 [
|
|
188
|
+
(io.restorecommerce.options.resolver) = {
|
|
189
|
+
target_type: ".io.restorecommerce.customer.Customer",
|
|
190
|
+
target_service: "master_data",
|
|
191
|
+
target_sub_service: "customer",
|
|
192
|
+
target_method: "Read",
|
|
193
|
+
field_name: "customer",
|
|
194
|
+
}
|
|
195
|
+
];
|
|
196
|
+
optional string shop_id = 5 [
|
|
197
|
+
(io.restorecommerce.options.resolver) = {
|
|
198
|
+
target_type: ".io.restorecommerce.shop.Shop",
|
|
199
|
+
target_service: "master_data",
|
|
200
|
+
target_sub_service: "shop",
|
|
201
|
+
target_method: "Read",
|
|
202
|
+
field_name: "shop",
|
|
203
|
+
}
|
|
204
|
+
];
|
|
205
|
+
optional io.restorecommerce.reference.Reference reference = 6;
|
|
206
|
+
optional Packaging packaging = 7;
|
|
207
|
+
repeated Label labels = 8; //set by service
|
|
208
|
+
repeated Tracking trackings = 9; //set by service
|
|
209
|
+
repeated io.restorecommerce.amount.Amount total_amounts = 10; //set by service
|
|
210
|
+
optional State state = 11; //set by service
|
|
179
211
|
}
|
|
180
212
|
|
|
181
213
|
message FulfillmentList {
|
|
@@ -185,46 +217,45 @@ message FulfillmentList {
|
|
|
185
217
|
}
|
|
186
218
|
|
|
187
219
|
message FulfillmentResponse {
|
|
188
|
-
Fulfillment payload = 1;
|
|
189
|
-
io.restorecommerce.status.Status status = 2;
|
|
220
|
+
optional Fulfillment payload = 1;
|
|
221
|
+
optional io.restorecommerce.status.Status status = 2;
|
|
190
222
|
}
|
|
191
223
|
|
|
192
224
|
message FulfillmentListResponse {
|
|
193
225
|
repeated FulfillmentResponse items = 1;
|
|
194
|
-
uint32 total_count = 2;
|
|
195
|
-
io.restorecommerce.status.OperationStatus operation_status = 3;
|
|
226
|
+
optional uint32 total_count = 2;
|
|
227
|
+
optional io.restorecommerce.status.OperationStatus operation_status = 3;
|
|
196
228
|
}
|
|
197
229
|
|
|
198
230
|
message FulfillmentId {
|
|
199
231
|
optional string id = 1;
|
|
200
232
|
repeated string shipment_numbers = 2; //optional
|
|
201
233
|
optional google.protobuf.Any options = 3;
|
|
202
|
-
optional io.restorecommerce.auth.Subject subject = 4;
|
|
203
234
|
}
|
|
204
235
|
|
|
205
236
|
message FulfillmentIdList {
|
|
206
237
|
repeated FulfillmentId items = 1;
|
|
207
238
|
optional uint32 total_count = 2;
|
|
208
|
-
io.restorecommerce.auth.Subject subject = 3;
|
|
239
|
+
optional io.restorecommerce.auth.Subject subject = 3;
|
|
209
240
|
}
|
|
210
241
|
|
|
211
242
|
message Deleted {
|
|
212
|
-
string id = 1;
|
|
243
|
+
optional string id = 1;
|
|
213
244
|
}
|
|
214
245
|
|
|
215
|
-
message
|
|
246
|
+
message FulfillmentInvoiceSection {
|
|
216
247
|
optional string fulfillment_id = 1;
|
|
217
248
|
repeated string selected_parcels = 2; // selects all on empty
|
|
218
249
|
}
|
|
219
250
|
|
|
220
|
-
message
|
|
251
|
+
message FulfillmentInvoiceRequest {
|
|
221
252
|
optional string invoice_number = 1; // if given
|
|
222
253
|
repeated string payment_hints = 2;
|
|
223
|
-
repeated
|
|
254
|
+
repeated FulfillmentInvoiceSection sections = 3;
|
|
224
255
|
}
|
|
225
256
|
|
|
226
|
-
message
|
|
227
|
-
repeated
|
|
257
|
+
message FulfillmentInvoiceRequestList {
|
|
258
|
+
repeated FulfillmentInvoiceRequest items = 1;
|
|
228
259
|
optional uint32 total_count = 2;
|
|
229
|
-
io.restorecommerce.auth.Subject subject = 3;
|
|
260
|
+
optional io.restorecommerce.auth.Subject subject = 3;
|
|
230
261
|
}
|