@pisell/pisellos 2.2.200 → 2.2.201
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.
|
@@ -1129,8 +1129,8 @@ export var OrderModule = /*#__PURE__*/function (_BaseModule) {
|
|
|
1129
1129
|
var _ref17, _paymentRecord$origin;
|
|
1130
1130
|
var paymentRecord = payment;
|
|
1131
1131
|
var metadata = paymentRecord.metadata && _typeof(paymentRecord.metadata) === 'object' ? _objectSpread({}, paymentRecord.metadata) : {};
|
|
1132
|
-
if (!metadata.
|
|
1133
|
-
metadata.
|
|
1132
|
+
if (!metadata.unique_payment_number) {
|
|
1133
|
+
metadata.unique_payment_number = createUuidV4();
|
|
1134
1134
|
}
|
|
1135
1135
|
var normalized = _objectSpread(_objectSpread({}, paymentRecord), {}, {
|
|
1136
1136
|
metadata: metadata,
|
|
@@ -1976,8 +1976,8 @@ export var BaseSalesImpl = /*#__PURE__*/function (_BaseModule) {
|
|
|
1976
1976
|
if (shopWalletPassId !== undefined && shopWalletPassId !== null) {
|
|
1977
1977
|
metadata.shop_wallet_pass_id = shopWalletPassId;
|
|
1978
1978
|
}
|
|
1979
|
-
if (!metadata.
|
|
1980
|
-
metadata.
|
|
1979
|
+
if (!metadata.unique_payment_number) {
|
|
1980
|
+
metadata.unique_payment_number = createUuidV4();
|
|
1981
1981
|
}
|
|
1982
1982
|
var payments = this.store.order.addOrderPayment(_objectSpread(_objectSpread({}, paymentRecord), {}, {
|
|
1983
1983
|
metadata: metadata
|
|
@@ -730,8 +730,8 @@ var OrderModule = class extends import_BaseModule.BaseModule {
|
|
|
730
730
|
normalizePaymentSource(payment, options) {
|
|
731
731
|
const paymentRecord = payment;
|
|
732
732
|
const metadata = paymentRecord.metadata && typeof paymentRecord.metadata === "object" ? { ...paymentRecord.metadata } : {};
|
|
733
|
-
if (!metadata.
|
|
734
|
-
metadata.
|
|
733
|
+
if (!metadata.unique_payment_number) {
|
|
734
|
+
metadata.unique_payment_number = (0, import_utils.createUuidV4)();
|
|
735
735
|
}
|
|
736
736
|
const normalized = {
|
|
737
737
|
...paymentRecord,
|
|
@@ -1253,8 +1253,8 @@ var BaseSalesImpl = class extends import_BaseModule.BaseModule {
|
|
|
1253
1253
|
if (shopWalletPassId !== void 0 && shopWalletPassId !== null) {
|
|
1254
1254
|
metadata.shop_wallet_pass_id = shopWalletPassId;
|
|
1255
1255
|
}
|
|
1256
|
-
if (!metadata.
|
|
1257
|
-
metadata.
|
|
1256
|
+
if (!metadata.unique_payment_number) {
|
|
1257
|
+
metadata.unique_payment_number = (0, import_utils.createUuidV4)();
|
|
1258
1258
|
}
|
|
1259
1259
|
const payments = this.store.order.addOrderPayment({
|
|
1260
1260
|
...paymentRecord,
|