@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
|
@@ -38,20 +38,20 @@ message SetupRequest {
|
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
message SetupPayload {
|
|
41
|
-
string token = 1;
|
|
42
|
-
string confirm_initiation_url = 2;
|
|
43
|
-
string initiated_on = 3;
|
|
41
|
+
optional string token = 1;
|
|
42
|
+
optional string confirm_initiation_url = 2;
|
|
43
|
+
optional string initiated_on = 3;
|
|
44
44
|
}
|
|
45
45
|
|
|
46
46
|
message SetupPayloadStatus {
|
|
47
|
-
SetupPayload payload = 1;
|
|
48
|
-
io.restorecommerce.status.Status status = 2;
|
|
47
|
+
optional SetupPayload payload = 1;
|
|
48
|
+
optional io.restorecommerce.status.Status status = 2;
|
|
49
49
|
}
|
|
50
50
|
|
|
51
51
|
// Response object for setup calls.
|
|
52
52
|
message SetupResponse {
|
|
53
|
-
SetupPayloadStatus item = 1;
|
|
54
|
-
io.restorecommerce.status.OperationStatus operation_status = 2;
|
|
53
|
+
optional SetupPayloadStatus item = 1;
|
|
54
|
+
optional io.restorecommerce.status.OperationStatus operation_status = 2;
|
|
55
55
|
}
|
|
56
56
|
|
|
57
57
|
// Request object for authorization or purchase call for cardless payment.
|
|
@@ -62,7 +62,7 @@ message PaymentRequest {
|
|
|
62
62
|
optional string payment_id = 4;
|
|
63
63
|
optional string payer_id = 5;
|
|
64
64
|
optional string token = 6;
|
|
65
|
-
io.restorecommerce.auth.Subject subject = 7;
|
|
65
|
+
optional io.restorecommerce.auth.Subject subject = 7;
|
|
66
66
|
}
|
|
67
67
|
|
|
68
68
|
// Request object for capture call for both standard and cardless payments.
|
|
@@ -71,24 +71,24 @@ message CaptureRequest {
|
|
|
71
71
|
optional int32 payment_sum = 2;
|
|
72
72
|
optional string currency = 3;
|
|
73
73
|
optional string payment_id = 4;
|
|
74
|
-
io.restorecommerce.auth.Subject subject = 5;
|
|
74
|
+
optional io.restorecommerce.auth.Subject subject = 5;
|
|
75
75
|
}
|
|
76
76
|
|
|
77
77
|
message PaymentPayload {
|
|
78
|
-
string payment_id = 1;
|
|
79
|
-
string executed_on = 2;
|
|
78
|
+
optional string payment_id = 1;
|
|
79
|
+
optional string executed_on = 2;
|
|
80
80
|
}
|
|
81
81
|
|
|
82
82
|
message PaymentPayloadStatus {
|
|
83
|
-
PaymentPayload payload = 1;
|
|
84
|
-
io.restorecommerce.status.Status status = 2;
|
|
83
|
+
optional PaymentPayload payload = 1;
|
|
84
|
+
optional io.restorecommerce.status.Status status = 2;
|
|
85
85
|
}
|
|
86
86
|
|
|
87
87
|
// Unified response object for authorization, purchase and capture calls
|
|
88
88
|
// for both standard and cardless payments.
|
|
89
89
|
message PaymentResponse {
|
|
90
|
-
PaymentPayloadStatus item = 1;
|
|
91
|
-
io.restorecommerce.status.OperationStatus operation_status = 2;
|
|
90
|
+
optional PaymentPayloadStatus item = 1;
|
|
91
|
+
optional io.restorecommerce.status.OperationStatus operation_status = 2;
|
|
92
92
|
}
|
|
93
93
|
|
|
94
94
|
// Used for building ActiveMerchant::Billing::CreditCard instance.
|
|
@@ -20,24 +20,24 @@ service PaymentMethodService {
|
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
message Deleted {
|
|
23
|
-
string id = 1;
|
|
23
|
+
optional string id = 1;
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
message PaymentMethodList {
|
|
27
27
|
repeated PaymentMethod 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 PaymentMethodListResponse {
|
|
33
33
|
repeated PaymentMethodResponse 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 PaymentMethodResponse {
|
|
39
|
-
PaymentMethod payload = 1;
|
|
40
|
-
io.restorecommerce.status.Status status = 2;
|
|
39
|
+
optional PaymentMethod payload = 1;
|
|
40
|
+
optional io.restorecommerce.status.Status status = 2;
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
enum PaymentMethodEnum {
|
|
@@ -37,18 +37,18 @@ message PolicyRQ {
|
|
|
37
37
|
message PolicyList {
|
|
38
38
|
repeated Policy 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 PolicyListResponse {
|
|
44
44
|
repeated PolicyResponse 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 PolicyResponse {
|
|
50
|
-
Policy payload = 1;
|
|
51
|
-
io.restorecommerce.status.Status status = 2;
|
|
50
|
+
optional Policy payload = 1;
|
|
51
|
+
optional io.restorecommerce.status.Status status = 2;
|
|
52
52
|
}
|
|
53
53
|
|
|
54
54
|
service PolicyService {
|
|
@@ -23,18 +23,18 @@ message PolicySet {
|
|
|
23
23
|
message PolicySetList {
|
|
24
24
|
repeated PolicySet 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 PolicySetListResponse {
|
|
30
30
|
repeated PolicySetResponse 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 PolicySetResponse {
|
|
36
|
-
PolicySet payload = 1;
|
|
37
|
-
io.restorecommerce.status.Status status = 2;
|
|
36
|
+
optional PolicySet payload = 1;
|
|
37
|
+
optional io.restorecommerce.status.Status status = 2;
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
message PolicySetRQ {
|
|
@@ -19,22 +19,22 @@ message PriceGroup {
|
|
|
19
19
|
message PriceGroupList {
|
|
20
20
|
repeated PriceGroup 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 PriceGroupListResponse {
|
|
26
26
|
repeated PriceGroupResponse 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 PriceGroupResponse {
|
|
32
|
-
PriceGroup payload = 1;
|
|
33
|
-
io.restorecommerce.status.Status status = 3;
|
|
32
|
+
optional PriceGroup payload = 1;
|
|
33
|
+
optional io.restorecommerce.status.Status status = 3;
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
message Deleted {
|
|
37
|
-
string id = 1;
|
|
37
|
+
optional string id = 1;
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
service PriceGroupService {
|
|
@@ -46,9 +46,9 @@ message Association {
|
|
|
46
46
|
field_name: "product",
|
|
47
47
|
}
|
|
48
48
|
];
|
|
49
|
-
AssociationType type = 2;
|
|
49
|
+
optional AssociationType type = 2;
|
|
50
50
|
repeated string tags = 3;
|
|
51
|
-
google.protobuf.Any data = 4;
|
|
51
|
+
optional google.protobuf.Any data = 4;
|
|
52
52
|
}
|
|
53
53
|
|
|
54
54
|
// Product resource entity
|
|
@@ -62,7 +62,7 @@ message Product {
|
|
|
62
62
|
};
|
|
63
63
|
|
|
64
64
|
optional string id = 1;
|
|
65
|
-
io.restorecommerce.meta.Meta meta = 2;
|
|
65
|
+
optional io.restorecommerce.meta.Meta meta = 2;
|
|
66
66
|
oneof product_type {
|
|
67
67
|
IndividualProduct product = 3;
|
|
68
68
|
Bundle bundle = 4;
|
|
@@ -79,7 +79,7 @@ message Product {
|
|
|
79
79
|
optional bool active = 6;
|
|
80
80
|
repeated string tags = 7;
|
|
81
81
|
repeated Association associations = 8;
|
|
82
|
-
google.protobuf.Any data = 9;
|
|
82
|
+
optional google.protobuf.Any data = 9;
|
|
83
83
|
}
|
|
84
84
|
|
|
85
85
|
message IndividualProduct {
|
|
@@ -161,13 +161,13 @@ message ProductList {
|
|
|
161
161
|
|
|
162
162
|
message ProductListResponse {
|
|
163
163
|
repeated ProductResponse items = 1;
|
|
164
|
-
uint32 total_count = 2;
|
|
165
|
-
io.restorecommerce.status.OperationStatus operation_status = 3;
|
|
164
|
+
optional uint32 total_count = 2;
|
|
165
|
+
optional io.restorecommerce.status.OperationStatus operation_status = 3;
|
|
166
166
|
}
|
|
167
167
|
|
|
168
168
|
message ProductResponse {
|
|
169
|
-
Product payload = 1;
|
|
170
|
-
io.restorecommerce.status.Status status = 3;
|
|
169
|
+
optional Product payload = 1;
|
|
170
|
+
optional io.restorecommerce.status.Status status = 3;
|
|
171
171
|
}
|
|
172
172
|
|
|
173
173
|
message Package {
|
|
@@ -34,22 +34,22 @@ message ProductCategory {
|
|
|
34
34
|
message ProductCategoryList {
|
|
35
35
|
repeated ProductCategory items = 1;
|
|
36
36
|
optional uint32 total_count = 2;
|
|
37
|
-
io.restorecommerce.auth.Subject subject = 3;
|
|
37
|
+
optional io.restorecommerce.auth.Subject subject = 3;
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
message ProductCategoryListResponse {
|
|
41
41
|
repeated ProductCategoryResponse 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 ProductCategoryResponse {
|
|
47
|
-
ProductCategory payload = 1;
|
|
48
|
-
io.restorecommerce.status.Status status = 2;
|
|
47
|
+
optional ProductCategory payload = 1;
|
|
48
|
+
optional io.restorecommerce.status.Status status = 2;
|
|
49
49
|
}
|
|
50
50
|
|
|
51
51
|
message Deleted {
|
|
52
|
-
string id = 1;
|
|
52
|
+
optional string id = 1;
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
message Parent {
|
|
@@ -32,22 +32,22 @@ message ProductPrototype {
|
|
|
32
32
|
message ProductPrototypeList {
|
|
33
33
|
repeated ProductPrototype items = 1;
|
|
34
34
|
optional uint32 total_count = 2;
|
|
35
|
-
io.restorecommerce.auth.Subject subject = 3;
|
|
35
|
+
optional io.restorecommerce.auth.Subject subject = 3;
|
|
36
36
|
}
|
|
37
37
|
|
|
38
38
|
message ProductPrototypeListResponse {
|
|
39
39
|
repeated ProductPrototypeResponse items = 1;
|
|
40
|
-
uint32 total_count = 2;
|
|
41
|
-
io.restorecommerce.status.OperationStatus operation_status = 3;
|
|
40
|
+
optional uint32 total_count = 2;
|
|
41
|
+
optional io.restorecommerce.status.OperationStatus operation_status = 3;
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
message ProductPrototypeResponse {
|
|
45
|
-
ProductPrototype payload = 1;
|
|
46
|
-
io.restorecommerce.status.Status status = 2;
|
|
45
|
+
optional ProductPrototype payload = 1;
|
|
46
|
+
optional io.restorecommerce.status.Status status = 2;
|
|
47
47
|
}
|
|
48
48
|
|
|
49
49
|
message Deleted {
|
|
50
|
-
string id = 1;
|
|
50
|
+
optional string id = 1;
|
|
51
51
|
}
|
|
52
52
|
|
|
53
53
|
service ProductPrototypeService {
|
|
@@ -7,28 +7,28 @@ import "google/protobuf/any.proto";
|
|
|
7
7
|
message Payload {
|
|
8
8
|
// json with <key, template> pairs
|
|
9
9
|
// e.g. { 'subject': ..., 'message':....}
|
|
10
|
-
google.protobuf.Any templates = 1;
|
|
11
|
-
google.protobuf.Any data = 2; // data to fill template with
|
|
12
|
-
string style_url = 3; // stylesheet URL
|
|
10
|
+
optional google.protobuf.Any templates = 1;
|
|
11
|
+
optional google.protobuf.Any data = 2; // data to fill template with
|
|
12
|
+
optional string style_url = 3; // stylesheet URL
|
|
13
13
|
|
|
14
14
|
enum Strategy { // style-applying 'strategy'
|
|
15
15
|
INLINE = 0;
|
|
16
16
|
COPY = 1;
|
|
17
17
|
}
|
|
18
|
-
Strategy strategy = 4; // inlining, copying CSS into <style>, etc...
|
|
18
|
+
optional Strategy strategy = 4; // inlining, copying CSS into <style>, etc...
|
|
19
19
|
// rendering options JSON object
|
|
20
|
-
google.protobuf.Any options = 5;
|
|
20
|
+
optional google.protobuf.Any options = 5;
|
|
21
21
|
// content type for rendering such as 'application/html' or 'application/text'
|
|
22
|
-
string content_type = 6;
|
|
22
|
+
optional string content_type = 6;
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
message RenderRequest {
|
|
26
|
-
string id = 1; // identifies the render request payload
|
|
26
|
+
optional string id = 1; // identifies the render request payload
|
|
27
27
|
// List of templates with associated data and rendering options
|
|
28
28
|
repeated Payload payloads = 2;
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
message RenderResponse {
|
|
32
|
-
string id = 1;
|
|
32
|
+
optional string id = 1;
|
|
33
33
|
repeated google.protobuf.Any responses = 2; // error or HTML contents
|
|
34
34
|
}
|
|
@@ -27,12 +27,12 @@ message Sort {
|
|
|
27
27
|
ASCENDING = 1;
|
|
28
28
|
DESCENDING = 2;
|
|
29
29
|
}
|
|
30
|
-
string field = 1;
|
|
30
|
+
optional string field = 1;
|
|
31
31
|
optional SortOrder order = 2;
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
message Filter {
|
|
35
|
-
string field = 1;
|
|
35
|
+
optional string field = 1;
|
|
36
36
|
enum Operation {
|
|
37
37
|
eq = 0;
|
|
38
38
|
lt = 1;
|
|
@@ -44,8 +44,8 @@ message Filter {
|
|
|
44
44
|
in = 7;
|
|
45
45
|
neq = 8;
|
|
46
46
|
}
|
|
47
|
-
Operation operation = 2;
|
|
48
|
-
string value = 3;
|
|
47
|
+
optional Operation operation = 2;
|
|
48
|
+
optional string value = 3;
|
|
49
49
|
enum ValueType {
|
|
50
50
|
STRING = 0; // default value type if not specified
|
|
51
51
|
NUMBER = 1;
|
|
@@ -94,7 +94,7 @@ message ReadRequest {
|
|
|
94
94
|
|
|
95
95
|
repeated string custom_queries = 8;
|
|
96
96
|
optional google.protobuf.Any custom_arguments = 9;
|
|
97
|
-
io.restorecommerce.auth.Subject subject = 10;
|
|
97
|
+
optional io.restorecommerce.auth.Subject subject = 10;
|
|
98
98
|
optional Search search = 11;
|
|
99
99
|
}
|
|
100
100
|
|
|
@@ -103,34 +103,34 @@ message DeleteRequest {
|
|
|
103
103
|
optional bool collection = 1;
|
|
104
104
|
/// Delete specified documents
|
|
105
105
|
repeated string ids = 2;
|
|
106
|
-
io.restorecommerce.auth.Subject subject = 3;
|
|
106
|
+
optional io.restorecommerce.auth.Subject subject = 3;
|
|
107
107
|
repeated string views = 4; // list of views to be dropped
|
|
108
108
|
repeated string analyzers = 5; // list of analyzers to be deleted
|
|
109
109
|
}
|
|
110
110
|
|
|
111
111
|
message DeleteResponse {
|
|
112
112
|
repeated io.restorecommerce.status.Status status = 1;
|
|
113
|
-
io.restorecommerce.status.OperationStatus operation_status = 2;
|
|
113
|
+
optional io.restorecommerce.status.OperationStatus operation_status = 2;
|
|
114
114
|
}
|
|
115
115
|
|
|
116
116
|
/// List of resources
|
|
117
117
|
message ResourceList {
|
|
118
118
|
repeated Resource items = 1;
|
|
119
119
|
optional uint32 total_count = 2;
|
|
120
|
-
io.restorecommerce.auth.Subject subject = 3;
|
|
120
|
+
optional io.restorecommerce.auth.Subject subject = 3;
|
|
121
121
|
}
|
|
122
122
|
|
|
123
123
|
// ResourceList response
|
|
124
124
|
message ResourceListResponse {
|
|
125
125
|
repeated ResourceResponse items = 1;
|
|
126
|
-
uint32 total_count = 2;
|
|
127
|
-
io.restorecommerce.status.OperationStatus operation_status = 3;
|
|
126
|
+
optional uint32 total_count = 2;
|
|
127
|
+
optional io.restorecommerce.status.OperationStatus operation_status = 3;
|
|
128
128
|
}
|
|
129
129
|
|
|
130
130
|
// resource read response
|
|
131
131
|
message ResourceResponse {
|
|
132
|
-
Resource payload = 1;
|
|
133
|
-
io.restorecommerce.status.Status status = 2;
|
|
132
|
+
optional Resource payload = 1;
|
|
133
|
+
optional io.restorecommerce.status.Status status = 2;
|
|
134
134
|
}
|
|
135
135
|
|
|
136
136
|
// Example resource
|
|
@@ -29,20 +29,20 @@ message Role {
|
|
|
29
29
|
message RoleList {
|
|
30
30
|
repeated Role 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 RoleListResponse {
|
|
36
36
|
repeated RoleResponse 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 RoleResponse {
|
|
42
|
-
Role payload = 1;
|
|
43
|
-
io.restorecommerce.status.Status status = 2;
|
|
42
|
+
optional Role payload = 1;
|
|
43
|
+
optional io.restorecommerce.status.Status status = 2;
|
|
44
44
|
}
|
|
45
45
|
|
|
46
46
|
message Deleted {
|
|
47
|
-
string id = 1;
|
|
47
|
+
optional string id = 1;
|
|
48
48
|
}
|
|
@@ -51,18 +51,18 @@ message RuleRQ { // used for `whatIsAllowed` / reverse queries
|
|
|
51
51
|
message RuleList {
|
|
52
52
|
repeated Rule items = 1;
|
|
53
53
|
optional uint32 total_count = 2;
|
|
54
|
-
io.restorecommerce.auth.Subject subject = 3;
|
|
54
|
+
optional io.restorecommerce.auth.Subject subject = 3;
|
|
55
55
|
}
|
|
56
56
|
|
|
57
57
|
message RuleListResponse {
|
|
58
58
|
repeated RuleResponse items = 1;
|
|
59
|
-
uint32 total_count = 2;
|
|
60
|
-
io.restorecommerce.status.OperationStatus operation_status = 3;
|
|
59
|
+
optional uint32 total_count = 2;
|
|
60
|
+
optional io.restorecommerce.status.OperationStatus operation_status = 3;
|
|
61
61
|
}
|
|
62
62
|
|
|
63
63
|
message RuleResponse {
|
|
64
|
-
Rule payload = 1;
|
|
65
|
-
io.restorecommerce.status.Status status = 2;
|
|
64
|
+
optional Rule payload = 1;
|
|
65
|
+
optional io.restorecommerce.status.Status status = 2;
|
|
66
66
|
}
|
|
67
67
|
|
|
68
68
|
// Query to pull resources from an external service
|
|
@@ -29,18 +29,18 @@ service ShopService {
|
|
|
29
29
|
message ShopList {
|
|
30
30
|
repeated Shop 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 ShopListResponse {
|
|
36
36
|
repeated ShopResponse 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 ShopResponse {
|
|
42
|
-
Shop payload = 1;
|
|
43
|
-
io.restorecommerce.status.Status status = 2;
|
|
42
|
+
optional Shop payload = 1;
|
|
43
|
+
optional io.restorecommerce.status.Status status = 2;
|
|
44
44
|
}
|
|
45
45
|
|
|
46
46
|
message Shop {
|
|
@@ -3,21 +3,21 @@ syntax = "proto3";
|
|
|
3
3
|
package io.restorecommerce.status;
|
|
4
4
|
|
|
5
5
|
message Status {
|
|
6
|
-
string id = 1;
|
|
7
|
-
uint32 code = 2;
|
|
8
|
-
string message = 3;
|
|
6
|
+
optional string id = 1;
|
|
7
|
+
optional uint32 code = 2;
|
|
8
|
+
optional string message = 3;
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
message OperationStatusObj {
|
|
12
|
-
OperationStatus operation_status = 1;
|
|
12
|
+
optional OperationStatus operation_status = 1;
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
message OperationStatus {
|
|
16
|
-
uint32 code = 1;
|
|
17
|
-
string message = 2;
|
|
16
|
+
optional uint32 code = 1;
|
|
17
|
+
optional string message = 2;
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
message StatusListResponse {
|
|
21
21
|
repeated Status status = 1;
|
|
22
|
-
OperationStatus operation_status = 2;
|
|
22
|
+
optional OperationStatus operation_status = 2;
|
|
23
23
|
}
|
|
@@ -26,24 +26,24 @@ service TaxService {
|
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
message Deleted {
|
|
29
|
-
string id = 1;
|
|
29
|
+
optional string id = 1;
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
message TaxList {
|
|
33
33
|
repeated Tax items = 1;
|
|
34
34
|
optional uint32 total_count = 2;
|
|
35
|
-
io.restorecommerce.auth.Subject subject = 3;
|
|
35
|
+
optional io.restorecommerce.auth.Subject subject = 3;
|
|
36
36
|
}
|
|
37
37
|
|
|
38
38
|
message TaxListResponse {
|
|
39
39
|
repeated TaxResponse items = 1;
|
|
40
|
-
uint32 total_count = 2;
|
|
41
|
-
io.restorecommerce.status.OperationStatus operation_status = 3;
|
|
40
|
+
optional uint32 total_count = 2;
|
|
41
|
+
optional io.restorecommerce.status.OperationStatus operation_status = 3;
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
message TaxResponse {
|
|
45
|
-
Tax payload = 1;
|
|
46
|
-
io.restorecommerce.status.Status status = 2;
|
|
45
|
+
optional Tax payload = 1;
|
|
46
|
+
optional io.restorecommerce.status.Status status = 2;
|
|
47
47
|
}
|
|
48
48
|
|
|
49
49
|
message Tax {
|
|
@@ -28,18 +28,18 @@ message Deleted {
|
|
|
28
28
|
message TaxTypeList {
|
|
29
29
|
repeated TaxType 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 TaxTypeListResponse {
|
|
35
35
|
repeated TaxTypeResponse 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 TaxTypeResponse {
|
|
41
|
-
TaxType payload = 1;
|
|
42
|
-
io.restorecommerce.status.Status status = 3;
|
|
41
|
+
optional TaxType payload = 1;
|
|
42
|
+
optional io.restorecommerce.status.Status status = 3;
|
|
43
43
|
}
|
|
44
44
|
|
|
45
45
|
message TaxType {
|
|
@@ -22,24 +22,24 @@ service TimezoneService {
|
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
message Deleted {
|
|
25
|
-
string id = 1;
|
|
25
|
+
optional string id = 1;
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
message TimezoneList {
|
|
29
29
|
repeated Timezone 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 TimezoneListResponse {
|
|
35
35
|
repeated TimezoneResponse 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 TimezoneResponse {
|
|
41
|
-
Timezone payload = 1;
|
|
42
|
-
io.restorecommerce.status.Status status = 2;
|
|
41
|
+
optional Timezone payload = 1;
|
|
42
|
+
optional io.restorecommerce.status.Status status = 2;
|
|
43
43
|
}
|
|
44
44
|
|
|
45
45
|
message Timezone {
|