@pisell/pisellos 2.3.109 → 2.3.111

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 (30) hide show
  1. package/dist/modules/OpenData/index.d.ts +1 -1
  2. package/dist/modules/OpenData/index.js +19 -11
  3. package/dist/modules/Order/index.d.ts +1 -0
  4. package/dist/modules/Order/index.js +22 -21
  5. package/dist/modules/Payment/cashRecommendationAlgorithm.d.ts +4 -5
  6. package/dist/modules/Payment/cashRecommendationAlgorithm.js +17 -367
  7. package/dist/server/index.js +4 -5
  8. package/dist/server/utils/small-ticket.d.ts +8 -5
  9. package/dist/server/utils/small-ticket.js +678 -140
  10. package/dist/solution/BookingByStep/index.d.ts +1 -1
  11. package/dist/solution/BookingTicket/index.d.ts +6 -0
  12. package/dist/solution/BookingTicket/index.js +548 -485
  13. package/dist/utils/os-private-payload.d.ts +5 -0
  14. package/dist/utils/os-private-payload.js +17 -0
  15. package/lib/model/strategy/adapter/promotion/index.js +1 -46
  16. package/lib/modules/OpenData/index.d.ts +1 -1
  17. package/lib/modules/OpenData/index.js +9 -1
  18. package/lib/modules/Order/index.d.ts +1 -0
  19. package/lib/modules/Order/index.js +15 -18
  20. package/lib/modules/Payment/cashRecommendationAlgorithm.d.ts +4 -5
  21. package/lib/modules/Payment/cashRecommendationAlgorithm.js +9 -354
  22. package/lib/server/index.js +4 -5
  23. package/lib/server/utils/small-ticket.d.ts +8 -5
  24. package/lib/server/utils/small-ticket.js +524 -65
  25. package/lib/solution/BookingByStep/index.d.ts +1 -1
  26. package/lib/solution/BookingTicket/index.d.ts +6 -0
  27. package/lib/solution/BookingTicket/index.js +32 -3
  28. package/lib/utils/os-private-payload.d.ts +5 -0
  29. package/lib/utils/os-private-payload.js +22 -0
  30. package/package.json +1 -1
@@ -28,32 +28,35 @@ export interface SmallTicketItem {
28
28
  value: string;
29
29
  size?: number;
30
30
  align?: string;
31
+ product_uid?: string | number;
32
+ booking_uid?: string | number;
31
33
  }
32
34
  export interface SmallTicketProduct {
33
35
  product_title: string;
34
36
  product_quantity: number;
35
37
  selling_price: string;
38
+ total_selling_price: string;
36
39
  original_price: string;
37
40
  base_price?: string;
38
41
  total_original_price: string;
42
+ options_total_price?: string;
43
+ package_items_total_price?: string;
39
44
  extension_list: any[];
40
45
  product_uid?: string | number;
41
46
  booking_uid?: string | number;
42
47
  product_note?: string;
48
+ allergy?: string;
43
49
  options?: Array<{
44
50
  name: string;
45
51
  num?: number;
46
52
  price?: string;
53
+ total_price: string;
47
54
  value?: string;
48
55
  }>;
49
56
  variant?: string;
50
57
  combinations?: any[];
51
58
  }
52
- export interface SmallTicketBookingSnapshot extends Record<string, any> {
53
- product_uid?: string | number;
54
- booking_uid?: string | number;
55
- }
56
- export type SmallTicketAppointment = SmallTicketItem[] | SmallTicketBookingSnapshot[];
59
+ export type SmallTicketAppointment = SmallTicketItem[];
57
60
  export interface SmallTicketLocaleData {
58
61
  base_data: Record<string, any>;
59
62
  products: SmallTicketProduct[];