@pisell/pisellos 2.2.48 → 2.2.49

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.
@@ -2019,7 +2019,7 @@ export var PaymentModule = /*#__PURE__*/function (_BaseModule) {
2019
2019
  // 如果当前支付项有服务费,还需要减去服务费
2020
2020
  var effectiveAmount = paymentAmount.plus(roundingAmount.isNegative() ? roundingAmount.abs() : 0);
2021
2021
  if (payment.service_fee) {
2022
- effectiveAmount.minus(new Decimal(payment.service_fee));
2022
+ effectiveAmount = effectiveAmount.minus(new Decimal(payment.service_fee));
2023
2023
  }
2024
2024
  return sum.plus(effectiveAmount);
2025
2025
  } catch (error) {
@@ -344,7 +344,7 @@ export declare class BookingByStepImpl extends BaseModule implements Module {
344
344
  };
345
345
  setOtherData(key: string, value: any): void;
346
346
  getOtherData(key: string): any;
347
- getProductTypeById(id: number): Promise<"duration" | "session" | "normal">;
347
+ getProductTypeById(id: number): Promise<"normal" | "duration" | "session">;
348
348
  /**
349
349
  * 提供给 UI 的方法,减轻 UI 层的计算压力,UI 层只需要传递 cartItemId 和 resourceCode 即返回对应的 renderList
350
350
  *
@@ -1032,7 +1032,7 @@ var PaymentModule = class extends import_BaseModule.BaseModule {
1032
1032
  const roundingAmount = new import_decimal.Decimal(payment.rounding_amount || 0);
1033
1033
  let effectiveAmount = paymentAmount.plus(roundingAmount.isNegative() ? roundingAmount.abs() : 0);
1034
1034
  if (payment.service_fee) {
1035
- effectiveAmount.minus(new import_decimal.Decimal(payment.service_fee));
1035
+ effectiveAmount = effectiveAmount.minus(new import_decimal.Decimal(payment.service_fee));
1036
1036
  }
1037
1037
  return sum.plus(effectiveAmount);
1038
1038
  } catch (error) {
@@ -344,7 +344,7 @@ export declare class BookingByStepImpl extends BaseModule implements Module {
344
344
  };
345
345
  setOtherData(key: string, value: any): void;
346
346
  getOtherData(key: string): any;
347
- getProductTypeById(id: number): Promise<"duration" | "session" | "normal">;
347
+ getProductTypeById(id: number): Promise<"normal" | "duration" | "session">;
348
348
  /**
349
349
  * 提供给 UI 的方法,减轻 UI 层的计算压力,UI 层只需要传递 cartItemId 和 resourceCode 即返回对应的 renderList
350
350
  *
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "private": false,
3
3
  "name": "@pisell/pisellos",
4
- "version": "2.2.48",
4
+ "version": "2.2.49",
5
5
  "description": "一个可扩展的前端模块化SDK框架,支持插件系统",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",