@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
|
@@ -9,6 +9,9 @@ import "io/restorecommerce/auth.proto";
|
|
|
9
9
|
import "io/restorecommerce/status.proto";
|
|
10
10
|
import "io/restorecommerce/options.proto";
|
|
11
11
|
|
|
12
|
+
// Used by resolvers
|
|
13
|
+
import "io/restorecommerce/shop.proto";
|
|
14
|
+
|
|
12
15
|
/**
|
|
13
16
|
Microservice defination
|
|
14
17
|
*/
|
|
@@ -33,33 +36,42 @@ message FulfillmentCourier {
|
|
|
33
36
|
};
|
|
34
37
|
|
|
35
38
|
optional string id = 1;
|
|
39
|
+
optional io.restorecommerce.meta.Meta meta = 2;
|
|
40
|
+
repeated string shop_ids = 3 [
|
|
41
|
+
(io.restorecommerce.options.resolver) = {
|
|
42
|
+
target_type: ".io.restorecommerce.shop.Shop",
|
|
43
|
+
target_service: "master_data",
|
|
44
|
+
target_sub_service: "shop",
|
|
45
|
+
target_method: "Read",
|
|
46
|
+
field_name: "shops",
|
|
47
|
+
}
|
|
48
|
+
];
|
|
36
49
|
optional string name = 4;
|
|
37
50
|
optional string description = 5;
|
|
38
51
|
optional string logo = 6;
|
|
39
52
|
optional string website = 7;
|
|
40
53
|
optional string stub_type = 8;
|
|
41
|
-
optional google.protobuf.Any configuration =
|
|
42
|
-
optional io.restorecommerce.meta.Meta meta = 11;
|
|
54
|
+
optional google.protobuf.Any configuration = 9;
|
|
43
55
|
}
|
|
44
56
|
|
|
45
57
|
message FulfillmentCourierList {
|
|
46
58
|
repeated FulfillmentCourier items = 1;
|
|
47
59
|
optional uint32 total_count = 2;
|
|
48
|
-
io.restorecommerce.auth.Subject subject = 3;
|
|
60
|
+
optional io.restorecommerce.auth.Subject subject = 3;
|
|
49
61
|
}
|
|
50
62
|
|
|
51
63
|
message FulfillmentCourierResponse {
|
|
52
|
-
FulfillmentCourier payload = 1;
|
|
53
|
-
io.restorecommerce.status.Status status = 2;
|
|
64
|
+
optional FulfillmentCourier payload = 1;
|
|
65
|
+
optional io.restorecommerce.status.Status status = 2;
|
|
54
66
|
}
|
|
55
67
|
|
|
56
68
|
message FulfillmentCourierListResponse {
|
|
57
69
|
repeated FulfillmentCourierResponse items = 1;
|
|
58
|
-
uint32 total_count = 2;
|
|
59
|
-
io.restorecommerce.status.OperationStatus operation_status = 3;
|
|
70
|
+
optional uint32 total_count = 2;
|
|
71
|
+
optional io.restorecommerce.status.OperationStatus operation_status = 3;
|
|
60
72
|
}
|
|
61
73
|
|
|
62
74
|
message Deleted {
|
|
63
|
-
string id = 1;
|
|
75
|
+
optional string id = 1;
|
|
64
76
|
}
|
|
65
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,19 +38,36 @@ message Preferences {
|
|
|
38
38
|
repeated io.restorecommerce.attribute.Attribute options = 2;
|
|
39
39
|
}
|
|
40
40
|
|
|
41
|
-
message
|
|
42
|
-
optional
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
41
|
+
message PackingSolutionQuery {
|
|
42
|
+
optional string customer_id = 1 [
|
|
43
|
+
(io.restorecommerce.options.resolver) = {
|
|
44
|
+
target_type: ".io.restorecommerce.customer.Customer",
|
|
45
|
+
target_service: "master_data",
|
|
46
|
+
target_sub_service: "customer",
|
|
47
|
+
target_method: "Read",
|
|
48
|
+
field_name: "customer",
|
|
49
|
+
}
|
|
50
|
+
];
|
|
51
|
+
optional string shop_id = 2 [
|
|
52
|
+
(io.restorecommerce.options.resolver) = {
|
|
53
|
+
target_type: ".io.restorecommerce.shop.Shop",
|
|
54
|
+
target_service: "master_data",
|
|
55
|
+
target_sub_service: "shop",
|
|
56
|
+
target_method: "Read",
|
|
57
|
+
field_name: "shop",
|
|
58
|
+
}
|
|
59
|
+
];
|
|
60
|
+
optional io.restorecommerce.address.ShippingAddress sender = 3;
|
|
61
|
+
optional io.restorecommerce.address.ShippingAddress recipient = 4;
|
|
62
|
+
repeated io.restorecommerce.fulfillment.Item items = 5;
|
|
63
|
+
optional Preferences preferences = 6;
|
|
64
|
+
optional io.restorecommerce.reference.Reference reference = 7;
|
|
47
65
|
}
|
|
48
66
|
|
|
49
|
-
message
|
|
50
|
-
repeated
|
|
67
|
+
message PackingSolutionQueryList {
|
|
68
|
+
repeated PackingSolutionQuery items = 1;
|
|
51
69
|
optional uint32 total_count = 2;
|
|
52
|
-
io.restorecommerce.auth.Subject subject = 3;
|
|
53
|
-
optional io.restorecommerce.reference.Reference reference = 4;
|
|
70
|
+
optional io.restorecommerce.auth.Subject subject = 3;
|
|
54
71
|
}
|
|
55
72
|
|
|
56
73
|
message FulfillmentProduct {
|
|
@@ -89,23 +106,24 @@ message Variant {
|
|
|
89
106
|
optional io.restorecommerce.price.Price price = 4;
|
|
90
107
|
optional io.restorecommerce.geometry.BoundingBox3D max_size = 6;
|
|
91
108
|
optional double max_weight = 7;
|
|
109
|
+
repeated io.restorecommerce.attribute.Attribute attributes = 8;
|
|
92
110
|
}
|
|
93
111
|
|
|
94
112
|
message FulfillmentProductList {
|
|
95
113
|
repeated FulfillmentProduct items = 1;
|
|
96
114
|
optional uint32 total_count = 2;
|
|
97
|
-
io.restorecommerce.auth.Subject subject = 3;
|
|
115
|
+
optional io.restorecommerce.auth.Subject subject = 3;
|
|
98
116
|
}
|
|
99
117
|
|
|
100
118
|
message FulfillmentProductResponse {
|
|
101
|
-
FulfillmentProduct payload = 1;
|
|
102
|
-
io.restorecommerce.status.Status status = 2;
|
|
119
|
+
optional FulfillmentProduct payload = 1;
|
|
120
|
+
optional io.restorecommerce.status.Status status = 2;
|
|
103
121
|
}
|
|
104
122
|
|
|
105
123
|
message FulfillmentProductListResponse {
|
|
106
124
|
repeated FulfillmentProductResponse items = 1;
|
|
107
|
-
uint32 total_count = 2;
|
|
108
|
-
io.restorecommerce.status.OperationStatus operation_status = 3;
|
|
125
|
+
optional uint32 total_count = 2;
|
|
126
|
+
optional io.restorecommerce.status.OperationStatus operation_status = 3;
|
|
109
127
|
}
|
|
110
128
|
|
|
111
129
|
message PackingSolution {
|
|
@@ -125,9 +143,9 @@ message PackingSolutionResponse {
|
|
|
125
143
|
message PackingSolutionListResponse {
|
|
126
144
|
repeated PackingSolutionResponse items = 1;
|
|
127
145
|
optional uint32 total_count = 2;
|
|
128
|
-
io.restorecommerce.status.OperationStatus operation_status = 3;
|
|
146
|
+
optional io.restorecommerce.status.OperationStatus operation_status = 3;
|
|
129
147
|
}
|
|
130
148
|
|
|
131
149
|
message Deleted {
|
|
132
|
-
string id = 1;
|
|
150
|
+
optional string id = 1;
|
|
133
151
|
}
|
|
@@ -19,19 +19,19 @@ message TraversalRequest {
|
|
|
19
19
|
}
|
|
20
20
|
optional Options opts = 3;
|
|
21
21
|
optional bool path = 4;
|
|
22
|
-
io.restorecommerce.auth.Subject subject = 5;
|
|
22
|
+
optional io.restorecommerce.auth.Subject subject = 5;
|
|
23
23
|
repeated Filters filters = 6;
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
message Vertices {
|
|
27
|
-
string collection_name = 1;
|
|
27
|
+
optional string collection_name = 1;
|
|
28
28
|
repeated string start_vertex_ids = 2;
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
message Collection {
|
|
32
|
-
string collection_name = 1;
|
|
33
|
-
uint32 limit = 2;
|
|
34
|
-
uint32 offset = 3;
|
|
32
|
+
optional string collection_name = 1;
|
|
33
|
+
optional uint32 limit = 2;
|
|
34
|
+
optional uint32 offset = 3;
|
|
35
35
|
repeated io.restorecommerce.resourcebase.Sort sorts = 4;
|
|
36
36
|
}
|
|
37
37
|
|
|
@@ -40,7 +40,7 @@ message Options {
|
|
|
40
40
|
repeated string exclude_vertexs = 2; // to exclude vertices
|
|
41
41
|
repeated string include_edges = 3; // to include vertices
|
|
42
42
|
repeated string exclude_edges = 4; // to exclude vertices
|
|
43
|
-
Direction direction = 5; // either inbound or outbound, defaults to outbound direction
|
|
43
|
+
optional Direction direction = 5; // either inbound or outbound, defaults to outbound direction
|
|
44
44
|
enum Direction {
|
|
45
45
|
OUTBOUND = 0;
|
|
46
46
|
INBOUND = 1;
|
|
@@ -86,7 +86,7 @@ message Filter {
|
|
|
86
86
|
}
|
|
87
87
|
|
|
88
88
|
message TraversalResponse {
|
|
89
|
-
google.protobuf.Any data = 1; // vertices
|
|
90
|
-
google.protobuf.Any paths = 2; // traversed vertices paths
|
|
91
|
-
io.restorecommerce.status.OperationStatus operation_status = 3;
|
|
89
|
+
optional google.protobuf.Any data = 1; // vertices
|
|
90
|
+
optional google.protobuf.Any paths = 2; // traversed vertices paths
|
|
91
|
+
optional io.restorecommerce.status.OperationStatus operation_status = 3;
|
|
92
92
|
}
|
|
@@ -64,33 +64,33 @@ enum PaymentState {
|
|
|
64
64
|
|
|
65
65
|
message RequestInvoiceNumber {
|
|
66
66
|
optional string shop_id = 1;
|
|
67
|
-
google.protobuf.Any context = 2;
|
|
68
|
-
io.restorecommerce.auth.Subject subject = 3;
|
|
67
|
+
optional google.protobuf.Any context = 2;
|
|
68
|
+
optional io.restorecommerce.auth.Subject subject = 3;
|
|
69
69
|
}
|
|
70
70
|
|
|
71
71
|
message InvoiceNumberResponse {
|
|
72
|
-
string invoice_number = 1;
|
|
72
|
+
optional string invoice_number = 1;
|
|
73
73
|
}
|
|
74
74
|
|
|
75
75
|
message Deleted {
|
|
76
|
-
string id = 1;
|
|
76
|
+
optional string id = 1;
|
|
77
77
|
}
|
|
78
78
|
|
|
79
79
|
message InvoiceList {
|
|
80
80
|
repeated Invoice items = 1;
|
|
81
81
|
optional uint32 total_count = 2;
|
|
82
|
-
io.restorecommerce.auth.Subject subject = 3;
|
|
82
|
+
optional io.restorecommerce.auth.Subject subject = 3;
|
|
83
83
|
}
|
|
84
84
|
|
|
85
85
|
message InvoiceListResponse {
|
|
86
86
|
repeated InvoiceResponse items = 1;
|
|
87
|
-
uint32 total_count = 2;
|
|
88
|
-
io.restorecommerce.status.OperationStatus operation_status = 3;
|
|
87
|
+
optional uint32 total_count = 2;
|
|
88
|
+
optional io.restorecommerce.status.OperationStatus operation_status = 3;
|
|
89
89
|
}
|
|
90
90
|
|
|
91
91
|
message InvoiceResponse {
|
|
92
|
-
Invoice payload = 1;
|
|
93
|
-
io.restorecommerce.status.Status status = 2;
|
|
92
|
+
optional Invoice payload = 1;
|
|
93
|
+
optional io.restorecommerce.status.Status status = 2;
|
|
94
94
|
}
|
|
95
95
|
|
|
96
96
|
message InvoiceId {
|
|
@@ -103,7 +103,7 @@ message InvoiceId {
|
|
|
103
103
|
message InvoiceIdList {
|
|
104
104
|
repeated InvoiceId items = 1;
|
|
105
105
|
optional uint32 total_count = 2;
|
|
106
|
-
io.restorecommerce.auth.Subject subject = 3;
|
|
106
|
+
optional io.restorecommerce.auth.Subject subject = 3;
|
|
107
107
|
}
|
|
108
108
|
|
|
109
109
|
/*
|
|
@@ -28,7 +28,7 @@ service JobService {
|
|
|
28
28
|
* Send when a job resource got deleted.
|
|
29
29
|
*/
|
|
30
30
|
message Deleted {
|
|
31
|
-
string id = 1;
|
|
31
|
+
optional string id = 1;
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
/**
|
|
@@ -37,18 +37,18 @@ message Deleted {
|
|
|
37
37
|
message JobList {
|
|
38
38
|
repeated Job items = 1;
|
|
39
39
|
optional uint32 total_count = 2;
|
|
40
|
-
io.restorecommerce.auth.Subject subject = 3;
|
|
40
|
+
optional io.restorecommerce.auth.Subject subject = 3;
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
message JobListResponse {
|
|
44
44
|
repeated JobResponse items = 1;
|
|
45
|
-
uint32 total_count = 2;
|
|
46
|
-
io.restorecommerce.status.OperationStatus operation_status = 3;
|
|
45
|
+
optional uint32 total_count = 2;
|
|
46
|
+
optional io.restorecommerce.status.OperationStatus operation_status = 3;
|
|
47
47
|
}
|
|
48
48
|
|
|
49
49
|
message JobResponse {
|
|
50
|
-
Job payload = 1;
|
|
51
|
-
io.restorecommerce.status.Status status = 2;
|
|
50
|
+
optional Job payload = 1;
|
|
51
|
+
optional io.restorecommerce.status.Status status = 2;
|
|
52
52
|
}
|
|
53
53
|
|
|
54
54
|
/**
|
|
@@ -166,7 +166,7 @@ message JobReadRequest {
|
|
|
166
166
|
|
|
167
167
|
// Fields selector
|
|
168
168
|
repeated io.restorecommerce.resourcebase.FieldFilter fields = 3;
|
|
169
|
-
io.restorecommerce.auth.Subject subject = 5;
|
|
169
|
+
optional io.restorecommerce.auth.Subject subject = 5;
|
|
170
170
|
}
|
|
171
171
|
|
|
172
172
|
// filter
|
|
@@ -22,24 +22,24 @@ service LocaleService {
|
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
message Deleted {
|
|
25
|
-
string id = 1;
|
|
25
|
+
optional string id = 1;
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
message LocaleList {
|
|
29
29
|
repeated Locale 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 LocaleListResponse {
|
|
35
35
|
repeated LocaleResponse 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 LocaleResponse {
|
|
41
|
-
Locale payload = 1;
|
|
42
|
-
io.restorecommerce.status.Status status = 2;
|
|
41
|
+
optional Locale payload = 1;
|
|
42
|
+
optional io.restorecommerce.status.Status status = 2;
|
|
43
43
|
}
|
|
44
44
|
|
|
45
45
|
message Locale {
|
|
@@ -27,24 +27,24 @@ service LocationService {
|
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
message Deleted {
|
|
30
|
-
string id = 1;
|
|
30
|
+
optional string id = 1;
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
message LocationList {
|
|
34
34
|
repeated Location items = 1;
|
|
35
35
|
optional uint32 total_count = 2;
|
|
36
|
-
io.restorecommerce.auth.Subject subject = 3;
|
|
36
|
+
optional io.restorecommerce.auth.Subject subject = 3;
|
|
37
37
|
}
|
|
38
38
|
|
|
39
39
|
message LocationListResponse {
|
|
40
40
|
repeated LocationResponse items = 1;
|
|
41
|
-
uint32 total_count = 2;
|
|
42
|
-
io.restorecommerce.status.OperationStatus operation_status = 3;
|
|
41
|
+
optional uint32 total_count = 2;
|
|
42
|
+
optional io.restorecommerce.status.OperationStatus operation_status = 3;
|
|
43
43
|
}
|
|
44
44
|
|
|
45
45
|
message LocationResponse {
|
|
46
|
-
Location payload = 1;
|
|
47
|
-
io.restorecommerce.status.Status status = 2;
|
|
46
|
+
optional Location payload = 1;
|
|
47
|
+
optional io.restorecommerce.status.Status status = 2;
|
|
48
48
|
}
|
|
49
49
|
|
|
50
50
|
message Location {
|
|
@@ -19,22 +19,22 @@ message Manufacturer {
|
|
|
19
19
|
message ManufacturerList {
|
|
20
20
|
repeated Manufacturer items = 1;
|
|
21
21
|
optional uint32 total_count = 2;
|
|
22
|
-
io.restorecommerce.auth.Subject subject = 3;
|
|
22
|
+
optional io.restorecommerce.auth.Subject subject = 3;
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
message ManufacturerListResponse {
|
|
26
26
|
repeated ManufacturerResponse items = 1;
|
|
27
|
-
uint32 total_count = 2;
|
|
28
|
-
io.restorecommerce.status.OperationStatus operation_status = 3;
|
|
27
|
+
optional uint32 total_count = 2;
|
|
28
|
+
optional io.restorecommerce.status.OperationStatus operation_status = 3;
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
message ManufacturerResponse {
|
|
32
|
-
Manufacturer payload = 1;
|
|
33
|
-
io.restorecommerce.status.Status status = 2;
|
|
32
|
+
optional Manufacturer payload = 1;
|
|
33
|
+
optional io.restorecommerce.status.Status status = 2;
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
message Deleted {
|
|
37
|
-
string id = 1;
|
|
37
|
+
optional string id = 1;
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
service ManufacturerService {
|
|
@@ -20,24 +20,24 @@ service NotificationService {
|
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
message Deleted {
|
|
23
|
-
string id = 1;
|
|
23
|
+
optional string id = 1;
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
message NotificationList {
|
|
27
27
|
repeated Notification 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 NotificationListResponse {
|
|
33
33
|
repeated NotificationResponse 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 NotificationResponse {
|
|
39
|
-
Notification items = 1;
|
|
40
|
-
io.restorecommerce.status.Status status = 2;
|
|
39
|
+
optional Notification items = 1;
|
|
40
|
+
optional io.restorecommerce.status.Status status = 2;
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
message Notification {
|
|
@@ -17,24 +17,24 @@ service NotificationChannelService {
|
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
message Deleted {
|
|
20
|
-
string id = 1;
|
|
20
|
+
optional string id = 1;
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
message NotificationChannelList {
|
|
24
24
|
repeated NotificationChannel items = 1;
|
|
25
25
|
optional uint32 total_count = 2;
|
|
26
|
-
io.restorecommerce.auth.Subject subject = 3;
|
|
26
|
+
optional io.restorecommerce.auth.Subject subject = 3;
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
message NotificationChannelListResponse {
|
|
30
30
|
repeated NotificationChannelResponse items = 1;
|
|
31
|
-
uint32 total_count = 2;
|
|
32
|
-
io.restorecommerce.status.OperationStatus operation_status = 3;
|
|
31
|
+
optional uint32 total_count = 2;
|
|
32
|
+
optional io.restorecommerce.status.OperationStatus operation_status = 3;
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
message NotificationChannelResponse {
|
|
36
|
-
NotificationChannel items = 1;
|
|
37
|
-
io.restorecommerce.status.Status status = 2;
|
|
36
|
+
optional NotificationChannel items = 1;
|
|
37
|
+
optional io.restorecommerce.status.Status status = 2;
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
message NotificationChannel {
|
|
@@ -23,23 +23,23 @@ message GenerateLinksResponse {
|
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
message ExchangeCodeRequest {
|
|
26
|
-
string service = 1;
|
|
27
|
-
string code = 2;
|
|
28
|
-
string state = 3;
|
|
26
|
+
optional string service = 1;
|
|
27
|
+
optional string code = 2;
|
|
28
|
+
optional string state = 3;
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
message ExchangeCodeResponse {
|
|
32
|
-
io.restorecommerce.user.UserResponse user = 1;
|
|
33
|
-
string email = 2;
|
|
34
|
-
io.restorecommerce.auth.Tokens token = 3;
|
|
32
|
+
optional io.restorecommerce.user.UserResponse user = 1;
|
|
33
|
+
optional string email = 2;
|
|
34
|
+
optional io.restorecommerce.auth.Tokens token = 3;
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
message GetTokenRequest {
|
|
38
|
-
io.restorecommerce.auth.Subject subject = 1;
|
|
39
|
-
string service = 2;
|
|
38
|
+
optional io.restorecommerce.auth.Subject subject = 1;
|
|
39
|
+
optional string service = 2;
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
message GetTokenResponse {
|
|
43
|
-
io.restorecommerce.status.Status status = 1;
|
|
43
|
+
optional io.restorecommerce.status.Status status = 1;
|
|
44
44
|
optional string token = 2;
|
|
45
45
|
}
|
|
@@ -18,6 +18,8 @@ import "io/restorecommerce/fulfillment_product.proto";
|
|
|
18
18
|
import "io/restorecommerce/invoice.proto";
|
|
19
19
|
|
|
20
20
|
// Used by resolvers
|
|
21
|
+
import "io/restorecommerce/user.proto";
|
|
22
|
+
import "io/restorecommerce/customer.proto";
|
|
21
23
|
import "io/restorecommerce/shop.proto";
|
|
22
24
|
|
|
23
25
|
|
|
@@ -42,9 +44,9 @@ service OrderService {
|
|
|
42
44
|
rpc TriggerFulfillment (FulfillmentRequestList) returns (io.restorecommerce.status.StatusListResponse);
|
|
43
45
|
|
|
44
46
|
// Requires Invoice Service
|
|
45
|
-
rpc CreateInvoice (
|
|
47
|
+
rpc CreateInvoice (OrderingInvoiceRequestList) returns (io.restorecommerce.invoice.InvoiceListResponse);
|
|
46
48
|
// Requires Invoice Service
|
|
47
|
-
rpc TriggerInvoice (
|
|
49
|
+
rpc TriggerInvoice (OrderingInvoiceRequestList) returns (io.restorecommerce.status.StatusListResponse);
|
|
48
50
|
}
|
|
49
51
|
|
|
50
52
|
enum OrderState {
|
|
@@ -96,11 +98,11 @@ message Order {
|
|
|
96
98
|
optional io.restorecommerce.meta.Meta meta = 2;
|
|
97
99
|
optional string user_id = 3 [
|
|
98
100
|
(io.restorecommerce.options.resolver) = {
|
|
99
|
-
target_type: ".io.restorecommerce.
|
|
100
|
-
target_service: "
|
|
101
|
-
target_sub_service: "
|
|
101
|
+
target_type: ".io.restorecommerce.user.User",
|
|
102
|
+
target_service: "identity",
|
|
103
|
+
target_sub_service: "user",
|
|
102
104
|
target_method: "Read",
|
|
103
|
-
field_name: "
|
|
105
|
+
field_name: "user",
|
|
104
106
|
}
|
|
105
107
|
];
|
|
106
108
|
optional string customer_id = 4 [
|
|
@@ -136,28 +138,28 @@ message Order {
|
|
|
136
138
|
|
|
137
139
|
message OrderIdList {
|
|
138
140
|
repeated string ids = 1;
|
|
139
|
-
io.restorecommerce.auth.Subject subject = 2;
|
|
141
|
+
optional io.restorecommerce.auth.Subject subject = 2;
|
|
140
142
|
}
|
|
141
143
|
|
|
142
144
|
message OrderList {
|
|
143
145
|
repeated Order items = 1;
|
|
144
146
|
optional uint32 total_count = 2;
|
|
145
|
-
io.restorecommerce.auth.Subject subject = 3;
|
|
147
|
+
optional io.restorecommerce.auth.Subject subject = 3;
|
|
146
148
|
}
|
|
147
149
|
|
|
148
150
|
message OrderListResponse {
|
|
149
151
|
repeated OrderResponse items = 1;
|
|
150
|
-
uint32 total_count = 2;
|
|
151
|
-
io.restorecommerce.status.OperationStatus operation_status = 3;
|
|
152
|
+
optional uint32 total_count = 2;
|
|
153
|
+
optional io.restorecommerce.status.OperationStatus operation_status = 3;
|
|
152
154
|
}
|
|
153
155
|
|
|
154
156
|
message OrderResponse {
|
|
155
|
-
Order payload = 1;
|
|
156
|
-
io.restorecommerce.status.Status status = 2;
|
|
157
|
+
optional Order payload = 1;
|
|
158
|
+
optional io.restorecommerce.status.Status status = 2;
|
|
157
159
|
}
|
|
158
160
|
|
|
159
161
|
message Deleted {
|
|
160
|
-
string id = 1;
|
|
162
|
+
optional string id = 1;
|
|
161
163
|
}
|
|
162
164
|
|
|
163
165
|
message FulfillmentRequest {
|
|
@@ -167,30 +169,30 @@ message FulfillmentRequest {
|
|
|
167
169
|
optional string invoice_number = 4; // @TODO: not used!
|
|
168
170
|
optional io.restorecommerce.address.ShippingAddress sender_address = 5;
|
|
169
171
|
repeated string selected_items = 6; // select all on empty
|
|
170
|
-
google.protobuf.Any data = 7;
|
|
172
|
+
optional google.protobuf.Any data = 7;
|
|
171
173
|
}
|
|
172
174
|
|
|
173
175
|
message FulfillmentRequestList {
|
|
174
176
|
repeated FulfillmentRequest items = 1;
|
|
175
177
|
optional uint32 total_count = 2;
|
|
176
|
-
io.restorecommerce.auth.Subject subject = 3;
|
|
178
|
+
optional io.restorecommerce.auth.Subject subject = 3;
|
|
177
179
|
}
|
|
178
180
|
|
|
179
|
-
message
|
|
181
|
+
message OrderingInvoiceSection {
|
|
180
182
|
optional string order_id = 1;
|
|
181
183
|
repeated string selected_items = 2; // select all on empty
|
|
182
184
|
optional FulfillmentInvoiceMode fulfillment_mode = 3;
|
|
183
|
-
repeated io.restorecommerce.fulfillment.
|
|
185
|
+
repeated io.restorecommerce.fulfillment.FulfillmentInvoiceSection selected_fulfillments = 4; // includes all on empty
|
|
184
186
|
}
|
|
185
187
|
|
|
186
|
-
message
|
|
188
|
+
message OrderingInvoiceRequest {
|
|
187
189
|
optional string invoice_number = 1; // if given
|
|
188
190
|
repeated string payment_hints = 2;
|
|
189
|
-
repeated
|
|
191
|
+
repeated OrderingInvoiceSection sections = 3;
|
|
190
192
|
}
|
|
191
193
|
|
|
192
|
-
message
|
|
193
|
-
repeated
|
|
194
|
+
message OrderingInvoiceRequestList {
|
|
195
|
+
repeated OrderingInvoiceRequest items = 1;
|
|
194
196
|
optional uint32 total_count = 2;
|
|
195
|
-
io.restorecommerce.auth.Subject subject = 3;
|
|
197
|
+
optional io.restorecommerce.auth.Subject subject = 3;
|
|
196
198
|
}
|
|
@@ -27,30 +27,30 @@ service OrganizationService {
|
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
message Deleted {
|
|
30
|
-
string id = 1;
|
|
30
|
+
optional string id = 1;
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
message DeleteOrgData {
|
|
34
34
|
repeated string org_ids = 1;
|
|
35
35
|
repeated string user_ids = 2;
|
|
36
|
-
io.restorecommerce.auth.Subject subject = 3;
|
|
36
|
+
optional io.restorecommerce.auth.Subject subject = 3;
|
|
37
37
|
}
|
|
38
38
|
|
|
39
39
|
message OrganizationList {
|
|
40
40
|
repeated Organization items = 1;
|
|
41
41
|
optional uint32 total_count = 2;
|
|
42
|
-
io.restorecommerce.auth.Subject subject = 3;
|
|
42
|
+
optional io.restorecommerce.auth.Subject subject = 3;
|
|
43
43
|
}
|
|
44
44
|
|
|
45
45
|
message OrganizationListResponse {
|
|
46
46
|
repeated OrganizationResponse items = 1;
|
|
47
|
-
uint32 total_count = 2;
|
|
48
|
-
io.restorecommerce.status.OperationStatus operation_status = 3;
|
|
47
|
+
optional uint32 total_count = 2;
|
|
48
|
+
optional io.restorecommerce.status.OperationStatus operation_status = 3;
|
|
49
49
|
}
|
|
50
50
|
|
|
51
51
|
message OrganizationResponse {
|
|
52
|
-
Organization payload = 1;
|
|
53
|
-
io.restorecommerce.status.Status status = 2;
|
|
52
|
+
optional Organization payload = 1;
|
|
53
|
+
optional io.restorecommerce.status.Status status = 2;
|
|
54
54
|
}
|
|
55
55
|
|
|
56
56
|
message Organization {
|