@be-link/ecommerce-promotion-service-node-sdk 0.1.37 → 0.1.39

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.
@@ -223,8 +223,16 @@ export declare namespace Service {
223
223
  /** 剩余待支付金额(分) */
224
224
  remainingAmount: number;
225
225
  };
226
- /** 选中的券列表(单品券+订单券) */
227
- selectedCoupons: {
226
+ /** 选中的单品券列表 */
227
+ selectedItemCoupons: {
228
+ couponId: string;
229
+ couponName: string;
230
+ couponCode: string;
231
+ discountAmount: number;
232
+ endtime: number;
233
+ }[];
234
+ /** 选中的订单券列表 */
235
+ selectedOrderCoupons: {
228
236
  couponId: string;
229
237
  couponName: string;
230
238
  couponCode: string;
@@ -235,22 +243,10 @@ export declare namespace Service {
235
243
  availableItemCouponTemplates: string[];
236
244
  /** 订单券可用性信息 */
237
245
  orderCouponsAvailability: {
238
- /** 可用的订单券列表 */
239
- available: Array<{
240
- couponId: string;
241
- couponName: string;
242
- couponCode: string;
243
- discountAmount: number;
244
- endtime: number;
245
- }>;
246
- /** 不可用的订单券列表 */
247
- unavailable: Array<{
248
- couponId: string;
249
- couponName: string;
250
- couponCode: string;
251
- /** 不可用原因 */
252
- unavailableReason: string;
253
- }>;
246
+ /** 可用的订单券模板ID列表 */
247
+ available: string[];
248
+ /** 不可用的订单券模板ID列表 */
249
+ unavailable: string[];
254
250
  };
255
251
  /** 校验结果(仅在用户选择场景下有值) */
256
252
  validation?: ValidateSelectedCouponResult;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@be-link/ecommerce-promotion-service-node-sdk",
3
- "version": "0.1.37",
3
+ "version": "0.1.39",
4
4
  "description": "EcommercePromotionService Node.js SDK",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",