@pisell/pisellos 0.10.17 → 0.10.18
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.
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
// 导出评估器
|
|
2
|
+
export { PromotionEvaluator } from "./evaluator";
|
|
3
|
+
|
|
4
|
+
// 导出适配器
|
|
5
|
+
export { PromotionAdapter } from "./adapter";
|
|
6
|
+
export { default } from "./adapter";
|
|
7
|
+
|
|
8
|
+
// 导出策略配置示例常量
|
|
9
|
+
export { X_ITEMS_FOR_Y_PRICE_STRATEGY, BUY_X_GET_Y_FREE_STRATEGY, ITEM_REWARD_STRATEGY } from "./examples";
|
package/dist/server/index.js
CHANGED
|
@@ -5754,20 +5754,16 @@ var Server = /*#__PURE__*/function () {
|
|
|
5754
5754
|
data: params.receiptOnly ? {
|
|
5755
5755
|
order_id: printIdentity,
|
|
5756
5756
|
small_ticket_data: (_params$syncedOrder = params.syncedOrder) === null || _params$syncedOrder === void 0 || (_params$syncedOrder = _params$syncedOrder.payment_info) === null || _params$syncedOrder === void 0 ? void 0 : _params$syncedOrder.small_ticket_data,
|
|
5757
|
-
invoice: this.normalizePrintInvoiceLayoutConfig(params.invoiceLayoutConfig),
|
|
5758
5757
|
template_settings: this.normalizePrintInvoiceTemplateSettings(params.invoiceTemplateSettings),
|
|
5759
5758
|
skip_wristband: true,
|
|
5760
5759
|
skip_voucher: true
|
|
5761
|
-
} :
|
|
5760
|
+
} : {
|
|
5762
5761
|
order_id: printIdentity,
|
|
5763
5762
|
machine_code_print_info: (_params$syncedOrder2 = params.syncedOrder) === null || _params$syncedOrder2 === void 0 || (_params$syncedOrder2 = _params$syncedOrder2.payment_info) === null || _params$syncedOrder2 === void 0 ? void 0 : _params$syncedOrder2.machine_code_print_info,
|
|
5764
|
-
machine_code_print_info_v2: (_params$syncedOrder3 = params.syncedOrder) === null || _params$syncedOrder3 === void 0 ? void 0 : _params$syncedOrder3.machine_code_print_info_v2
|
|
5765
|
-
}, params.invoiceLayoutConfig ? {
|
|
5766
|
-
invoice: this.normalizePrintInvoiceLayoutConfig(params.invoiceLayoutConfig)
|
|
5767
|
-
} : {}), {}, {
|
|
5763
|
+
machine_code_print_info_v2: (_params$syncedOrder3 = params.syncedOrder) === null || _params$syncedOrder3 === void 0 ? void 0 : _params$syncedOrder3.machine_code_print_info_v2,
|
|
5768
5764
|
template_settings: this.normalizePrintInvoiceTemplateSettings(params.invoiceTemplateSettings),
|
|
5769
5765
|
skip_receipt: true
|
|
5770
|
-
}
|
|
5766
|
+
}
|
|
5771
5767
|
},
|
|
5772
5768
|
idempotency_key: this.buildPrintOtherReceiptIdempotencyKey(params.syncedOrder, {
|
|
5773
5769
|
receiptOnly: params.receiptOnly
|
package/lib/server/index.js
CHANGED
|
@@ -3685,7 +3685,6 @@ class Server {
|
|
|
3685
3685
|
data: params.receiptOnly ? {
|
|
3686
3686
|
order_id: printIdentity,
|
|
3687
3687
|
small_ticket_data: params.syncedOrder?.payment_info?.small_ticket_data,
|
|
3688
|
-
invoice: this.normalizePrintInvoiceLayoutConfig(params.invoiceLayoutConfig),
|
|
3689
3688
|
template_settings: this.normalizePrintInvoiceTemplateSettings(params.invoiceTemplateSettings),
|
|
3690
3689
|
skip_wristband: true,
|
|
3691
3690
|
skip_voucher: true
|
|
@@ -3693,9 +3692,6 @@ class Server {
|
|
|
3693
3692
|
order_id: printIdentity,
|
|
3694
3693
|
machine_code_print_info: params.syncedOrder?.payment_info?.machine_code_print_info,
|
|
3695
3694
|
machine_code_print_info_v2: params.syncedOrder?.machine_code_print_info_v2,
|
|
3696
|
-
...(params.invoiceLayoutConfig ? {
|
|
3697
|
-
invoice: this.normalizePrintInvoiceLayoutConfig(params.invoiceLayoutConfig)
|
|
3698
|
-
} : {}),
|
|
3699
3695
|
template_settings: this.normalizePrintInvoiceTemplateSettings(params.invoiceTemplateSettings),
|
|
3700
3696
|
skip_receipt: true
|
|
3701
3697
|
}
|