@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.unique_identification_number) {
1133
- metadata.unique_identification_number = createUuidV4();
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.unique_identification_number) {
1980
- metadata.unique_identification_number = createUuidV4();
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.unique_identification_number) {
734
- metadata.unique_identification_number = (0, import_utils.createUuidV4)();
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.unique_identification_number) {
1257
- metadata.unique_identification_number = (0, import_utils.createUuidV4)();
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,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "private": false,
3
3
  "name": "@pisell/pisellos",
4
- "version": "2.2.200",
4
+ "version": "2.2.201",
5
5
  "description": "一个可扩展的前端模块化SDK框架,支持插件系统",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",