@pisell/pisellos 2.2.204 → 2.2.205

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.
Files changed (39) hide show
  1. package/dist/model/strategy/adapter/promotion/index.js +0 -9
  2. package/dist/modules/Order/index.js +9 -3
  3. package/dist/modules/Payment/index.d.ts +0 -13
  4. package/dist/modules/Payment/index.js +449 -833
  5. package/dist/plugins/request.d.ts +1 -0
  6. package/dist/server/index.d.ts +6 -0
  7. package/dist/server/index.js +730 -619
  8. package/dist/server/modules/index.d.ts +2 -0
  9. package/dist/server/modules/index.js +2 -0
  10. package/dist/server/modules/payment/index.d.ts +28 -0
  11. package/dist/server/modules/payment/index.js +305 -0
  12. package/dist/server/modules/payment/types.d.ts +9 -0
  13. package/dist/server/modules/payment/types.js +1 -0
  14. package/dist/solution/BaseSales/index.d.ts +6 -1
  15. package/dist/solution/BaseSales/index.js +67 -18
  16. package/dist/solution/BookingTicket/index.js +1 -1
  17. package/dist/solution/BookingTicket/utils/scan/applyGlobalScan.js +51 -52
  18. package/dist/solution/BookingTicket/utils/scan/index.d.ts +5 -0
  19. package/dist/solution/BookingTicket/utils/scan/index.js +20 -8
  20. package/lib/model/strategy/adapter/promotion/index.js +49 -0
  21. package/lib/modules/Order/index.js +5 -1
  22. package/lib/modules/Payment/index.d.ts +0 -13
  23. package/lib/modules/Payment/index.js +6 -149
  24. package/lib/plugins/request.d.ts +1 -0
  25. package/lib/server/index.d.ts +6 -0
  26. package/lib/server/index.js +46 -0
  27. package/lib/server/modules/index.d.ts +2 -0
  28. package/lib/server/modules/index.js +3 -0
  29. package/lib/server/modules/payment/index.d.ts +28 -0
  30. package/lib/server/modules/payment/index.js +192 -0
  31. package/lib/server/modules/payment/types.d.ts +9 -0
  32. package/lib/server/modules/payment/types.js +17 -0
  33. package/lib/solution/BaseSales/index.d.ts +6 -1
  34. package/lib/solution/BaseSales/index.js +51 -5
  35. package/lib/solution/BookingTicket/index.js +1 -1
  36. package/lib/solution/BookingTicket/utils/scan/applyGlobalScan.js +1 -2
  37. package/lib/solution/BookingTicket/utils/scan/index.d.ts +5 -0
  38. package/lib/solution/BookingTicket/utils/scan/index.js +17 -3
  39. package/package.json +1 -1
@@ -69,6 +69,7 @@ export interface RequestOptions {
69
69
  customToast?: () => void;
70
70
  cache?: CacheProps;
71
71
  osServer?: boolean;
72
+ prefix?: boolean;
72
73
  callback?: (res: any) => void;
73
74
  subscriberId?: string;
74
75
  }
@@ -4,6 +4,7 @@ import { QuotationModule } from './modules/quotation';
4
4
  import { ScheduleModuleEx } from './modules/schedule';
5
5
  import { ResourceModule } from './modules/resource';
6
6
  import { FloorPlanModule } from './modules/floor-plan';
7
+ import { PaymentServerModule } from './modules/payment';
7
8
  import { PisellCore, ServerModuleConfig, InitializeServerOptions } from '../types';
8
9
  import type { RouteHandler, HttpMethod, RouteDefinition, Router, ModuleRegistryConfig, RequestSetting } from './types';
9
10
  import { OrderModule } from './modules/order';
@@ -23,6 +24,9 @@ declare class Server {
23
24
  resource?: ResourceModule;
24
25
  order?: OrderModule;
25
26
  floor_plan?: FloorPlanModule;
27
+ payment?: PaymentServerModule;
28
+ private paymentRouteModule?;
29
+ private paymentRouteModuleInFlight?;
26
30
  /** GET 前缀路由(最长前缀优先匹配) */
27
31
  private prefixRouterGet;
28
32
  router: Router;
@@ -167,6 +171,8 @@ declare class Server {
167
171
  * @private
168
172
  */
169
173
  private registerServerRoutes;
174
+ private getPaymentRouteModule;
175
+ private handlePaymentMethods;
170
176
  /**
171
177
  * 根据 subscriberId 移除商品查询订阅者
172
178
  */