@pisell/pisellos 0.0.439 → 0.0.440

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.
@@ -20,7 +20,9 @@ export declare enum PaymentStatus {
20
20
  /** 部分支付 - 支付金额不足订单总金额 */
21
21
  PartiallyPaid = "partially_paid",
22
22
  /** 已完成 - 本地支付完成,后台自动同步到服务器 */
23
- Finished = "finish"
23
+ Finished = "finish",
24
+ /** 已撤销 - 本地订单取消 */
25
+ Voided = "voided"
24
26
  }
25
27
  /**
26
28
  * 任务状态枚举
@@ -20,6 +20,7 @@ export var PaymentStatus = /*#__PURE__*/function (PaymentStatus) {
20
20
  PaymentStatus["Sync"] = "sync";
21
21
  PaymentStatus["PartiallyPaid"] = "partially_paid";
22
22
  PaymentStatus["Finished"] = "finish";
23
+ PaymentStatus["Voided"] = "voided";
23
24
  return PaymentStatus;
24
25
  }({});
25
26
 
@@ -49,5 +49,5 @@ export declare class Product extends BaseModule implements Module {
49
49
  getCategories(): ProductCategory[];
50
50
  setOtherParams(key: string, value: any): void;
51
51
  getOtherParams(): any;
52
- getProductType(): "normal" | "duration" | "session";
52
+ getProductType(): "duration" | "session" | "normal";
53
53
  }
@@ -111,16 +111,15 @@ export var SummaryModule = /*#__PURE__*/function (_BaseModule) {
111
111
  value: function () {
112
112
  var _getSummary = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(cartItems) {
113
113
  var _this$shopStore$get;
114
- var shopInfo, scheduleModule, summary;
114
+ var shopInfo, summary;
115
115
  return _regeneratorRuntime().wrap(function _callee3$(_context3) {
116
116
  while (1) switch (_context3.prev = _context3.next) {
117
117
  case 0:
118
- shopInfo = ((_this$shopStore$get = this.shopStore.get('core')) === null || _this$shopStore$get === void 0 || (_this$shopStore$get = _this$shopStore$get.core) === null || _this$shopStore$get === void 0 ? void 0 : _this$shopStore$get.shop) || {};
119
- scheduleModule = this.core.getModule('appointmentBooking_schedule'); //@ts-ignore
120
- summary = calculatePriceDetails(shopInfo, cartItems, scheduleModule === null || scheduleModule === void 0 ? void 0 : scheduleModule.isInScheduleByDate, this.store.surchargeList);
118
+ shopInfo = ((_this$shopStore$get = this.shopStore.get('core')) === null || _this$shopStore$get === void 0 || (_this$shopStore$get = _this$shopStore$get.core) === null || _this$shopStore$get === void 0 ? void 0 : _this$shopStore$get.shop) || {}; // const scheduleModule = this.core.getModule<ScheduleModule>('appointmentBooking_schedule');
119
+ summary = calculatePriceDetails(shopInfo, cartItems, ScheduleModule === null || ScheduleModule === void 0 ? void 0 : ScheduleModule.isInScheduleByDate, this.store.surchargeList);
121
120
  this.store.summary = summary;
122
121
  return _context3.abrupt("return", this.store.summary);
123
- case 5:
122
+ case 4:
124
123
  case "end":
125
124
  return _context3.stop();
126
125
  }
@@ -311,7 +311,7 @@ export declare class BookingByStepImpl extends BaseModule implements Module {
311
311
  date: string;
312
312
  status: string;
313
313
  week: string;
314
- weekNum: 0 | 2 | 1 | 3 | 4 | 5 | 6;
314
+ weekNum: 0 | 1 | 2 | 3 | 4 | 5 | 6;
315
315
  }[]>;
316
316
  submitTimeSlot(timeSlots: TimeSliceItem): void;
317
317
  private getScheduleDataByIds;
@@ -169,7 +169,7 @@ export declare class CheckoutImpl extends BaseModule implements Module, Checkout
169
169
  * @param paymentItem 支付项数据
170
170
  * @throws 当前没有活跃订单时抛出错误
171
171
  */
172
- addPaymentItemAsync(paymentItem: PaymentItemInput): Promise<void>;
172
+ addPaymentItemAsync(paymentItem: PaymentItemInput, orderUuid?: string): Promise<void>;
173
173
  /**
174
174
  * 删除当前订单的支付项
175
175
  *
@@ -373,6 +373,8 @@ export declare class CheckoutImpl extends BaseModule implements Module, Checkout
373
373
  * 在 updateStateAmountToRemaining 中会使用优化版本。
374
374
  */
375
375
  private checkOrderPaymentCompletion;
376
+ private repairEftposPaymentFromIndexDbAsync;
377
+ private syncOrderToBackendFromIndexDbAsync;
376
378
  /**
377
379
  * 同步订单到后端并返回真实订单ID
378
380
  *