@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.
- package/dist/modules/Payment/types.d.ts +3 -1
- package/dist/modules/Payment/types.js +1 -0
- package/dist/solution/Checkout/index.d.ts +3 -1
- package/dist/solution/Checkout/index.js +661 -257
- package/dist/solution/Checkout/types.d.ts +1 -1
- package/lib/modules/Payment/types.d.ts +3 -1
- package/lib/modules/Payment/types.js +1 -0
- package/lib/solution/Checkout/index.d.ts +3 -1
- package/lib/solution/Checkout/index.js +280 -10
- package/lib/solution/Checkout/types.d.ts +1 -1
- package/package.json +1 -1
|
@@ -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
|
*
|