@restorecommerce/protos 0.4.6 → 0.4.11

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 CHANGED
@@ -3,6 +3,63 @@
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
+ ## [0.4.11](https://github.com/restorecommerce/libs/compare/@restorecommerce/protos@0.4.10...@restorecommerce/protos@0.4.11) (2021-12-09)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **protos:** updated access_control proto to include `obligation` in isAllowed and whatIsAllowed response. ([c2af601](https://github.com/restorecommerce/libs/commit/c2af60104bf8cbcde9296ee99a374b6bdddb132a))
12
+
13
+
14
+
15
+
16
+
17
+ ## [0.4.10](https://github.com/restorecommerce/libs/compare/@restorecommerce/protos@0.4.9...@restorecommerce/protos@0.4.10) (2021-12-06)
18
+
19
+
20
+ ### Bug Fixes
21
+
22
+ * **protos:** fixed import and reference errors ([6efb6b1](https://github.com/restorecommerce/libs/commit/6efb6b1954bf6449f8c58e267f959b22c45e8066))
23
+ * **protos:** updated graph proto to include operation status ([dcf0a39](https://github.com/restorecommerce/libs/commit/dcf0a3920bcfd098efdd42d6186864359025b1fd))
24
+
25
+
26
+
27
+
28
+
29
+ ## [0.4.9](https://github.com/restorecommerce/libs/compare/@restorecommerce/protos@0.4.8...@restorecommerce/protos@0.4.9) (2021-11-08)
30
+
31
+
32
+ ### Bug Fixes
33
+
34
+ * **protos:** rename sourcePath to sourceObject for Move api ([11c5049](https://github.com/restorecommerce/libs/commit/11c504939fc22005c22dc28b3b6886684a1224c3))
35
+
36
+
37
+
38
+
39
+
40
+ ## [0.4.8](https://github.com/restorecommerce/libs/compare/@restorecommerce/protos@0.4.7...@restorecommerce/protos@0.4.8) (2021-11-05)
41
+
42
+
43
+ ### Bug Fixes
44
+
45
+ * **protos:** fix move response ([c6c16c1](https://github.com/restorecommerce/libs/commit/c6c16c1b0f86656fc29a240876fde9207debd335))
46
+ * **protos:** updated ostorage protos listRequest adding max_keys and prefix, added move api ([9854365](https://github.com/restorecommerce/libs/commit/9854365e7ba486edce922704af7539a5ba9a1095))
47
+
48
+
49
+
50
+
51
+
52
+ ## [0.4.7](https://github.com/restorecommerce/libs/compare/@restorecommerce/protos@0.4.6...@restorecommerce/protos@0.4.7) (2021-10-25)
53
+
54
+
55
+ ### Bug Fixes
56
+
57
+ * **protos:** restructured payment proto ([b5a8703](https://github.com/restorecommerce/libs/commit/b5a8703a7818cc233e579fa9bb0e5f0bba8b0492))
58
+
59
+
60
+
61
+
62
+
6
63
  ## [0.4.6](https://github.com/restorecommerce/libs/compare/@restorecommerce/protos@0.4.5...@restorecommerce/protos@0.4.6) (2021-10-19)
7
64
 
8
65
 
@@ -6,6 +6,7 @@ import "google/protobuf/any.proto";
6
6
  import "io/restorecommerce/rule.proto";
7
7
  import "io/restorecommerce/policy_set.proto";
8
8
  import "io/restorecommerce/status.proto";
9
+ import "io/restorecommerce/attribute.proto";
9
10
 
10
11
  /**
11
12
  * Access control service interface.
@@ -32,14 +33,15 @@ message Response {
32
33
  INDETERMINATE = 3;
33
34
  }
34
35
  Decision decision = 1;
35
- string obligation = 2;
36
+ repeated io.restorecommerce.attribute.Attribute obligation = 2;
36
37
  bool evaluation_cacheable = 3;
37
38
  io.restorecommerce.status.OperationStatus operation_status = 4;
38
39
  }
39
40
 
40
41
  message ReverseQuery {
41
42
  repeated io.restorecommerce.policy_set.PolicySetRQ policy_sets = 1;
42
- io.restorecommerce.status.OperationStatus operation_status = 2;
43
+ repeated io.restorecommerce.attribute.Attribute obligation = 2;
44
+ io.restorecommerce.status.OperationStatus operation_status = 3;
43
45
  }
44
46
 
45
47
  service Service {
@@ -6,6 +6,9 @@ import "google/protobuf/any.proto";
6
6
  import "io/restorecommerce/resource_base.proto";
7
7
  import "io/restorecommerce/auth.proto";
8
8
  import "io/restorecommerce/status.proto";
9
+ import "io/restorecommerce/address.proto";
10
+ import "io/restorecommerce/country.proto";
11
+ import "io/restorecommerce/meta.proto";
9
12
 
10
13
  /**
11
14
  Microservice definition.
@@ -52,20 +55,6 @@ service Service {
52
55
  rpc Delete (io.restorecommerce.resourcebase.DeleteRequest) returns (io.restorecommerce.resourcebase.DeleteResponse);
53
56
  }
54
57
 
55
- enum AddressType {
56
- Standard = 0;
57
- DHL_Packstation = 1;
58
- DHL_Postfiliale = 2;
59
- //UPS_Whatever
60
- }
61
-
62
- enum LabelType {
63
- Default = 0;
64
- URL = 1;
65
- PDF = 2;
66
- Image = 3;
67
- }
68
-
69
58
  enum State {
70
59
  Incomplete = 0;
71
60
  Ordered = 1;
@@ -86,36 +75,52 @@ message Contact {
86
75
  string phone = 3;
87
76
  }
88
77
 
78
+ message Branch {
79
+ string branch_number = 1;
80
+ string post_number = 2;
81
+ }
82
+
83
+ message Packstation {
84
+ string station_number = 1;
85
+ string post_number = 2;
86
+ }
87
+
89
88
  message Address {
90
- AddressType address_type = 1;
89
+ string title = 1;
91
90
  repeated string name = 2;
92
- string street = 3;
93
- string number = 4;
94
- string addition = 5;
95
- string zip = 6;
96
- string city = 7;
97
- Origin origin = 8;
98
- Contact contact = 9;
91
+ oneof type {
92
+ io.restorecommerce.address.Address address = 3;
93
+ Packstation packstation = 4;
94
+ Branch branch = 5;
95
+ };
96
+ io.restorecommerce.country.Country country = 6;
97
+ Contact contact = 7;
99
98
  }
100
99
 
101
100
  message Parcel {
102
- float weight = 1;
103
- float width = 2;
104
- float length = 3;
105
- float height = 4;
101
+ int32 quantity = 1;
102
+ float weight = 2;
103
+ float height = 3;
104
+ float width = 4;
105
+ float length = 5;
106
106
  }
107
107
 
108
108
  message Order {
109
- string uks_id = 1; //id from external services for reference
110
- repeated Parcel parcels = 4;
111
- Address sender = 6;
112
- Address receiver = 7;
113
- string notify = 8;
109
+ repeated Parcel parcels = 1;
110
+ Address sender = 2;
111
+ Address receiver = 3;
112
+ string notify = 5;
114
113
  }
115
114
 
116
115
  message Label {
117
- LabelType type = 1;
118
- string data = 2; //Could be an URL, base64 or bytes of i.e. a PDF or PNG...
116
+ oneof type {
117
+ string url = 1;
118
+ string pdf = 2;
119
+ string png = 3;
120
+ }
121
+ string shipment_id = 4; //filled on Order
122
+ State state = 5; //update by Track
123
+ io.restorecommerce.status.Status status = 6; //API status
119
124
  }
120
125
 
121
126
  message Event {
@@ -148,10 +153,7 @@ message Fulfillment {
148
153
  string product_id = 3;
149
154
  Order order = 4;
150
155
  io.restorecommerce.meta.Meta meta = 5;
151
- string shipment_id = 6; //filled on Order
152
- Label label = 7; //filled on Order
153
- State state = 8; //update by Track
154
- io.restorecommerce.status.Status status = 9; //API status
156
+ Label label = 6; //filled on Order
155
157
  }
156
158
 
157
159
  message FulfillmentResponse {
@@ -195,4 +197,8 @@ message CancelRequestList {
195
197
  message CancelResultList {
196
198
  repeated io.restorecommerce.status.Status items = 1;
197
199
  io.restorecommerce.status.OperationStatus operation_status = 2;
200
+ }
201
+
202
+ message Deleted {
203
+ string id = 1;
198
204
  }
@@ -6,7 +6,7 @@ import "io/restorecommerce/resource_base.proto";
6
6
  import "io/restorecommerce/meta.proto";
7
7
  import "io/restorecommerce/auth.proto";
8
8
  import "io/restorecommerce/status.proto";
9
- import "io/restorecommerce/fulfillment_courier_dhl.proto";
9
+ import "google/protobuf/any.proto";
10
10
 
11
11
  /**
12
12
  Microservice defination
@@ -22,15 +22,12 @@ service Service {
22
22
 
23
23
  message Courier {
24
24
  string id = 1;
25
- string uks_id = 2;
26
25
  string name = 4;
27
26
  string description = 5;
28
27
  string logo = 6;
29
28
  string website = 7;
30
- //google.protobuf.Any data = 8;
31
- oneof type {
32
- io.restorecommerce.fulfillment_courier_dhl.Setting DHL = 8;
33
- }
29
+ string stub_type = 8;
30
+ google.protobuf.Any configuration = 9;
34
31
  io.restorecommerce.meta.Meta meta = 10;
35
32
  }
36
33
 
@@ -50,3 +47,7 @@ message CourierResponseList {
50
47
  uint32 total_count = 2;
51
48
  io.restorecommerce.status.OperationStatus operation_status = 3;
52
49
  }
50
+
51
+ message Deleted {
52
+ string id = 1;
53
+ }
@@ -6,7 +6,9 @@ import "io/restorecommerce/resource_base.proto";
6
6
  import "io/restorecommerce/meta.proto";
7
7
  import "io/restorecommerce/auth.proto";
8
8
  import "io/restorecommerce/status.proto";
9
- import "io/restorecommerce/fulfillment_courier_dhl.proto";
9
+ import "io/restorecommerce/fulfillment.proto";
10
+ import "io/restorecommerce/country.proto";
11
+ import "io/restorecommerce/attribute.proto";
10
12
 
11
13
  /**
12
14
  Microservice defination
@@ -14,22 +16,67 @@ Microservice defination
14
16
 
15
17
  service Service {
16
18
  rpc Read (io.restorecommerce.resourcebase.ReadRequest) returns (ProductResponseList);
19
+ rpc Find (QueryList) returns (ProductResponseList);
20
+ /* - start_address
21
+ - destination_address
22
+ - good[]:
23
+ - quantity
24
+ - weight
25
+ - height
26
+ - width
27
+ - depth*/
28
+
17
29
  rpc Create (ProductList) returns (ProductResponseList);
18
30
  rpc Update (ProductList) returns (ProductResponseList);
19
31
  rpc Upsert (ProductList) returns (ProductResponseList);
20
32
  rpc Delete (io.restorecommerce.resourcebase.DeleteRequest) returns (io.restorecommerce.resourcebase.DeleteResponse);
21
33
  }
22
34
 
35
+ message Good {
36
+ double quantity = 1;
37
+ double weight = 2;
38
+ double height = 3;
39
+ double width = 4;
40
+ double length = 5;
41
+ }
42
+
43
+ message Query {
44
+ io.restorecommerce.fulfillment.Address sender = 1;
45
+ io.restorecommerce.fulfillment.Address receiver = 2;
46
+ repeated Good good = 3;
47
+ }
48
+
49
+ message QueryList {
50
+ repeated Query items = 1;
51
+ uint32 total_count = 2;
52
+ io.restorecommerce.auth.Subject subject = 3;
53
+ }
54
+
23
55
  message Product {
24
56
  string id = 1;
25
- string uks_id = 2;
26
- string courier_id = 3;
27
- string name = 4;
28
- string description = 5;
29
- io.restorecommerce.meta.Meta meta = 6;
30
- oneof type {
31
- io.restorecommerce.fulfillment_courier_dhl.Product DHL = 7;
32
- }
57
+ string name = 2;
58
+ string description = 3;
59
+ string courier_id = 4;
60
+ repeated io.restorecommerce.country.Country start_country = 5;
61
+ repeated string start_zone = 6;
62
+ repeated io.restorecommerce.country.Country destination_country = 7;
63
+ repeated string destination_zone = 8;
64
+ repeated string tax_id = 9;
65
+ repeated io.restorecommerce.attribute.Attribute attributes = 10;
66
+ repeated Variant variants = 11;
67
+ io.restorecommerce.meta.Meta meta = 12;
68
+ }
69
+
70
+ message Variant {
71
+ string id = 1;
72
+ string name = 2;
73
+ string description = 3;
74
+ double price = 4;
75
+ double max_weight = 5;
76
+ double max_width = 6;
77
+ double max_height = 7;
78
+ double max_length = 8;
79
+ double max_volume = 9;
33
80
  }
34
81
 
35
82
  message ProductList {
@@ -47,4 +94,8 @@ message ProductResponseList {
47
94
  repeated ProductResponse items = 1;
48
95
  uint32 total_count = 2;
49
96
  io.restorecommerce.status.OperationStatus operation_status = 3;
97
+ }
98
+
99
+ message Deleted {
100
+ string id = 1;
50
101
  }
@@ -2,6 +2,7 @@ syntax = "proto3";
2
2
  package io.restorecommerce.graph;
3
3
  import "google/protobuf/any.proto";
4
4
  import "io/restorecommerce/auth.proto";
5
+ import "io/restorecommerce/status.proto";
5
6
 
6
7
  // Service provides the CRUD operations
7
8
  service Service {
@@ -33,6 +34,7 @@ message TraversalResponse {
33
34
  repeated VertexFields vertex_fields = 1;
34
35
  google.protobuf.Any paths = 2;
35
36
  google.protobuf.Any data = 3;
37
+ io.restorecommerce.status.OperationStatus operation_status = 4;
36
38
  }
37
39
 
38
40
  message VertexFields {
@@ -40,13 +40,14 @@ message Order {
40
40
  string name = 3;
41
41
  string description = 4;
42
42
  string status = 5;
43
- repeated Items items = 6;
43
+ string customer_reference = 6;
44
+ repeated Items items = 7;
44
45
  // sum of all the quantity_price will be total_price
45
- double total_price = 7;
46
+ double total_price = 8;
46
47
  // shipping address
47
- string shipping_contact_point_id = 8;
48
- string billing_contact_point_id = 9;
49
- double total_weight_in_kg = 10;
48
+ string shipping_contact_point_id = 9;
49
+ string billing_contact_point_id = 10;
50
+ double total_weight_in_kg = 11;
50
51
  }
51
52
 
52
53
  message Items {
@@ -15,15 +15,16 @@ service Service {
15
15
  rpc Put (stream Object) returns (PutResponse);
16
16
  rpc Delete (DeleteRequest) returns (io.restorecommerce.resourcebase.DeleteResponse);
17
17
  rpc List (ListRequest) returns (ListResponse);
18
- rpc Copy (CopyRequest) returns (CopyResponse);
18
+ rpc Copy (CopyRequestList) returns (CopyResponseList);
19
+ rpc Move (MoveRequestList) returns (MoveResponseList);
19
20
  }
20
21
 
21
- message CopyRequest {
22
+ message CopyRequestList {
22
23
  repeated CopyRequestItem items = 1;
23
24
  io.restorecommerce.auth.Subject subject = 2;
24
25
  }
25
26
 
26
- message CopyResponse {
27
+ message CopyResponseList {
27
28
  repeated copyResponsePayloadWithStatus response = 1;
28
29
  io.restorecommerce.status.OperationStatus operation_status = 2;
29
30
  }
@@ -142,6 +143,8 @@ message ListRequest {
142
143
  string bucket = 1;
143
144
  io.restorecommerce.filter.FilterOp filters = 2; /// Filter based on fieldName|operation, value|list
144
145
  io.restorecommerce.auth.Subject subject = 3;
146
+ int32 max_keys = 4;
147
+ string prefix = 5;
145
148
  }
146
149
 
147
150
  // OstorageMessage is used for emitting
@@ -152,3 +155,34 @@ message OstorageMessage {
152
155
  google.protobuf.Any metadata = 3;
153
156
  io.restorecommerce.auth.Subject subject = 4;
154
157
  }
158
+
159
+ message MoveRequestList {
160
+ repeated MoveRequestItem items = 1;
161
+ io.restorecommerce.auth.Subject subject = 2;
162
+ }
163
+
164
+ message MoveRequestItem {
165
+ string bucket = 1; // destination bucket name
166
+ string sourceObject = 2; // source object with bucket name
167
+ string key = 3; // destination key name
168
+ io.restorecommerce.meta.Meta meta = 4;
169
+ Options options = 5;
170
+ }
171
+
172
+ message MoveResponseList {
173
+ repeated MoveResponsePayloadWithStatus response = 1;
174
+ io.restorecommerce.status.OperationStatus operation_status = 2;
175
+ }
176
+
177
+ message MoveResponsePayloadWithStatus {
178
+ MoveResponseItem payload = 1;
179
+ io.restorecommerce.status.Status status = 2;
180
+ }
181
+
182
+ message MoveResponseItem {
183
+ string bucket = 1;
184
+ string sourceObject = 2;
185
+ string key = 3;
186
+ io.restorecommerce.meta.Meta meta = 4;
187
+ Options options = 5;
188
+ }
@@ -1,7 +1,7 @@
1
1
  syntax = "proto3";
2
2
  package io.restorecommerce.payment;
3
- import "google/protobuf/wrappers.proto";
4
3
  import "io/restorecommerce/auth.proto";
4
+ import "io/restorecommerce/status.proto";
5
5
 
6
6
  service Service {
7
7
  // Wrapper for setup_authorization in ActiveMerchant
@@ -36,12 +36,21 @@ message SetupRequest {
36
36
  io.restorecommerce.auth.Subject subject = 12;
37
37
  }
38
38
 
39
+ message SetupPayload {
40
+ string token = 1;
41
+ string confirm_initiation_url = 2;
42
+ string initiated_on = 3;
43
+ }
44
+
45
+ message SetupPayloadStatus {
46
+ SetupPayload payload = 1;
47
+ io.restorecommerce.status.Status status = 2;
48
+ }
49
+
39
50
  // Response object for setup calls.
40
51
  message SetupResponse {
41
- repeated PaymentError payment_errors = 1;
42
- string token = 2;
43
- string confirm_initiation_url = 3;
44
- string initiated_on = 4;
52
+ SetupPayloadStatus item = 1;
53
+ io.restorecommerce.status.OperationStatus operation_status = 2;
45
54
  }
46
55
 
47
56
  // Request object for authorization or purchase call for cardless payment.
@@ -64,12 +73,21 @@ message CaptureRequest {
64
73
  io.restorecommerce.auth.Subject subject = 5;
65
74
  }
66
75
 
76
+ message PaymentPayload {
77
+ string payment_id = 1;
78
+ string executed_on = 2;
79
+ }
80
+
81
+ message PaymentPayloadStatus {
82
+ PaymentPayload payload = 1;
83
+ io.restorecommerce.status.Status status = 2;
84
+ }
85
+
67
86
  // Unified response object for authorization, purchase and capture calls
68
87
  // for both standard and cardless payments.
69
88
  message PaymentResponse {
70
- repeated PaymentError payment_errors = 1;
71
- string payment_id = 2;
72
- string executed_on = 3;
89
+ PaymentPayloadStatus item = 1;
90
+ io.restorecommerce.status.OperationStatus operation_status = 2;
73
91
  }
74
92
 
75
93
  // Used for building ActiveMerchant::Billing::CreditCard instance.
@@ -90,21 +108,155 @@ message Item {
90
108
  int32 amount = 4;
91
109
  }
92
110
 
93
- // Error details.
94
- message PaymentError {
95
- bool killed = 1;
96
- int32 code = 2;
97
- google.protobuf.StringValue signal = 3;
98
- string cmd = 4;
99
- string stdout = 5;
100
- string stderr = 6;
101
- }
102
-
103
111
  // Possible service providers. Provider names must be exactly as in config.yml.
104
112
  enum Provider {
105
113
  NO_PROVIDER = 0;
106
- PaypalExpressGateway = 1;
107
- AuthorizeNetGateway = 2;
114
+ Adyen = 1;
115
+ AuthorizeNetCIM = 2;
116
+ AuthorizeNet = 3;
117
+ AxcessMS = 4;
118
+ Balanced = 5;
119
+ BamboraAsiaPacific = 6;
120
+ BankFrick = 7;
121
+ Banwire = 8;
122
+ BarclaysePDQExtraPlus = 9;
123
+ Be2Bill = 10;
124
+ Beanstreamcom = 11;
125
+ BluePay = 12;
126
+ Borgun = 13;
127
+ Braintree = 14;
128
+ BridgePay = 15;
129
+ Cardknox = 16;
130
+ CardSave = 17;
131
+ CardStream = 18;
132
+ Cashnet = 19;
133
+ Cecabank = 20;
134
+ Cenpos = 21;
135
+ CAMSCentralAccountManagementSystem = 22;
136
+ Checkoutcom = 23;
137
+ Clearhaus = 24;
138
+ Commercegate = 25;
139
+ Conekta = 26;
140
+ CyberSource = 27;
141
+ DIBS = 28;
142
+ DataCash = 29;
143
+ Efsnet = 30;
144
+ ElavonMyVirtualMerchant = 31;
145
+ ePay = 32;
146
+ EVOCanada = 33;
147
+ eWAY = 34;
148
+ eWAYRapid = 35;
149
+ Exact = 36;
150
+ Ezic = 37;
151
+ FatZebra = 38;
152
+ FederatedCanada = 39;
153
+ FinansbankWebPOS = 40;
154
+ Flo2Cash = 41;
155
+ stPayGatewayNet = 42;
156
+ FirstDataGlobalGatewaye4 = 43;
157
+ FirstGiving = 44;
158
+ GarantiSanalPOS = 45;
159
+ GlobalTransport = 46;
160
+ HDFC = 47;
161
+ HeartlandPaymentSystems = 48;
162
+ iATSPayments = 49;
163
+ InspireCommerce = 50;
164
+ InstaPay = 51;
165
+ IPP = 52;
166
+ Iridium = 53;
167
+ iTransact = 54;
168
+ JetPay = 55;
169
+ Komoju = 56;
170
+ LinkPoint = 57;
171
+ LitleCo = 58;
172
+ maxiPago = 59;
173
+ MerchanteSolutions = 60;
174
+ MerchantOneGateway = 61;
175
+ MerchantWARE = 62;
176
+ MerchantWarrior = 63;
177
+ Mercury = 64;
178
+ MetricsGlobal = 65;
179
+ MasterCardInternetGatewayServiceMiGS = 66;
180
+ ModernPayments = 67;
181
+ MONEI = 68;
182
+ Moneris = 69;
183
+ MoneyMovers = 70;
184
+ NABTransact = 71;
185
+ NELiXTransaX = 72;
186
+ NetRegistry = 73;
187
+ BBSNetaxept = 74;
188
+ NETbilling = 75;
189
+ NETPAYGateway = 76;
190
+ NMI = 77;
191
+ Ogone = 78;
192
+ Omise = 79;
193
+ Openpay = 80;
194
+ OptimalPayments = 81;
195
+ OrbitalPaymentech = 82;
196
+ Pagarme = 83;
197
+ PagoFacil = 84;
198
+ PayConex = 85;
199
+ PayGatePayXML = 86;
200
+ PayHub = 87;
201
+ PayJunction = 89;
202
+ PaySecure = 90;
203
+ PayboxDirect = 91;
204
+ Payeezy = 92;
205
+ Payex = 93;
206
+ PaymentExpress = 94;
207
+ PAYMILL = 95;
208
+ PayPalExpressCheckout = 96;
209
+ PayPalExpressCheckoutUK = 97;
210
+ PayPalPayflowPro = 98;
211
+ PayPalPaymentsProUS = 99;
212
+ PayPalPaymentsProUK = 100;
213
+ PayPalWebsitePaymentsProCA = 101;
214
+ PayPalExpressCheckoutforDigitalGoods = 102;
215
+ Payscout = 103;
216
+ Paystation = 104;
217
+ PayWay = 105;
218
+ PayUIndia = 106;
219
+ PinPayments = 107;
220
+ PlugnPay = 108;
221
+ Psigate = 109;
222
+ PSLPaymentSolutions = 110;
223
+ QuickBooksMerchantServices = 111;
224
+ QuickBooksPayments = 112;
225
+ QuantumGateway = 113;
226
+ QuickPay = 114;
227
+ Qvalent = 115;
228
+ Raven = 116;
229
+ Realex = 117;
230
+ Redsys = 118;
231
+ S5 = 119;
232
+ SagePay = 120;
233
+ SagePaymentSolutions = 121;
234
+ SallieMae = 122;
235
+ SecureNet = 123;
236
+ SecurePay = 124;
237
+ SecurePayTech = 125;
238
+ SecurionPay = 126;
239
+ SkipJack = 127;
240
+ SoEasyPay = 128;
241
+ Spreedly = 129;
242
+ Stripe = 130;
243
+ Swipe = 131;
244
+ TNS = 132;
245
+ TransactPro = 133;
246
+ TransFirst = 134;
247
+ Transnational = 135;
248
+ Trexle = 136;
249
+ TrustCommerce = 137;
250
+ USAePay = 138;
251
+ VancoPaymentSolutions = 139;
252
+ Verifi = 140;
253
+ ViaKLIX = 141;
254
+ WebPay = 142;
255
+ WePay = 143;
256
+ Wirecard = 144;
257
+ WorldpayGlobal = 145;
258
+ WorldpayOnline = 146;
259
+ WorldpayUS = 147;
108
260
  }
109
261
 
110
262
  // Possible payment identifiers.
@@ -7,6 +7,7 @@ import "io/restorecommerce/meta.proto";
7
7
  import "io/restorecommerce/image.proto";
8
8
  import "io/restorecommerce/auth.proto";
9
9
  import "io/restorecommerce/status.proto";
10
+ import "io/restorecommerce/attribute.proto";
10
11
 
11
12
  service Service {
12
13
  rpc Read (io.restorecommerce.resourcebase.ReadRequest) returns (ProductListResponse);
@@ -37,7 +38,7 @@ message Product {
37
38
  Identifier prototype = 6;
38
39
  Identifier category = 7;
39
40
  }
40
- repeated string tax_type_id = 8;
41
+ repeated string tax_id = 8;
41
42
  repeated Variant variants = 9;
42
43
  string gtin = 10;
43
44
  }
@@ -73,12 +74,8 @@ message Variant {
73
74
  double sale_price = 7;
74
75
  repeated io.restorecommerce.image.Image image = 8;
75
76
  string stock_keeping_unit = 9;
76
- repeated VariantAttribute attributes = 10;
77
- }
78
-
79
- message VariantAttribute {
80
- string key = 1;
81
- repeated string values = 2;
77
+ string template_variant = 10;
78
+ repeated io.restorecommerce.attribute.Attribute attributes = 11;
82
79
  }
83
80
 
84
81
  message Bundle {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@restorecommerce/protos",
3
- "version": "0.4.6",
3
+ "version": "0.4.11",
4
4
  "description": "Protobuf descriptors for Restorecommerce services",
5
5
  "author": "n-fuse GmbH",
6
6
  "repository": {
@@ -15,5 +15,5 @@
15
15
  "protobufs"
16
16
  ],
17
17
  "scripts": {},
18
- "gitHead": "56d4bf46c83c5cc8993629fc1ec5adad15761cab"
18
+ "gitHead": "162ea83a0b06d629c84f760e69bb07ca412800fe"
19
19
  }
@@ -1,37 +0,0 @@
1
- syntax = "proto3";
2
-
3
- package io.restorecommerce.fulfillment_courier_dhl;
4
-
5
- message Auth {
6
- string user = 1;
7
- string signature = 2;
8
- }
9
-
10
- message WSDLHeader {
11
- Auth Authentification = 1;
12
- }
13
-
14
- message Ordering {
15
- string wsdl = 1;
16
- string endpoint = 2;
17
- string username = 3;
18
- string password = 4;
19
- WSDLHeader wsdl_header = 5;
20
- }
21
-
22
- message Tracking {
23
- string endpoint = 1;
24
- string appname = 2;
25
- string username = 3;
26
- string token = 4;
27
- string password = 5;
28
- }
29
-
30
- message Setting {
31
- Ordering ordering = 0;
32
- Tracking tracking = 1;
33
- }
34
-
35
- message Product {
36
- string account_number = 1;
37
- }