@pisell/pisellos 2.1.11 → 2.1.12

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.
@@ -49,5 +49,5 @@ export declare class Product extends BaseModule implements Module {
49
49
  getCategories(): ProductCategory[];
50
50
  setOtherParams(key: string, value: any): void;
51
51
  getOtherParams(): any;
52
- getProductType(): "duration" | "session" | "normal";
52
+ getProductType(): "normal" | "duration" | "session";
53
53
  }
@@ -314,7 +314,7 @@ export declare class BookingByStepImpl extends BaseModule implements Module {
314
314
  }[];
315
315
  setOtherData(key: string, value: any): void;
316
316
  getOtherData(key: string): any;
317
- getProductTypeById(id: number): Promise<"normal" | "duration" | "session">;
317
+ getProductTypeById(id: number): Promise<"duration" | "session" | "normal">;
318
318
  /**
319
319
  * 提供给 UI 的方法,减轻 UI 层的计算压力,UI 层只需要传递 cartItemId 和 resourceCode 即返回对应的 renderList
320
320
  *
@@ -182,6 +182,16 @@ export declare class CheckoutImpl extends BaseModule implements Module, Checkout
182
182
  * @throws 当前没有活跃订单时抛出错误
183
183
  */
184
184
  updateOrderDepositStatusAsync(isDeposit: number): Promise<void>;
185
+ /**
186
+ * 手动设置当前订单的定金金额
187
+ *
188
+ * 允许手动设置订单的定金金额,通常用于用户自定义定金支付场景
189
+ *
190
+ * @param depositAmount 定金金额,必须是有效的数字字符串,且不能超过订单总额
191
+ * @throws 当前没有活跃订单时抛出错误
192
+ * @throws 定金金额格式无效或超过订单总额时抛出错误
193
+ */
194
+ setDepositAmountAsync(depositAmount: string): Promise<void>;
185
195
  /**
186
196
  * 手动同步订单到后端
187
197
  *