@pisell/pisellos 2.2.36 → 2.2.37

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
 
@@ -170,7 +170,7 @@ export declare class CheckoutImpl extends BaseModule implements Module, Checkout
170
170
  * @param paymentItem 支付项数据
171
171
  * @throws 当前没有活跃订单时抛出错误
172
172
  */
173
- addPaymentItemAsync(paymentItem: PaymentItemInput): Promise<void>;
173
+ addPaymentItemAsync(paymentItem: PaymentItemInput, orderUuid?: string): Promise<void>;
174
174
  /**
175
175
  * 删除当前订单的支付项
176
176
  *
@@ -374,6 +374,8 @@ export declare class CheckoutImpl extends BaseModule implements Module, Checkout
374
374
  * 在 updateStateAmountToRemaining 中会使用优化版本。
375
375
  */
376
376
  private checkOrderPaymentCompletion;
377
+ private repairEftposPaymentFromIndexDbAsync;
378
+ private syncOrderToBackendFromIndexDbAsync;
377
379
  /**
378
380
  * 同步订单到后端并返回真实订单ID
379
381
  *