rerobe-js-orm 3.0.40 → 3.0.42
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/lib/models/Product.js
CHANGED
|
@@ -231,7 +231,7 @@ class Product extends Base_1.default {
|
|
|
231
231
|
},
|
|
232
232
|
],
|
|
233
233
|
inventoryItem: {
|
|
234
|
-
cost: this.attributes.costPerItem,
|
|
234
|
+
cost: this.utilities.sanitizeNumber(this.attributes.costPerItem, 0),
|
|
235
235
|
},
|
|
236
236
|
sku: this.attributes.sku,
|
|
237
237
|
price: this.attributes.price || '0',
|
|
@@ -18,5 +18,8 @@ declare type CustomerNotificationAttributes = {
|
|
|
18
18
|
declare type ORDER_CONFIRMATION_TYPE = 'ORDER_CONFIRMATION';
|
|
19
19
|
declare type ORDER_CANCELLATION_TYPE = 'ORDER_CANCELLATION';
|
|
20
20
|
declare type ORDER_REFUND = 'ORDER_REFUND';
|
|
21
|
+
declare type ORDER_READY_FOR_PICK_UP = 'ORDER_READY_FOR_PICK_UP';
|
|
21
22
|
declare type SHIPPING_CONFIRMATION = 'SHIPPING_CONFIRMATION';
|
|
22
|
-
declare type
|
|
23
|
+
declare type GENERAL_MESSAGE = 'GENERAL_MESSAGE';
|
|
24
|
+
declare type ABANDONED_CART = 'ABANDONED_CART';
|
|
25
|
+
declare type CustomerNotificationType = ORDER_CONFIRMATION_TYPE | ORDER_CANCELLATION_TYPE | SHIPPING_CONFIRMATION | ORDER_REFUND | GENERAL_MESSAGE | ABANDONED_CART;
|