@peabody-soft/mbs-protos 1.4.0 → 1.6.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/Constants.proto CHANGED
@@ -148,7 +148,7 @@ enum Constants {
148
148
  ENTITY_ID_UTILITIES = 1;
149
149
  ENTITY_ID_UNASSIGNED = 255;
150
150
 
151
- // The two price lists every business is created with (PriceList.DEFAULT_SALE_PRICE_LIST_ID /
151
+ // The two price lists every business is created with (PriceListIds.DEFAULT_SALE_PRICE_LIST_ID /
152
152
  // DEFAULT_PURCHASE_PRICE_LIST_ID), well known rather than assigned. These are the low parts of a
153
153
  // 64 bit id too big for an enum value: id = (PRICE_LIST_ENTITY_TYPE_ID << ENTITY_TYPE_BIT_SHIFT) |
154
154
  // value, using 64 bit arithmetic. The sale list is what a business sells from unless given
@@ -157,6 +157,14 @@ enum Constants {
157
157
  DEFAULT_SALE_PRICE_LIST = 0;
158
158
  DEFAULT_PURCHASE_PRICE_LIST = 1;
159
159
 
160
+ // The other built-in price lists (PriceListIds.MERABILLS_ONLINE / AMAZON_SELLER /
161
+ // FACEBOOK_MARKETPLACE / WHATSAPP_BUSINESS), well known rather than assigned, built the same way
162
+ // as DEFAULT_SALE_PRICE_LIST / DEFAULT_PURCHASE_PRICE_LIST above.
163
+ MERABILLS_ONLINE_PRICE_LIST = 64;
164
+ AMAZON_SELLER_PRICE_LIST = 65;
165
+ FACEBOOK_MARKETPLACE_PRICE_LIST = 66;
166
+ WHATSAPP_BUSINESS_PRICE_LIST = 67;
167
+
160
168
  // The earliest valid Entity.createdAt / updatedAt, in milliseconds since Jan 1, 1970 UTC. Default
161
169
  // entities are created with this time so that a copy from another device always wins a sync.
162
170
  DEFAULT_ENTITY_CREATED_AT = 1;
@@ -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. Payments made against it are
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 = 7;
35
+ int64 creationDate = 8;
33
36
 
34
37
  // Note from the customer (at most Constants.SALES_ORDER_NOTE_MAX_LENGTH)
35
- optional string note = 8;
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
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@peabody-soft/mbs-protos",
3
- "version": "1.4.0",
3
+ "version": "1.6.0",
4
4
  "description": "The MeraBills shop wire protocol",
5
5
  "author": "Peabody Soft",
6
6
  "license": "AGPL-3.0-or-later",