This repository was archived by the owner on Mar 23, 2023. It is now read-only.
File tree 5 files changed +1146
-15
lines changed
5 files changed +1146
-15
lines changed Original file line number Diff line number Diff line change @@ -37,36 +37,24 @@ message ProductPayload {
37
37
}
38
38
39
39
message ProductCreateAction {
40
- enum ProductType {
41
- UNSET_TYPE = 0 ;
42
- GS1 = 1 ;
43
- }
44
40
// product_type and identifier are used in deriving the state address
45
- ProductType product_type = 1 ;
41
+ Product. ProductType product_type = 1 ;
46
42
string identifier = 2 ;
47
43
string owner = 3 ;
48
44
repeated PropertyValue properties = 4 ;
49
45
}
50
46
51
47
message ProductUpdateAction {
52
- enum ProductType {
53
- UNSET_TYPE = 0 ;
54
- GS1 = 1 ;
55
- }
56
48
// product_type and identifier are used in deriving the state address
57
- ProductType product_type = 1 ;
49
+ Product. ProductType product_type = 1 ;
58
50
string identifier = 2 ;
59
51
// this will replace all properties currently defined
60
52
repeated PropertyValue properties = 4 ;
61
53
}
62
54
63
55
message ProductDeleteAction {
64
- enum ProductType {
65
- UNSET_TYPE = 0 ;
66
- GS1 = 1 ;
67
- }
68
56
// product_type and identifier are used in deriving the state address
69
- ProductType product_type = 1 ;
57
+ Product. ProductType product_type = 1 ;
70
58
string identifier = 2 ;
71
59
}
72
60
Original file line number Diff line number Diff line change @@ -16,3 +16,4 @@ pub mod errors;
16
16
pub mod pike;
17
17
pub mod schema;
18
18
pub mod track_and_trace;
19
+ pub mod product;
Original file line number Diff line number Diff line change
1
+ // Copyright (c) 2019 Target Brands, Inc.
2
+ //
3
+ // Licensed under the Apache License, Version 2.0 (the "License");
4
+ // you may not use this file except in compliance with the License.
5
+ // You may obtain a copy of the License at
6
+ //
7
+ // http://www.apache.org/licenses/LICENSE-2.0
8
+ //
9
+ // Unless required by applicable law or agreed to in writing, software
10
+ // distributed under the License is distributed on an "AS IS" BASIS,
11
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ // See the License for the specific language governing permissions and
13
+ // limitations under the License.
14
+
15
+ use super :: errors;
16
+
17
+ pub mod payload;
18
+ pub mod state;
You can’t perform that action at this time.
0 commit comments