@pisell/pisellos 0.0.251 → 0.0.252

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.
@@ -430,7 +430,7 @@ export var CheckoutImpl = /*#__PURE__*/function (_BaseModule) {
430
430
  // 补充订单折扣信息
431
431
  params.orderData.shop_discount = (_params$totalInfo3 = params.totalInfo) === null || _params$totalInfo3 === void 0 || (_params$totalInfo3 = _params$totalInfo3.total) === null || _params$totalInfo3 === void 0 ? void 0 : _params$totalInfo3.shopDiscount;
432
432
  // 补充税费信息
433
- params.orderData.tax = (_params$totalInfo4 = params.totalInfo) === null || _params$totalInfo4 === void 0 || (_params$totalInfo4 = _params$totalInfo4.total) === null || _params$totalInfo4 === void 0 ? void 0 : _params$totalInfo4.tax;
433
+ params.orderData.tax_fee = (_params$totalInfo4 = params.totalInfo) === null || _params$totalInfo4 === void 0 || (_params$totalInfo4 = _params$totalInfo4.total) === null || _params$totalInfo4 === void 0 ? void 0 : _params$totalInfo4.tax;
434
434
 
435
435
  // 保存原始订单数据和小计数据到状态中
436
436
  this.store.localOrderData = params.orderData;
@@ -3823,7 +3823,7 @@ export var CheckoutImpl = /*#__PURE__*/function (_BaseModule) {
3823
3823
  deposit_amount: ((_this$store$currentOr21 = this.store.currentOrder) === null || _this$store$currentOr21 === void 0 ? void 0 : _this$store$currentOr21.deposit_amount) || '0.00',
3824
3824
  // surcharge_fee: this.otherParams.surcharge_fee,
3825
3825
  // surcharges: ,
3826
- product_tax_fee: this.store.localOrderData.tax,
3826
+ product_tax_fee: this.store.localOrderData.tax_fee,
3827
3827
  note: this.store.localOrderData.shop_note
3828
3828
  // deposit_amount:
3829
3829
  }); // 如果是更新操作,需要在参数中包含真实的订单ID
@@ -173,7 +173,7 @@ export interface LocalOrderData {
173
173
  /** 商店折扣金额 */
174
174
  shop_discount?: number;
175
175
  /** 税费金额 */
176
- tax?: number;
176
+ tax_fee?: number;
177
177
  }
178
178
  /**
179
179
  * 本地预订项
@@ -218,7 +218,7 @@ var CheckoutImpl = class extends import_BaseModule.BaseModule {
218
218
  params.orderData.surcharge_fee = (_b = (_a = params.totalInfo) == null ? void 0 : _a.total) == null ? void 0 : _b.otherAmount;
219
219
  params.orderData.surcharges = (_d = (_c = params.totalInfo) == null ? void 0 : _c.total) == null ? void 0 : _d.surcharge;
220
220
  params.orderData.shop_discount = (_f = (_e = params.totalInfo) == null ? void 0 : _e.total) == null ? void 0 : _f.shopDiscount;
221
- params.orderData.tax = (_h = (_g = params.totalInfo) == null ? void 0 : _g.total) == null ? void 0 : _h.tax;
221
+ params.orderData.tax_fee = (_h = (_g = params.totalInfo) == null ? void 0 : _g.total) == null ? void 0 : _h.tax;
222
222
  this.store.localOrderData = params.orderData;
223
223
  this.store.cartSummary = params.cartSummary;
224
224
  const customerInfo = {
@@ -2311,7 +2311,7 @@ var CheckoutImpl = class extends import_BaseModule.BaseModule {
2311
2311
  deposit_amount: ((_d = this.store.currentOrder) == null ? void 0 : _d.deposit_amount) || "0.00",
2312
2312
  // surcharge_fee: this.otherParams.surcharge_fee,
2313
2313
  // surcharges: ,
2314
- product_tax_fee: this.store.localOrderData.tax,
2314
+ product_tax_fee: this.store.localOrderData.tax_fee,
2315
2315
  note: this.store.localOrderData.shop_note
2316
2316
  // deposit_amount:
2317
2317
  };
@@ -173,7 +173,7 @@ export interface LocalOrderData {
173
173
  /** 商店折扣金额 */
174
174
  shop_discount?: number;
175
175
  /** 税费金额 */
176
- tax?: number;
176
+ tax_fee?: number;
177
177
  }
178
178
  /**
179
179
  * 本地预订项
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "private": false,
3
3
  "name": "@pisell/pisellos",
4
- "version": "0.0.251",
4
+ "version": "0.0.252",
5
5
  "description": "一个可扩展的前端模块化SDK框架,支持插件系统",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",