rerobe-js-orm 4.0.7 → 4.0.9
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.
|
@@ -91,6 +91,7 @@ export default class OrderHelpers {
|
|
|
91
91
|
taxAmount?: Money | undefined;
|
|
92
92
|
discountedPrice?: Money | undefined;
|
|
93
93
|
taxAmountWithDiscount?: Money | undefined;
|
|
94
|
+
handle?: string | undefined;
|
|
94
95
|
title: string;
|
|
95
96
|
quantity: string | number;
|
|
96
97
|
variant: ProductVariant | null;
|
|
@@ -164,6 +165,7 @@ export default class OrderHelpers {
|
|
|
164
165
|
taxAmount?: Money | undefined;
|
|
165
166
|
discountedPrice?: Money | undefined;
|
|
166
167
|
taxAmountWithDiscount?: Money | undefined;
|
|
168
|
+
handle?: string | undefined;
|
|
167
169
|
title: string;
|
|
168
170
|
quantity: string | number;
|
|
169
171
|
variant: ProductVariant | null;
|
|
@@ -115,6 +115,7 @@ class OrderHelpers {
|
|
|
115
115
|
amount: Number(Number((taxProps === null || taxProps === void 0 ? void 0 : taxProps.taxAmountWithDiscount) || 0).toFixed(2)),
|
|
116
116
|
currencyCode,
|
|
117
117
|
},
|
|
118
|
+
handle: product.handle || '',
|
|
118
119
|
};
|
|
119
120
|
}
|
|
120
121
|
toFixedPointPrice(price) {
|
|
@@ -513,7 +514,7 @@ class OrderHelpers {
|
|
|
513
514
|
referenceNumber = (_s = (_r = payload.zettleTransactionObj) === null || _r === void 0 ? void 0 : _r.referenceNumber) !== null && _s !== void 0 ? _s : '';
|
|
514
515
|
}
|
|
515
516
|
else if (payload === null || payload === void 0 ? void 0 : payload.paymentIntentObj) {
|
|
516
|
-
const charge = (_u = (_t = payload.paymentIntentObj.charges) === null || _t === void 0 ? void 0 : _t[0]) !== null && _u !== void 0 ? _u : (_w = (_v = payload.charges) === null || _v === void 0 ? void 0 : _v.data) === null || _w === void 0 ? void 0 : _w[0];
|
|
517
|
+
const charge = (_u = (_t = payload.paymentIntentObj.charges) === null || _t === void 0 ? void 0 : _t[0]) !== null && _u !== void 0 ? _u : (_w = (_v = payload.paymentIntentObj.charges) === null || _v === void 0 ? void 0 : _v.data) === null || _w === void 0 ? void 0 : _w[0];
|
|
517
518
|
aid =
|
|
518
519
|
(_4 = (_0 = (_z = (_y = (_x = charge === null || charge === void 0 ? void 0 : charge.paymentMethodDetails) === null || _x === void 0 ? void 0 : _x.cardPresentDetails) === null || _y === void 0 ? void 0 : _y.receipt) === null || _z === void 0 ? void 0 : _z.dedicatedFileName) !== null && _0 !== void 0 ? _0 : (_3 = (_2 = (_1 = charge === null || charge === void 0 ? void 0 : charge.payment_method_details) === null || _1 === void 0 ? void 0 : _1.card_present) === null || _2 === void 0 ? void 0 : _2.receipt) === null || _3 === void 0 ? void 0 : _3.dedicated_file_name) !== null && _4 !== void 0 ? _4 : '';
|
|
519
520
|
tvr =
|