@peabody-soft/mbs-protos 1.3.0 → 1.5.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.
|
@@ -12,9 +12,8 @@ import "Message.proto";
|
|
|
12
12
|
// own and are replaced by the server, which returns the new ones in the BusinessSyncInResponse.
|
|
13
13
|
message BusinessSyncInRequest {
|
|
14
14
|
|
|
15
|
-
//
|
|
16
|
-
|
|
17
|
-
string businessId = 1;
|
|
15
|
+
// Client-side cursor for the customer's orders and shopping cart (Constants.MESSAGE_ENTITY_TYPE_ID).
|
|
16
|
+
int64 messageUpdateNumber = 1;
|
|
18
17
|
|
|
19
18
|
// The shopping cart (a PartyPreferencesPayload) and orders (a SalesOrderPayload) of the customer -
|
|
20
19
|
// entity type Constants.MESSAGE_ENTITY_TYPE_ID, the only entity type a customer may push.
|
|
@@ -4,6 +4,7 @@ option java_multiple_files = true;
|
|
|
4
4
|
option java_package = "com.merabills.server.core.generated";
|
|
5
5
|
|
|
6
6
|
import "AuthTokens.proto";
|
|
7
|
+
import "Message.proto";
|
|
7
8
|
|
|
8
9
|
// The answer to a BusinessSyncInRequest: the update number the server assigned to the pushed
|
|
9
10
|
// entities, one per entity type. Raise the matching cursor to this value so the next sync out does
|
|
@@ -15,7 +16,6 @@ message BusinessSyncInResponse {
|
|
|
15
16
|
// what the client already holds still works - never a signal to drop the tokens it has.
|
|
16
17
|
optional AuthTokens authTokens = 1;
|
|
17
18
|
|
|
18
|
-
//
|
|
19
|
-
|
|
20
|
-
int64 messageUpdateNumber = 2;
|
|
19
|
+
// The orders of the customer, and their shopping cart
|
|
20
|
+
repeated Message messages = 2;
|
|
21
21
|
}
|
package/SalesOrderPayload.proto
CHANGED
|
@@ -3,12 +3,12 @@ package com.merabills.storefront;
|
|
|
3
3
|
option java_multiple_files = true;
|
|
4
4
|
option java_package = "com.merabills.server.core.generated";
|
|
5
5
|
|
|
6
|
+
import "Address.proto";
|
|
6
7
|
import "FulfillmentMode.proto";
|
|
7
8
|
import "OrderStatus.proto";
|
|
8
9
|
import "ShoppingList.proto";
|
|
9
10
|
|
|
10
|
-
// The payload of a SALES_ORDER message: an order placed by a customer.
|
|
11
|
-
// not part of this payload.
|
|
11
|
+
// The payload of a SALES_ORDER message: an order placed by a customer.
|
|
12
12
|
// Excluded: serviceStationNumber, dueDate.
|
|
13
13
|
message SalesOrderPayload {
|
|
14
14
|
|
|
@@ -28,9 +28,15 @@ message SalesOrderPayload {
|
|
|
28
28
|
// Id of the delivery address, in User.addresses of the customer. 0 means no address.
|
|
29
29
|
int64 deliveryAddressId = 6;
|
|
30
30
|
|
|
31
|
+
// If present, takes precedence over delivery address id
|
|
32
|
+
Address deliveryAddress = 7;
|
|
33
|
+
|
|
31
34
|
// Time this order was created, in milliseconds since Jan 1, 1970 00:00:00 UTC
|
|
32
|
-
int64 creationDate =
|
|
35
|
+
int64 creationDate = 8;
|
|
33
36
|
|
|
34
37
|
// Note from the customer (at most Constants.SALES_ORDER_NOTE_MAX_LENGTH)
|
|
35
|
-
optional string note =
|
|
36
|
-
|
|
38
|
+
optional string note = 9;
|
|
39
|
+
|
|
40
|
+
// Payment received towards this order so far. Can only be set by an operator of the business.
|
|
41
|
+
optional int64 paymentReceived = 10;
|
|
42
|
+
}
|