@be-link/ecommerce-promotion-service-node-sdk 0.0.4 → 0.0.6
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.
|
@@ -36,8 +36,6 @@ export declare namespace Service {
|
|
|
36
36
|
expireAt: number;
|
|
37
37
|
/** 优惠规则描述 */
|
|
38
38
|
ruleDescription?: string;
|
|
39
|
-
/** 最优选中 */
|
|
40
|
-
isSelected?: boolean;
|
|
41
39
|
}
|
|
42
40
|
/** 积分抵扣规则 */
|
|
43
41
|
interface PointsDeductionRule {
|
|
@@ -56,8 +54,18 @@ export declare namespace Service {
|
|
|
56
54
|
}
|
|
57
55
|
/** 优惠券分组统计 */
|
|
58
56
|
interface CouponGroupStats {
|
|
57
|
+
/** 券模板ID */
|
|
58
|
+
couponId: string;
|
|
59
|
+
/** 券码 */
|
|
60
|
+
couponCode: string;
|
|
61
|
+
/** 券名称 */
|
|
62
|
+
couponName: string;
|
|
59
63
|
/** 券类型 */
|
|
60
64
|
couponType: ENUM.PRICING_CALCULATION_ENUM.CouponType;
|
|
65
|
+
/** 优惠金额(分) */
|
|
66
|
+
discountAmount: number;
|
|
67
|
+
/** 优惠规则描述 */
|
|
68
|
+
ruleDescription?: string;
|
|
61
69
|
/** 该类型券可用数量 */
|
|
62
70
|
count?: number;
|
|
63
71
|
/** 最优选中数量 */
|
|
@@ -89,9 +97,9 @@ export declare namespace Service {
|
|
|
89
97
|
/** SKU ID */
|
|
90
98
|
skuId: string;
|
|
91
99
|
/** 选择的优惠券券码列表 */
|
|
92
|
-
|
|
93
|
-
/**
|
|
94
|
-
|
|
100
|
+
selectedCoupons?: Entity.CouponInfo[];
|
|
101
|
+
/** 是否使用积分 */
|
|
102
|
+
usePoints: boolean;
|
|
95
103
|
}
|
|
96
104
|
/** 积分商城提单算价 */
|
|
97
105
|
interface calculatePointsMallOrder {
|
|
@@ -115,7 +123,7 @@ export declare namespace Service {
|
|
|
115
123
|
/** 商品数量 */
|
|
116
124
|
quantity: number;
|
|
117
125
|
/** 用户选择优惠券 */
|
|
118
|
-
selectedCouponStats
|
|
126
|
+
selectedCouponStats?: Entity.CouponGroupStats[];
|
|
119
127
|
/** 使用的积分数量 */
|
|
120
128
|
pointsToUse?: number;
|
|
121
129
|
}
|
|
@@ -134,8 +142,9 @@ export declare namespace Service {
|
|
|
134
142
|
/** 剩余待支付金额(分) */
|
|
135
143
|
remainingAmount: number;
|
|
136
144
|
/** 最优优惠券组合 */
|
|
145
|
+
optimalCoupons?: Entity.CouponInfo[];
|
|
137
146
|
/** 积分抵扣规则 */
|
|
138
|
-
pointsDeductionRule
|
|
147
|
+
pointsDeductionRule?: Entity.PointsDeductionRule;
|
|
139
148
|
/** 用户所有可用优惠券列表 */
|
|
140
149
|
availableCoupons?: Entity.CouponInfo[];
|
|
141
150
|
}
|
|
@@ -156,20 +165,18 @@ export declare namespace Service {
|
|
|
156
165
|
originalAmount: number;
|
|
157
166
|
/** 券优惠金额(分) */
|
|
158
167
|
couponDiscountAmount: number;
|
|
159
|
-
/**
|
|
168
|
+
/** 优惠后金额(分) */
|
|
169
|
+
discountedAmount: number;
|
|
170
|
+
/** 积分最高抵扣金额(分) */
|
|
160
171
|
pointsDeductionAmount: number;
|
|
161
|
-
/**
|
|
162
|
-
|
|
163
|
-
/**
|
|
164
|
-
|
|
165
|
-
/**
|
|
166
|
-
|
|
167
|
-
/**
|
|
168
|
-
|
|
169
|
-
/** 是否有效(优惠券或积分是否可用) */
|
|
170
|
-
isValid: boolean;
|
|
171
|
-
/** 无效原因(如果无效) */
|
|
172
|
-
invalidReason?: string;
|
|
172
|
+
/** 剩余待支付金额(分) */
|
|
173
|
+
remainingAmount: number;
|
|
174
|
+
/** 积分抵扣规则 */
|
|
175
|
+
pointsDeductionRule?: Entity.PointsDeductionRule;
|
|
176
|
+
/** 最优优惠券组合 */
|
|
177
|
+
selectedCoupons?: Entity.CouponInfo[];
|
|
178
|
+
/** 用户所有可用优惠券列表 */
|
|
179
|
+
availableCoupons?: Entity.CouponInfo[];
|
|
173
180
|
}
|
|
174
181
|
/** 积分商城提单算价响应 */
|
|
175
182
|
interface calculatePointsMallOrder {
|
|
@@ -180,11 +187,11 @@ export declare namespace Service {
|
|
|
180
187
|
/** 商品数量 */
|
|
181
188
|
quantity: number;
|
|
182
189
|
/** 兑换所需积分 */
|
|
183
|
-
requiredPoints
|
|
190
|
+
requiredPoints?: number;
|
|
184
191
|
/** 兑换所需优惠券数量 */
|
|
185
|
-
requiredCoupons
|
|
192
|
+
requiredCoupons?: number;
|
|
186
193
|
/** 用户可用优惠券分组统计 */
|
|
187
|
-
availableCouponStats
|
|
194
|
+
availableCouponStats?: Entity.CouponGroupStats[];
|
|
188
195
|
/** 用户可用积分数量 */
|
|
189
196
|
userAvailablePoints?: number;
|
|
190
197
|
}
|
|
@@ -197,13 +204,15 @@ export declare namespace Service {
|
|
|
197
204
|
/** 商品数量 */
|
|
198
205
|
quantity: number;
|
|
199
206
|
/** 兑换所需积分 */
|
|
200
|
-
requiredPoints
|
|
207
|
+
requiredPoints?: number;
|
|
201
208
|
/** 兑换所需优惠券数量 */
|
|
202
|
-
requiredCoupons
|
|
209
|
+
requiredCoupons?: number;
|
|
203
210
|
/** 使用积分数量 */
|
|
204
|
-
usedPoints
|
|
211
|
+
usedPoints?: number;
|
|
212
|
+
/** 用户选择优惠券聚合 */
|
|
213
|
+
selectedCouponStats?: Entity.CouponGroupStats[];
|
|
205
214
|
/** 使用兑换券明细列表 */
|
|
206
|
-
usedCoupons
|
|
215
|
+
usedCoupons?: Entity.CouponInfo[];
|
|
207
216
|
}
|
|
208
217
|
}
|
|
209
218
|
interface PricingCalculationController {
|