@pisell/pisellos 2.3.148 → 2.3.149
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";
|
|
@@ -1250,7 +1250,7 @@ function buildFees(params) {
|
|
|
1250
1250
|
customer_paid_amount: formatMoney(financials.customerPaidAmount, currencySymbol),
|
|
1251
1251
|
net_payment_applied: formatMoney(financials.netPaymentApplied, currencySymbol)
|
|
1252
1252
|
}, isPresentId(roundingAmount) ? {
|
|
1253
|
-
rounding_amount:
|
|
1253
|
+
rounding_amount: formatCalculatedMoney(roundingAmount, currencySymbol)
|
|
1254
1254
|
} : {}), isNonZero(totalSavingsAmount) ? {
|
|
1255
1255
|
order_total_discount: formatMoney(totalSavingsAmount, currencySymbol)
|
|
1256
1256
|
} : {}), financials.hasPayProcessingFee ? {
|
|
@@ -1192,7 +1192,7 @@ function buildFees(params) {
|
|
|
1192
1192
|
customer_paid_amount: formatMoney(financials.customerPaidAmount, currencySymbol),
|
|
1193
1193
|
net_payment_applied: formatMoney(financials.netPaymentApplied, currencySymbol),
|
|
1194
1194
|
...(isPresentId(roundingAmount) ? {
|
|
1195
|
-
rounding_amount:
|
|
1195
|
+
rounding_amount: formatCalculatedMoney(roundingAmount, currencySymbol)
|
|
1196
1196
|
} : {}),
|
|
1197
1197
|
...(isNonZero(totalSavingsAmount) ? {
|
|
1198
1198
|
order_total_discount: formatMoney(totalSavingsAmount, currencySymbol)
|