@intercartx/booster-core 0.0.1-beta.28 → 0.0.1-beta.29

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.
@@ -5,3 +5,4 @@ export * from './cc';
5
5
  export * from './pp';
6
6
  export * from './ach';
7
7
  export * from './types';
8
+ export * from './quick';
@@ -5,3 +5,4 @@ export * from './cc';
5
5
  export * from './pp';
6
6
  export * from './ach';
7
7
  export * from './types';
8
+ export * from './quick';
@@ -0,0 +1,12 @@
1
+ import { OrderProduct } from "../types";
2
+ export interface QuickOrderRequest {
3
+ products: OrderProduct;
4
+ confirmUrl: string;
5
+ }
6
+ export interface QuickOrderResponse {
7
+ sourceToken: string;
8
+ newToken: string;
9
+ newOrderId: string;
10
+ newTradeId: string;
11
+ }
12
+ export declare function apiCreateQuickOrder(token: string, body: QuickOrderRequest): Promise<QuickOrderResponse>;
@@ -0,0 +1,4 @@
1
+ import { post } from "../helper";
2
+ export async function apiCreateQuickOrder(token, body) {
3
+ return post(`/order/quick/submission/${token}`, body);
4
+ }
@@ -25,6 +25,7 @@ interface BaseOrderProduct {
25
25
  originPrice: number | string;
26
26
  discount: number;
27
27
  productId?: string;
28
+ [key: string]: any;
28
29
  }[];
29
30
  }
30
31
  interface OneTimeOrderProduct extends BaseOrderProduct {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@intercartx/booster-core",
3
- "version": "0.0.1-beta.28",
3
+ "version": "0.0.1-beta.29",
4
4
  "description": "核心功能库,提供结账系统的业务逻辑、数据模型、验证工具、API 接口和样式文件",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",