@intercartx/booster-core 0.0.1-beta.30 → 0.0.1-beta.31

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.
@@ -26,7 +26,22 @@ export interface OrderDetail {
26
26
  }[]>;
27
27
  subOrderIds: string[];
28
28
  }
29
+ export interface SubscriptionInfo {
30
+ subscriptionId: string;
31
+ status: string;
32
+ data: {
33
+ coupon: string[];
34
+ interval: number;
35
+ products: {
36
+ sku: string;
37
+ priceId: string;
38
+ quantity: number;
39
+ }[];
40
+ recurring: string;
41
+ }[];
42
+ }
29
43
  export interface GetOrderResponse {
30
44
  order: OrderDetail;
45
+ subscription?: SubscriptionInfo;
31
46
  }
32
47
  export declare function apiGetOrder(token: string): Promise<GetOrderResponse>;
@@ -1,4 +1,4 @@
1
1
  import { post } from "../helper";
2
2
  export async function apiCreateQuickOrder(token, body) {
3
- return post(`/order/quick/submission/${token}`, body);
3
+ return post(`/order/quick/${token}`, body);
4
4
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@intercartx/booster-core",
3
- "version": "0.0.1-beta.30",
3
+ "version": "0.0.1-beta.31",
4
4
  "description": "核心功能库,提供结账系统的业务逻辑、数据模型、验证工具、API 接口和样式文件",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",