@pisell/pisellos 2.1.114 → 2.1.116
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.
- package/dist/index.d.ts +0 -1
- package/dist/index.js +0 -1
- package/dist/modules/Cart/types.d.ts +0 -2
- package/dist/modules/Cart/utils/cartProduct.js +24 -56
- package/dist/modules/Discount/types.d.ts +8 -18
- package/dist/modules/Payment/index.d.ts +1 -2
- package/dist/modules/Payment/index.js +7 -10
- package/dist/modules/Payment/utils.js +0 -3
- package/dist/modules/Payment/walletpass.d.ts +0 -23
- package/dist/modules/Payment/walletpass.js +95 -191
- package/dist/modules/Product/index.d.ts +1 -1
- package/dist/modules/Rules/index.d.ts +5 -9
- package/dist/modules/Rules/index.js +202 -675
- package/dist/modules/Rules/types.d.ts +0 -2
- package/dist/modules/Summary/types.d.ts +0 -2
- package/dist/modules/Summary/utils.d.ts +0 -6
- package/dist/modules/Summary/utils.js +0 -21
- package/dist/plugins/window.d.ts +0 -2
- package/dist/solution/BookingByStep/index.d.ts +1 -2
- package/dist/solution/BookingTicket/index.d.ts +1 -1
- package/dist/solution/BookingTicket/utils/scan/cloudSearch.js +1 -1
- package/dist/solution/Checkout/index.js +0 -2
- package/dist/solution/ShopDiscount/index.d.ts +0 -1
- package/dist/solution/ShopDiscount/index.js +7 -23
- package/dist/solution/ShopDiscount/types.d.ts +0 -1
- package/dist/solution/ShopDiscount/types.js +1 -2
- package/dist/solution/ShopDiscount/utils.js +12 -26
- package/lib/index.d.ts +0 -1
- package/lib/index.js +1 -3
- package/lib/modules/Cart/types.d.ts +0 -2
- package/lib/modules/Cart/utils/cartProduct.js +11 -39
- package/lib/modules/Discount/types.d.ts +8 -18
- package/lib/modules/Payment/index.d.ts +1 -2
- package/lib/modules/Payment/index.js +0 -1
- package/lib/modules/Payment/utils.js +0 -3
- package/lib/modules/Payment/walletpass.d.ts +0 -23
- package/lib/modules/Payment/walletpass.js +17 -94
- package/lib/modules/Product/index.d.ts +1 -1
- package/lib/modules/Rules/index.d.ts +5 -9
- package/lib/modules/Rules/index.js +304 -785
- package/lib/modules/Rules/types.d.ts +0 -2
- package/lib/modules/Summary/types.d.ts +0 -2
- package/lib/modules/Summary/utils.d.ts +0 -6
- package/lib/modules/Summary/utils.js +0 -15
- package/lib/plugins/window.d.ts +0 -2
- package/lib/solution/BookingByStep/index.d.ts +1 -2
- package/lib/solution/BookingTicket/index.d.ts +1 -1
- package/lib/solution/BookingTicket/utils/scan/cloudSearch.js +1 -1
- package/lib/solution/Checkout/index.js +0 -2
- package/lib/solution/ShopDiscount/index.d.ts +0 -1
- package/lib/solution/ShopDiscount/index.js +8 -22
- package/lib/solution/ShopDiscount/types.d.ts +0 -1
- package/lib/solution/ShopDiscount/utils.js +6 -10
- package/package.json +1 -1
- package/dist/model/index.d.ts +0 -1
- package/dist/model/index.js +0 -1
- package/dist/model/strategy/adapter/index.d.ts +0 -3
- package/dist/model/strategy/adapter/index.js +0 -4
- package/dist/model/strategy/adapter/type.d.ts +0 -28
- package/dist/model/strategy/adapter/type.js +0 -1
- package/dist/model/strategy/adapter/walletPass/evaluator.d.ts +0 -84
- package/dist/model/strategy/adapter/walletPass/evaluator.js +0 -499
- package/dist/model/strategy/adapter/walletPass/example.d.ts +0 -4
- package/dist/model/strategy/adapter/walletPass/example.js +0 -258
- package/dist/model/strategy/adapter/walletPass/index.d.ts +0 -32
- package/dist/model/strategy/adapter/walletPass/index.js +0 -182
- package/dist/model/strategy/adapter/walletPass/locales.d.ts +0 -1
- package/dist/model/strategy/adapter/walletPass/locales.js +0 -26
- package/dist/model/strategy/adapter/walletPass/type.d.ts +0 -187
- package/dist/model/strategy/adapter/walletPass/type.js +0 -1
- package/dist/model/strategy/adapter/walletPass/utils.d.ts +0 -50
- package/dist/model/strategy/adapter/walletPass/utils.js +0 -1104
- package/dist/model/strategy/index.d.ts +0 -94
- package/dist/model/strategy/index.js +0 -551
- package/dist/model/strategy/strategy-example.d.ts +0 -5
- package/dist/model/strategy/strategy-example.js +0 -331
- package/dist/model/strategy/type.d.ts +0 -228
- package/dist/model/strategy/type.js +0 -94
- package/lib/model/index.d.ts +0 -1
- package/lib/model/index.js +0 -23
- package/lib/model/strategy/adapter/index.d.ts +0 -3
- package/lib/model/strategy/adapter/index.js +0 -45
- package/lib/model/strategy/adapter/type.d.ts +0 -28
- package/lib/model/strategy/adapter/type.js +0 -17
- package/lib/model/strategy/adapter/walletPass/evaluator.d.ts +0 -84
- package/lib/model/strategy/adapter/walletPass/evaluator.js +0 -423
- package/lib/model/strategy/adapter/walletPass/example.d.ts +0 -4
- package/lib/model/strategy/adapter/walletPass/example.js +0 -207
- package/lib/model/strategy/adapter/walletPass/index.d.ts +0 -32
- package/lib/model/strategy/adapter/walletPass/index.js +0 -142
- package/lib/model/strategy/adapter/walletPass/locales.d.ts +0 -1
- package/lib/model/strategy/adapter/walletPass/locales.js +0 -54
- package/lib/model/strategy/adapter/walletPass/type.d.ts +0 -187
- package/lib/model/strategy/adapter/walletPass/type.js +0 -17
- package/lib/model/strategy/adapter/walletPass/utils.d.ts +0 -50
- package/lib/model/strategy/adapter/walletPass/utils.js +0 -791
- package/lib/model/strategy/index.d.ts +0 -94
- package/lib/model/strategy/index.js +0 -413
- package/lib/model/strategy/strategy-example.d.ts +0 -5
- package/lib/model/strategy/strategy-example.js +0 -318
- package/lib/model/strategy/type.d.ts +0 -228
- package/lib/model/strategy/type.js +0 -44
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -15,20 +15,6 @@ import { isNormalProduct } from "../../Product/utils";
|
|
|
15
15
|
import { getDiscountAmount } from "../../../solution/ShopDiscount/utils";
|
|
16
16
|
import { calcDiscountListDifference } from "../../Summary/utils";
|
|
17
17
|
|
|
18
|
-
/** 与 Rules / ShopDiscount 一致的折扣入参,用于主价与 option 单价 */
|
|
19
|
-
var toDiscountPayload = function toDiscountPayload(discountItem) {
|
|
20
|
-
var _discountItem$discoun, _discountItem$discoun2;
|
|
21
|
-
return {
|
|
22
|
-
amount: discountItem.amount,
|
|
23
|
-
tag: discountItem.type,
|
|
24
|
-
par_value: (_discountItem$discoun = discountItem.discount) === null || _discountItem$discoun === void 0 ? void 0 : _discountItem$discoun.percent,
|
|
25
|
-
config: discountItem.config,
|
|
26
|
-
metadata: {
|
|
27
|
-
discount_card_type: discountItem === null || discountItem === void 0 || (_discountItem$discoun2 = discountItem.discount) === null || _discountItem$discoun2 === void 0 ? void 0 : _discountItem$discoun2.discount_card_type
|
|
28
|
-
}
|
|
29
|
-
};
|
|
30
|
-
};
|
|
31
|
-
|
|
32
18
|
/**
|
|
33
19
|
* @title 处理组合商品
|
|
34
20
|
* @description 组合商品需要直接修改 product 里的价格和 is_charge_tax
|
|
@@ -72,7 +58,6 @@ export var formatProductToCartItem = function formatProductToCartItem(params) {
|
|
|
72
58
|
quantity = _params$quantity === void 0 ? 1 : _params$quantity,
|
|
73
59
|
discounts = params.discounts;
|
|
74
60
|
var num = quantity; // 当前按照单个商品加入购物车
|
|
75
|
-
|
|
76
61
|
if (product) {
|
|
77
62
|
cartItem.id = product === null || product === void 0 ? void 0 : product.id;
|
|
78
63
|
cartItem.name = product === null || product === void 0 ? void 0 : product.title;
|
|
@@ -98,15 +83,6 @@ export var formatProductToCartItem = function formatProductToCartItem(params) {
|
|
|
98
83
|
num: num,
|
|
99
84
|
discounts: discounts
|
|
100
85
|
});
|
|
101
|
-
// 不包含折扣卡商品券的总价
|
|
102
|
-
var origin_total = getProductTotalPrice({
|
|
103
|
-
product: cartItem._productInit || cartItem._productOrigin,
|
|
104
|
-
bundle: bundle,
|
|
105
|
-
options: options,
|
|
106
|
-
num: num,
|
|
107
|
-
discounts: []
|
|
108
|
-
});
|
|
109
|
-
cartItem.summaryOriginTotal = (origin_total || 0) * (num || 1);
|
|
110
86
|
cartItem.image = product === null || product === void 0 ? void 0 : product.cover;
|
|
111
87
|
cartItem.like_status = 'common';
|
|
112
88
|
cartItem.duration = product === null || product === void 0 ? void 0 : product.duration;
|
|
@@ -209,7 +185,6 @@ export var formatProductToCartItemOrigin = function formatProductToCartItemOrigi
|
|
|
209
185
|
* @returns 商品总价
|
|
210
186
|
*/
|
|
211
187
|
export var getProductTotalPrice = function getProductTotalPrice(params) {
|
|
212
|
-
var _options$map;
|
|
213
188
|
var product = params.product,
|
|
214
189
|
bundle = params.bundle,
|
|
215
190
|
options = params.options,
|
|
@@ -217,29 +192,22 @@ export var getProductTotalPrice = function getProductTotalPrice(params) {
|
|
|
217
192
|
// const num = params.num || 1;
|
|
218
193
|
var price = Number(product.price);
|
|
219
194
|
|
|
220
|
-
// option 行:unit 折后价在循环中与主商品使用同一套 getDiscountAmount(含 deductOptionPrice)
|
|
221
|
-
var optionRows = (_options$map = options === null || options === void 0 ? void 0 : options.map(function (currentValue) {
|
|
222
|
-
var _ref, _currentValue$price, _ref2, _currentValue$num;
|
|
223
|
-
return {
|
|
224
|
-
unit: Number((_ref = (_currentValue$price = currentValue.price) !== null && _currentValue$price !== void 0 ? _currentValue$price : currentValue.add_price) !== null && _ref !== void 0 ? _ref : 0),
|
|
225
|
-
num: Number((_ref2 = (_currentValue$num = currentValue.num) !== null && _currentValue$num !== void 0 ? _currentValue$num : currentValue.quantity) !== null && _ref2 !== void 0 ? _ref2 : 1)
|
|
226
|
-
};
|
|
227
|
-
})) !== null && _options$map !== void 0 ? _options$map : [];
|
|
228
|
-
|
|
229
195
|
// 如果商品有折扣,则计算折扣
|
|
230
196
|
if (discounts !== null && discounts !== void 0 && discounts.length) {
|
|
231
197
|
discounts.forEach(function (currentValue) {
|
|
232
|
-
var _currentValue$
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
if (currentValue
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
198
|
+
var _currentValue$discoun;
|
|
199
|
+
// 不是商品券则代表折扣卡,计算打折后的价格
|
|
200
|
+
// 一个商品折扣卡只能存在于一张
|
|
201
|
+
// if (currentValue.type !== 'good_pass') {
|
|
202
|
+
price = getDiscountAmount({
|
|
203
|
+
amount: currentValue.amount,
|
|
204
|
+
tag: currentValue.type,
|
|
205
|
+
par_value: currentValue.discount.percent,
|
|
206
|
+
metadata: {
|
|
207
|
+
discount_card_type: currentValue === null || currentValue === void 0 || (_currentValue$discoun = currentValue.discount) === null || _currentValue$discoun === void 0 ? void 0 : _currentValue$discoun.discount_card_type
|
|
241
208
|
}
|
|
242
|
-
}
|
|
209
|
+
}, price, price);
|
|
210
|
+
// }
|
|
243
211
|
});
|
|
244
212
|
}
|
|
245
213
|
if (bundle !== null && bundle !== void 0 && bundle.length) {
|
|
@@ -248,10 +216,10 @@ export var getProductTotalPrice = function getProductTotalPrice(params) {
|
|
|
248
216
|
}, price);
|
|
249
217
|
}
|
|
250
218
|
|
|
251
|
-
// 单规格
|
|
252
|
-
if (
|
|
253
|
-
price =
|
|
254
|
-
return accumulator +
|
|
219
|
+
// 单规格
|
|
220
|
+
if (options !== null && options !== void 0 && options.length) {
|
|
221
|
+
price = options.reduce(function (accumulator, currentValue) {
|
|
222
|
+
return accumulator + Number(currentValue.price) * Number(currentValue.num);
|
|
255
223
|
}, price);
|
|
256
224
|
}
|
|
257
225
|
return Math.max(0, price);
|
|
@@ -410,11 +378,11 @@ export var getProductDeposit = function getProductDeposit(params) {
|
|
|
410
378
|
// 判定商品是否有定金规则
|
|
411
379
|
if ((product === null || product === void 0 || (_product$custom_depos2 = product.custom_deposit_data) === null || _product$custom_depos2 === void 0 ? void 0 : _product$custom_depos2.has_deposit) == 1) {
|
|
412
380
|
var total = new Decimal(0);
|
|
413
|
-
var
|
|
414
|
-
deposit_fixed =
|
|
415
|
-
deposit_percentage =
|
|
416
|
-
deposit_policy_data =
|
|
417
|
-
self_deposit_policy_ids =
|
|
381
|
+
var _ref = (product === null || product === void 0 ? void 0 : product.custom_deposit_data) || {},
|
|
382
|
+
deposit_fixed = _ref.deposit_fixed,
|
|
383
|
+
deposit_percentage = _ref.deposit_percentage,
|
|
384
|
+
deposit_policy_data = _ref.deposit_policy_data,
|
|
385
|
+
self_deposit_policy_ids = _ref.self_deposit_policy_ids;
|
|
418
386
|
// 所有协议数据
|
|
419
387
|
var allProtocols = deposit_policy_data || [];
|
|
420
388
|
// 是否存在定金,主商品has_deposit为1,但是自身没有定金设置,需要判定子商品是否存在定金,如果不存在最终判定也是不存在定金
|
|
@@ -508,9 +476,9 @@ export var handleProductDeposit = function handleProductDeposit(params) {
|
|
|
508
476
|
depositTotal: new Decimal(0)
|
|
509
477
|
};
|
|
510
478
|
}
|
|
511
|
-
var
|
|
512
|
-
deposit_fixed =
|
|
513
|
-
deposit_percentage =
|
|
479
|
+
var _ref2 = depositData || {},
|
|
480
|
+
deposit_fixed = _ref2.deposit_fixed,
|
|
481
|
+
deposit_percentage = _ref2.deposit_percentage;
|
|
514
482
|
if (typeof deposit_fixed === 'string' && typeof deposit_percentage === 'string') {
|
|
515
483
|
var depositFixed = Decimal(deposit_fixed || 0);
|
|
516
484
|
var depositPercent = Decimal(deposit_percentage || 0);
|
|
@@ -18,6 +18,14 @@ interface Formattitle {
|
|
|
18
18
|
interface PackageSubItemUsageRules {
|
|
19
19
|
type: 'universal_discount' | 'package_exclusive' | 'single_item_promo' | 'custom_usage_rules';
|
|
20
20
|
rules: ("original_price" | "markup_price")[];
|
|
21
|
+
package_scope?: {
|
|
22
|
+
type: 'all_packages' | 'specific_packages';
|
|
23
|
+
exclude_bundle_product_ids: number[];
|
|
24
|
+
include_bundle_product_ids: number[];
|
|
25
|
+
filter: 0 | 1;
|
|
26
|
+
rule: any[];
|
|
27
|
+
rule_type: 'and' | 'or';
|
|
28
|
+
};
|
|
21
29
|
}
|
|
22
30
|
interface Limitedrelationproductdata {
|
|
23
31
|
id: number;
|
|
@@ -25,8 +33,6 @@ interface Limitedrelationproductdata {
|
|
|
25
33
|
product_ids: number[];
|
|
26
34
|
product_collection_id: number[];
|
|
27
35
|
package_sub_item_usage_rules?: PackageSubItemUsageRules;
|
|
28
|
-
filter: 0 | 1;
|
|
29
|
-
exclude_product_ids: number[];
|
|
30
36
|
}
|
|
31
37
|
interface ApplicableProductDetails {
|
|
32
38
|
amount: string;
|
|
@@ -83,7 +89,6 @@ export interface Discount {
|
|
|
83
89
|
balance: string;
|
|
84
90
|
format_title: Formattitle;
|
|
85
91
|
metadata?: {
|
|
86
|
-
num?: number;
|
|
87
92
|
discount_card_type?: 'fixed_amount' | 'percent';
|
|
88
93
|
custom_product_bundle_map_id?: string;
|
|
89
94
|
validity_type?: "custom_schedule_validity" | "fixed_validity";
|
|
@@ -108,21 +113,6 @@ export interface Discount {
|
|
|
108
113
|
isSelected?: boolean;
|
|
109
114
|
isAvailable?: boolean;
|
|
110
115
|
isUsed?: boolean;
|
|
111
|
-
config?: {
|
|
112
|
-
isAvailable?: boolean;
|
|
113
|
-
/** 最大抵扣金额 */
|
|
114
|
-
maxDeductionAmount?: number;
|
|
115
|
-
/** 每单最多使用张数 */
|
|
116
|
-
maxUsagePerOrder?: number;
|
|
117
|
-
/** 是否抵扣税费与附加费 */
|
|
118
|
-
deductTaxAndFee?: boolean;
|
|
119
|
-
/** 适用粒度(多商品共用) */
|
|
120
|
-
allowCrossProduct?: boolean;
|
|
121
|
-
/** 可用商品数量上限 */
|
|
122
|
-
applicableProductLimit?: number;
|
|
123
|
-
/** 是否抵扣单规格价格 (Option Price) */
|
|
124
|
-
deductOptionPrice?: boolean;
|
|
125
|
-
};
|
|
126
116
|
applicableProductIds?: number[];
|
|
127
117
|
applicableProductDetails: ApplicableProductDetails[];
|
|
128
118
|
appliedProductDetails: ApplicableProductDetails[];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Module, PisellCore, ModuleOptions } from '../../types';
|
|
2
|
-
import { RequestPlugin
|
|
2
|
+
import { RequestPlugin } from '../../plugins';
|
|
3
3
|
import { BaseModule } from '../BaseModule';
|
|
4
4
|
import { PaymentModuleAPI, PaymentMethod, PaymentOrder, PaymentItem, PaymentItemInput, PaymentUpdateFields, PushOrderParams, CashPayment, EftposPayment, WalletPassPayment, RoundingRule, RoundingInterval, RoundingResult } from './types';
|
|
5
5
|
export * from './types';
|
|
@@ -21,7 +21,6 @@ export declare class PaymentModule extends BaseModule implements Module, Payment
|
|
|
21
21
|
request: RequestPlugin;
|
|
22
22
|
private app;
|
|
23
23
|
private store;
|
|
24
|
-
window: WindowPlugin;
|
|
25
24
|
private dbManager;
|
|
26
25
|
private logger;
|
|
27
26
|
protected otherParams: any;
|
|
@@ -81,8 +81,6 @@ export var PaymentModule = /*#__PURE__*/function (_BaseModule) {
|
|
|
81
81
|
_defineProperty(_assertThisInitialized(_this), "app", void 0);
|
|
82
82
|
// App instance
|
|
83
83
|
_defineProperty(_assertThisInitialized(_this), "store", void 0);
|
|
84
|
-
_defineProperty(_assertThisInitialized(_this), "window", void 0);
|
|
85
|
-
// WindowPlugin 实例
|
|
86
84
|
_defineProperty(_assertThisInitialized(_this), "dbManager", void 0);
|
|
87
85
|
// IndexDBManager 实例
|
|
88
86
|
_defineProperty(_assertThisInitialized(_this), "logger", void 0);
|
|
@@ -112,27 +110,26 @@ export var PaymentModule = /*#__PURE__*/function (_BaseModule) {
|
|
|
112
110
|
// 获取依赖的插件
|
|
113
111
|
this.request = core.getPlugin('request');
|
|
114
112
|
appPlugin = core.getPlugin('app');
|
|
115
|
-
this.window = core.getPlugin('window');
|
|
116
113
|
if (this.request) {
|
|
117
|
-
_context.next =
|
|
114
|
+
_context.next = 7;
|
|
118
115
|
break;
|
|
119
116
|
}
|
|
120
117
|
throw new Error('支付模块需要 request 插件支持');
|
|
121
|
-
case
|
|
118
|
+
case 7:
|
|
122
119
|
if (appPlugin) {
|
|
123
|
-
_context.next =
|
|
120
|
+
_context.next = 9;
|
|
124
121
|
break;
|
|
125
122
|
}
|
|
126
123
|
throw new Error('支付模块需要 app 插件支持');
|
|
127
|
-
case
|
|
124
|
+
case 9:
|
|
128
125
|
this.app = appPlugin.getApp();
|
|
129
126
|
this.dbManager = this.app.dbManager;
|
|
130
127
|
this.logger = this.app.logger;
|
|
131
128
|
|
|
132
129
|
// 确保支付模块所需的对象存储已创建
|
|
133
|
-
_context.next =
|
|
130
|
+
_context.next = 14;
|
|
134
131
|
return this.ensurePaymentTables();
|
|
135
|
-
case
|
|
132
|
+
case 14:
|
|
136
133
|
this.registerNetworkHandlers();
|
|
137
134
|
|
|
138
135
|
// // 预连接数据库
|
|
@@ -140,7 +137,7 @@ export var PaymentModule = /*#__PURE__*/function (_BaseModule) {
|
|
|
140
137
|
|
|
141
138
|
console.log('[PaymentModule] 初始化完成');
|
|
142
139
|
this.logInfo('PaymentModule initialized successfully');
|
|
143
|
-
case
|
|
140
|
+
case 17:
|
|
144
141
|
case "end":
|
|
145
142
|
return _context.stop();
|
|
146
143
|
}
|
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
// 获取walletPass可用最大金额
|
|
2
2
|
export var getAvailableMaxAmount = function getAvailableMaxAmount(data) {
|
|
3
|
-
if (typeof data._available_max_amount === 'number') {
|
|
4
|
-
return data._available_max_amount;
|
|
5
|
-
}
|
|
6
3
|
return data.tag !== 'point_card' ? data.available_max_amount : data === null || data === void 0 ? void 0 : data.recommended_usage_amount;
|
|
7
4
|
};
|
|
8
5
|
|
|
@@ -9,7 +9,6 @@ export declare class WalletPassPaymentImpl implements WalletPassPayment {
|
|
|
9
9
|
private userIdentificationCodes;
|
|
10
10
|
private searchResults;
|
|
11
11
|
private walletParams;
|
|
12
|
-
private walletInitData;
|
|
13
12
|
constructor(paymentModule: PaymentModule);
|
|
14
13
|
/**
|
|
15
14
|
* 发送事件的辅助方法
|
|
@@ -38,14 +37,7 @@ export declare class WalletPassPaymentImpl implements WalletPassPayment {
|
|
|
38
37
|
initializeWalletDataFromBusinessAsync(businessData: WalletInitBusinessData): Promise<{
|
|
39
38
|
walletRecommendList: WalletRecommendItem[];
|
|
40
39
|
userIdentificationCodes: UserIdentificationCodeItem[];
|
|
41
|
-
transformList: any[];
|
|
42
|
-
noApplicableVoucher: any[];
|
|
43
|
-
products: any[];
|
|
44
40
|
}>;
|
|
45
|
-
/**
|
|
46
|
-
* 获取订单基础详情
|
|
47
|
-
*/
|
|
48
|
-
getOrderBasicDetailAsync(orderId: string): Promise<any>;
|
|
49
41
|
/**
|
|
50
42
|
* 初始化钱包数据
|
|
51
43
|
* 先获取推荐列表,再获取用户识别码列表(顺序执行)
|
|
@@ -53,9 +45,6 @@ export declare class WalletPassPaymentImpl implements WalletPassPayment {
|
|
|
53
45
|
initializeWalletDataAsync(baseParams: WalletDeductionRecommendParams): Promise<{
|
|
54
46
|
walletRecommendList: WalletRecommendItem[];
|
|
55
47
|
userIdentificationCodes: UserIdentificationCodeItem[];
|
|
56
|
-
transformList: any[];
|
|
57
|
-
noApplicableVoucher: any[];
|
|
58
|
-
products: any[];
|
|
59
48
|
}>;
|
|
60
49
|
getWalletPassRecommendListAsync(params: WalletDeductionRecommendParams): Promise<WalletRecommendItem[]>;
|
|
61
50
|
formatWalletPassList2PreparePayments(list: WalletRecommendItem[]): {
|
|
@@ -103,18 +92,6 @@ export declare class WalletPassPaymentImpl implements WalletPassPayment {
|
|
|
103
92
|
* 清除搜索结果缓存
|
|
104
93
|
*/
|
|
105
94
|
clearSearchResults(): void;
|
|
106
|
-
/**
|
|
107
|
-
* 获取存储的钱包初始化数据
|
|
108
|
-
*/
|
|
109
|
-
getStoredWalletInitData(): {
|
|
110
|
-
transformList: any[];
|
|
111
|
-
noApplicableVoucher: any[];
|
|
112
|
-
products: any[];
|
|
113
|
-
} | null;
|
|
114
|
-
/**
|
|
115
|
-
* 清除存储的钱包初始化数据
|
|
116
|
-
*/
|
|
117
|
-
clearStoredWalletInitData(): void;
|
|
118
95
|
/**
|
|
119
96
|
* 清除所有缓存数据
|
|
120
97
|
*/
|