@pisell/private-materials 6.2.7 → 6.2.9

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 (109) hide show
  1. package/build/lowcode/assets-daily.json +11 -11
  2. package/build/lowcode/assets-dev.json +2 -2
  3. package/build/lowcode/assets-prod.json +11 -11
  4. package/build/lowcode/index.js +1 -1
  5. package/build/lowcode/meta.js +1 -1
  6. package/build/lowcode/preview.js +13 -13
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +7 -7
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +8 -8
  11. package/es/components/Sales/Customer/index.d.ts +25 -0
  12. package/es/components/appointmentBooking/components/Form/index.d.ts +4 -0
  13. package/es/components/appointmentBooking/components/Form/utils.d.ts +8 -0
  14. package/es/components/booking/components/TabProduct/tabs/index.js +1 -5
  15. package/es/components/booking/components/browserSelect/index.js +1 -1
  16. package/es/components/booking/components/footer/index.js +32 -24
  17. package/es/components/booking/forms/model.js +5 -5
  18. package/es/components/booking/forms/sendModal/useSendModal.d.ts +1 -1
  19. package/es/components/booking/info/service/Lists.d.ts +2 -0
  20. package/es/components/booking/info/service/addService/utils.d.ts +1 -1
  21. package/es/components/booking/info/service/like/index.js +1 -1
  22. package/es/components/booking/info/utils.js +1 -1
  23. package/es/components/booking/info2/service/addService/utils.d.ts +1 -1
  24. package/es/components/booking/info2/service/index.d.ts +4 -0
  25. package/es/components/booking/info2/utils.d.ts +4 -0
  26. package/es/components/booking/info2/utilsByBooking.js +9 -3
  27. package/es/components/booking/materiels/startTime/index.js +1 -1
  28. package/es/components/booking/notes/NoteBlock/NoteItem/index.js +1 -1
  29. package/es/components/booking/notes/NoteBlock/index.js +11 -11
  30. package/es/components/booking/notes/model.js +5 -5
  31. package/es/components/booking/payments/model.js +5 -5
  32. package/es/components/eftposPay/hooks.d.ts +2 -2
  33. package/es/components/eftposPay/store/index.d.ts +3 -3
  34. package/es/components/listComponent/index.js +5 -5
  35. package/es/components/pay/toC/PaymentMethods/GlobePayAliPayH5/index.js +18 -3
  36. package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +1 -1
  37. package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.js +7 -2
  38. package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.less +8 -0
  39. package/es/components/pay/toC/PaymentMethods/SuperPayAliPayH5/index.js +18 -3
  40. package/es/components/pay/toC/PaymentMethods/WalletPass/serve.d.ts +113 -0
  41. package/es/components/pay/toC/locales.d.ts +3 -0
  42. package/es/components/pay/toC/locales.js +3 -0
  43. package/es/components/pay/toC/utils.d.ts +57 -0
  44. package/es/components/productExtension/card/index.js +3 -3
  45. package/es/components/productExtension/fields/Actor/CutOffTime/index.js +1 -1
  46. package/es/components/productExtension/fields/Forms/index.js +12 -12
  47. package/es/components/productExtension/fields/SelectProducts/ProductItemPreview/index.js +1 -1
  48. package/es/components/productExtension/fields/SelectProducts/server.js +2 -2
  49. package/es/components/productExtension/fields/SelectResourcesTable/server.js +2 -2
  50. package/es/components/productExtension/server.js +2 -2
  51. package/es/components/ruleSetting/ruleBorder/index.js +1 -1
  52. package/es/components/schedules/calendar/index.js +4 -4
  53. package/es/components/schedules/calendar/serve.js +2 -2
  54. package/es/components/schedules/components/CurrentDay/index.js +5 -5
  55. package/es/components/schedules/components/CurrentDay/serve.js +2 -2
  56. package/es/components/schedules/components/DropdownSort/index.js +1 -1
  57. package/es/components/schedules/components/ResourceList/index.js +1 -1
  58. package/es/components/schedules/components/Search/index.js +5 -5
  59. package/es/components/schedules/model.js +5 -5
  60. package/es/components/schedules/openHours/index.js +1 -1
  61. package/es/components/schedules/openHours/serve.js +2 -2
  62. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.js +1 -1
  63. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.js +5 -5
  64. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.js +4 -4
  65. package/es/components/schedules/products/ProductDetailDrawer/index.js +3 -3
  66. package/es/components/schedules/products/serve.js +2 -2
  67. package/es/components/schedules/products/utils.js +5 -5
  68. package/es/components/schedules/resources/detail/detailContent.js +2 -2
  69. package/es/components/schedules/resources/detail/index.js +10 -10
  70. package/es/components/schedules/resources/list/index.js +2 -2
  71. package/es/components/schedules/resources/relationProduct/index.js +1 -1
  72. package/es/components/schedules/resources/serve.js +2 -2
  73. package/es/components/schedules/schedules/ScheduleDetailDrawer/index.js +9 -9
  74. package/es/components/schedules/utils.d.ts +1 -1
  75. package/es/components/schedules/utils.js +4 -4
  76. package/es/components/selectModal/index.js +2 -2
  77. package/es/components/shoppingCart/components/Cart/Product.d.ts +3 -0
  78. package/es/components/ticketBooking/locales.d.ts +171 -0
  79. package/es/hooks/useComponents.js +1 -1
  80. package/es/utils/index.d.ts +1 -1
  81. package/lib/components/Sales/Customer/index.d.ts +25 -0
  82. package/lib/components/appointmentBooking/components/Form/index.d.ts +4 -0
  83. package/lib/components/appointmentBooking/components/Form/utils.d.ts +8 -0
  84. package/lib/components/booking/components/footer/index.js +24 -11
  85. package/lib/components/booking/forms/sendModal/useSendModal.d.ts +1 -1
  86. package/lib/components/booking/info/service/Lists.d.ts +2 -0
  87. package/lib/components/booking/info/service/addService/utils.d.ts +1 -1
  88. package/lib/components/booking/info/utils.js +2 -1
  89. package/lib/components/booking/info2/service/addService/utils.d.ts +1 -1
  90. package/lib/components/booking/info2/service/index.d.ts +4 -0
  91. package/lib/components/booking/info2/utils.d.ts +4 -0
  92. package/lib/components/booking/info2/utilsByBooking.js +4 -1
  93. package/lib/components/eftposPay/hooks.d.ts +2 -2
  94. package/lib/components/eftposPay/store/index.d.ts +3 -3
  95. package/lib/components/pay/toC/PaymentMethods/GlobePayAliPayH5/index.js +13 -1
  96. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +1 -1
  97. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.js +2 -2
  98. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.less +8 -0
  99. package/lib/components/pay/toC/PaymentMethods/SuperPayAliPayH5/index.js +13 -1
  100. package/lib/components/pay/toC/PaymentMethods/WalletPass/serve.d.ts +113 -0
  101. package/lib/components/pay/toC/locales.d.ts +3 -0
  102. package/lib/components/pay/toC/locales.js +3 -0
  103. package/lib/components/pay/toC/utils.d.ts +57 -0
  104. package/lib/components/schedules/utils.d.ts +1 -1
  105. package/lib/components/schedules/utils.js +1 -1
  106. package/lib/components/shoppingCart/components/Cart/Product.d.ts +3 -0
  107. package/lib/components/ticketBooking/locales.d.ts +171 -0
  108. package/lib/utils/index.d.ts +1 -1
  109. package/package.json +4 -4
@@ -0,0 +1,4 @@
1
+ export declare const getFormatResourceListAndMap: (data: any[], bookingId?: number[]) => {
2
+ list: any[];
3
+ listMap: any;
4
+ };
@@ -69,7 +69,10 @@ var getResourceTimeIsUsable = (item, cacheItem, resourceItem) => {
69
69
  let timeEndDate = (0, import_dayjs.default)(time.end_date + " " + time.end_time).add(1, "second");
70
70
  let totalCount = getUseableEventCount(time.event_list, resourceItem.capacity);
71
71
  const currentCount = getSumCapacity({ cacheItem });
72
- const eventList = (time.event_list || []).filter((event) => event.id !== (cacheItem == null ? void 0 : cacheItem.booking_id));
72
+ let eventList = time.event_list || [];
73
+ if (cacheItem == null ? void 0 : cacheItem.booking_id) {
74
+ eventList = eventList.filter((event) => event.id !== (cacheItem == null ? void 0 : cacheItem.booking_id));
75
+ }
73
76
  let endDate = null;
74
77
  let isCalcCount = true;
75
78
  if (isFlexible) {
@@ -15,11 +15,11 @@ export declare const useStoreRef: <T extends {
15
15
  readonly numRef: React.MutableRefObject<string | number | undefined>;
16
16
  readonly orderIdRef: React.MutableRefObject<string | number>;
17
17
  readonly modeRef: React.MutableRefObject<ModeEnum>;
18
- readonly statusRef: React.MutableRefObject<"success" | "loading" | "warn" | "fail" | "pedding" | "resove" | "reject" | "question">;
18
+ readonly statusRef: React.MutableRefObject<"success" | "warn" | "loading" | "fail" | "pedding" | "resove" | "reject" | "question">;
19
19
  readonly netRef: React.MutableRefObject<boolean | undefined>;
20
20
  readonly symbolRef: React.MutableRefObject<string>;
21
21
  readonly amountRef: React.MutableRefObject<string | number>;
22
- readonly eftposRef: React.MutableRefObject<"tyro" | "windcave" | "stripe" | "payo" | "linkly">;
22
+ readonly eftposRef: React.MutableRefObject<"stripe" | "payo" | "tyro" | "windcave" | "linkly">;
23
23
  readonly clientRef: React.MutableRefObject<ClientEnum>;
24
24
  readonly dataRef: React.MutableRefObject<import("./store").State>;
25
25
  };
@@ -174,7 +174,7 @@ export declare const updateCustom: (payload: {
174
174
  export declare const updateStatus: (status: 'loading' | 'warn' | 'fail' | 'success' | 'question') => {
175
175
  type: EActionTypes;
176
176
  payload: {
177
- status: "success" | "loading" | "warn" | "fail" | "question";
177
+ status: "success" | "warn" | "loading" | "fail" | "question";
178
178
  };
179
179
  };
180
180
  /**
@@ -297,7 +297,7 @@ export declare const backUpFree: (payload: Partial<State>) => {
297
297
  amount?: string | number | undefined;
298
298
  mode?: "refund" | "pay" | "fullPay" | "query" | undefined;
299
299
  order_id?: string | number | undefined;
300
- eftpos?: "tyro" | "windcave" | "stripe" | "payo" | "linkly" | undefined;
300
+ eftpos?: "stripe" | "payo" | "tyro" | "windcave" | "linkly" | undefined;
301
301
  action?: "amount" | "pay" | "deviceList" | undefined;
302
302
  key?: number | undefined;
303
303
  step?: number | undefined;
@@ -308,7 +308,7 @@ export declare const backUpFree: (payload: Partial<State>) => {
308
308
  net?: boolean | undefined;
309
309
  component?: string | undefined;
310
310
  form?: string | undefined;
311
- status?: "success" | "loading" | "warn" | "fail" | "pedding" | "resove" | "reject" | "question" | undefined;
311
+ status?: "success" | "warn" | "loading" | "fail" | "pedding" | "resove" | "reject" | "question" | undefined;
312
312
  warn?: string | undefined;
313
313
  steps?: {
314
314
  /** 用于重置当前步骤 */
@@ -37,11 +37,14 @@ var import_materials = require("@pisell/materials");
37
37
  var import_utils = require("@pisell/utils");
38
38
  var import_ThreedsLoading = __toESM(require("../MWCreditCard/TDSPay/ThreedsLoading"));
39
39
  var import_serve = require("./serve");
40
+ var import_model = require("../../model");
40
41
  var import_payGroup = require("../../payGroup");
41
42
  var import_index = require("./index.less");
42
43
  var GlobePayAliPayH5 = (props, ref) => {
44
+ const { state } = (0, import_react.useContext)(import_model.Context);
43
45
  const { onChange } = props;
44
46
  const [open, setOpen] = (0, import_react.useState)(false);
47
+ const [showSuccessBackButton, setShowSuccessBackButton] = (0, import_react.useState)(false);
45
48
  const init = async ({ payGroup }) => {
46
49
  setOpen(true);
47
50
  const values = (0, import_payGroup.getPayGroupParamsFromStorage)(payGroup.order_id);
@@ -54,6 +57,7 @@ var GlobePayAliPayH5 = (props, ref) => {
54
57
  const url = data.url || (data == null ? void 0 : data.pay_url);
55
58
  if (url) {
56
59
  (0, import_payGroup.setPayNumber)(payGroup == null ? void 0 : payGroup.order_id, data == null ? void 0 : data.pay_number);
60
+ setShowSuccessBackButton(true);
57
61
  window.location.href = url;
58
62
  } else {
59
63
  setOpen(false);
@@ -68,6 +72,12 @@ var GlobePayAliPayH5 = (props, ref) => {
68
72
  init
69
73
  })
70
74
  );
75
+ const handleSuccessBack = () => {
76
+ var _a;
77
+ (_a = state.payCallback) == null ? void 0 : _a.call(state, {
78
+ key: "success"
79
+ });
80
+ };
71
81
  return /* @__PURE__ */ import_react.default.createElement(
72
82
  import_materials.PisellModal,
73
83
  {
@@ -81,7 +91,9 @@ var GlobePayAliPayH5 = (props, ref) => {
81
91
  /* @__PURE__ */ import_react.default.createElement("div", { className: "" }, /* @__PURE__ */ import_react.default.createElement(
82
92
  import_ThreedsLoading.default,
83
93
  {
84
- title: import_utils.locales.getText("tocPay.text.redirectingToAlipay")
94
+ title: import_utils.locales.getText("tocPay.text.redirectingToAlipay"),
95
+ onSuccessBack: handleSuccessBack,
96
+ showSuccessBackButton
85
97
  }
86
98
  ))
87
99
  );
@@ -1,3 +1,3 @@
1
1
  import './index.less';
2
- declare const ThreedsLoading: ({ title }: any) => JSX.Element;
2
+ declare const ThreedsLoading: ({ title, showSuccessBackButton, onSuccessBack }: any) => JSX.Element;
3
3
  export default ThreedsLoading;
@@ -36,7 +36,7 @@ var import_react = __toESM(require("react"));
36
36
  var import_useEngineContext = __toESM(require("../../../../../../../hooks/useEngineContext"));
37
37
  var import_index = require("./index.less");
38
38
  var import_utils = require("@pisell/utils");
39
- var ThreedsLoading = ({ title }) => {
39
+ var ThreedsLoading = ({ title, showSuccessBackButton, onSuccessBack }) => {
40
40
  var _a;
41
41
  const context = (0, import_useEngineContext.default)();
42
42
  const { config } = ((_a = context.appHelper) == null ? void 0 : _a.constants) || {};
@@ -47,6 +47,6 @@ var ThreedsLoading = ({ title }) => {
47
47
  src: config.static + "/static/stripe_loading.gif",
48
48
  alt: ""
49
49
  }
50
- ), /* @__PURE__ */ import_react.default.createElement("div", { className: "threeds-loading-title" }, title || import_utils.locales.getText("tocPay.text.waitingForBankVerification")));
50
+ ), /* @__PURE__ */ import_react.default.createElement("div", { className: "threeds-loading-title" }, title || import_utils.locales.getText("tocPay.text.waitingForBankVerification")), showSuccessBackButton && /* @__PURE__ */ import_react.default.createElement("div", { onClick: onSuccessBack, className: "threeds-loading-success-back-button" }, import_utils.locales.getText("tocPay.text.successBack")));
51
51
  };
52
52
  var ThreedsLoading_default = ThreedsLoading;
@@ -21,4 +21,12 @@
21
21
  line-height: 20px;
22
22
  color: #353535;
23
23
  }
24
+
25
+ .threeds-loading-success-back-button {
26
+ margin-top: 20px;
27
+ color: #4b6b99;
28
+ font-size: 15px;
29
+ font-weight: bold;
30
+ line-height: 20px;
31
+ }
24
32
  }
@@ -37,14 +37,17 @@ var import_materials = require("@pisell/materials");
37
37
  var import_utils = require("@pisell/utils");
38
38
  var import_ThreedsLoading = __toESM(require("../MWCreditCard/TDSPay/ThreedsLoading"));
39
39
  var import_serve = require("./serve");
40
+ var import_model = require("../../model");
40
41
  var import_payGroup = require("../../payGroup");
41
42
  var import_index = require("./index.less");
42
43
  var import_useEngineContext = __toESM(require("../../../../../hooks/useEngineContext"));
43
44
  var import_utils2 = require("../../utils");
44
45
  var SuperPayAliPayH5 = (props, ref) => {
45
46
  var _a;
47
+ const { state } = (0, import_react.useContext)(import_model.Context);
46
48
  const { onChange } = props;
47
49
  const [open, setOpen] = (0, import_react.useState)(false);
50
+ const [showSuccessBackButton, setShowSuccessBackButton] = (0, import_react.useState)(false);
48
51
  const context = (0, import_useEngineContext.default)();
49
52
  const { interaction } = (_a = context.appHelper) == null ? void 0 : _a.utils;
50
53
  const init = async ({ payGroup }) => {
@@ -62,6 +65,7 @@ var SuperPayAliPayH5 = (props, ref) => {
62
65
  const data = await (0, import_serve.getAliPayUrl)(payGroup.order_id, values);
63
66
  if (data == null ? void 0 : data.pay_url) {
64
67
  (0, import_payGroup.setPayNumber)(payGroup == null ? void 0 : payGroup.order_id, data == null ? void 0 : data.pay_number);
68
+ setShowSuccessBackButton(true);
65
69
  window.location.href = data == null ? void 0 : data.pay_url;
66
70
  } else {
67
71
  setOpen(false);
@@ -76,6 +80,12 @@ var SuperPayAliPayH5 = (props, ref) => {
76
80
  init
77
81
  })
78
82
  );
83
+ const handleSuccessBack = () => {
84
+ var _a2;
85
+ (_a2 = state.payCallback) == null ? void 0 : _a2.call(state, {
86
+ key: "success"
87
+ });
88
+ };
79
89
  return /* @__PURE__ */ import_react.default.createElement(
80
90
  import_materials.PisellModal,
81
91
  {
@@ -89,7 +99,9 @@ var SuperPayAliPayH5 = (props, ref) => {
89
99
  /* @__PURE__ */ import_react.default.createElement("div", { className: "" }, /* @__PURE__ */ import_react.default.createElement(
90
100
  import_ThreedsLoading.default,
91
101
  {
92
- title: import_utils.locales.getText("tocPay.text.redirectingToAlipay")
102
+ title: import_utils.locales.getText("tocPay.text.redirectingToAlipay"),
103
+ onSuccessBack: handleSuccessBack,
104
+ showSuccessBackButton
93
105
  }
94
106
  ))
95
107
  );
@@ -0,0 +1,113 @@
1
+ export declare type MachineCodeListParams = {
2
+ order_id: number | string;
3
+ available: number;
4
+ prepare_payments: {
5
+ voucher_id: number;
6
+ amount: number;
7
+ tag: string;
8
+ }[];
9
+ filter_prepare_wallet_pass: 1 | 0;
10
+ sale_channel: string;
11
+ other_exact_codes?: string[];
12
+ };
13
+ export declare type WalletPassDataType = {
14
+ id: number;
15
+ shop_id: number;
16
+ customer_id: number;
17
+ code: string;
18
+ encoded: string;
19
+ status: string;
20
+ cover: string;
21
+ tag: string;
22
+ relation_type: string;
23
+ product_id: number;
24
+ limit_status: string;
25
+ sales_status: number;
26
+ par_value: string;
27
+ used_par_value: string;
28
+ start_date: string;
29
+ expire_date: string;
30
+ end_time: string;
31
+ start_time: string;
32
+ created_at: string;
33
+ product_name: string;
34
+ expire_time: string;
35
+ available_max_par_value: string;
36
+ available_max_amount: string;
37
+ recommended_usage_amount: string;
38
+ custom_expire_status: number;
39
+ wallet_pass_usage_unit: WalletPassUsageUnit;
40
+ custom_order_deduct_exhausted: number;
41
+ available_product_status: number;
42
+ available_product_ids: any[];
43
+ available_product_type: string;
44
+ available_num: number;
45
+ available_product_title: string;
46
+ unified_available_status: number;
47
+ unified_messages: UnifiedMessages;
48
+ external_card: any[];
49
+ product: Product;
50
+ shop: Shop;
51
+ wallet_pass_usage?: any;
52
+ balance_par_value: string;
53
+ };
54
+ declare type Shop = {
55
+ id: number;
56
+ name: string;
57
+ default_url: string;
58
+ };
59
+ declare type Product = {
60
+ id: number;
61
+ title: string;
62
+ cover: string;
63
+ is_charge_tax: number;
64
+ };
65
+ declare type UnifiedMessages = {
66
+ title: string;
67
+ desc: string;
68
+ alert: string;
69
+ };
70
+ declare type WalletPassUsageUnit = {
71
+ price: number;
72
+ points: number;
73
+ };
74
+ /**
75
+ * 查询支付识别码列表
76
+ */
77
+ export declare const getMachineCodeList: (params: MachineCodeListParams) => Promise<WalletPassDataType[]>;
78
+ /**
79
+ * 获取推荐的支付识别码
80
+ */
81
+ export declare const getRecommendMachineCodeList: (order_id: number) => Promise<WalletPassDataType[]>;
82
+ /**
83
+ * 搜索支付识别码
84
+ */
85
+ export declare const searchMachineCodeList: (params: {
86
+ order_id: number | string;
87
+ code: string;
88
+ sale_channel: string;
89
+ prepare_payments: {
90
+ voucher_id: number;
91
+ amount: number;
92
+ tag: string;
93
+ }[];
94
+ filter_prepare_wallet_pass: 1 | 0;
95
+ }) => Promise<WalletPassDataType[]>;
96
+ /**
97
+ * walletpass支付
98
+ */
99
+ export declare const walletPassPay: (params: {
100
+ order_id: number | string;
101
+ payment_group_id: number;
102
+ payments: {
103
+ amount: string;
104
+ wallet_pass_use_value: string;
105
+ voucher_id: number;
106
+ tag: string;
107
+ wallet_pass_usage_unit: {
108
+ price: number;
109
+ points: number;
110
+ };
111
+ }[];
112
+ }) => Promise<WalletPassDataType[]>;
113
+ export {};
@@ -35,6 +35,7 @@ declare const _default: {
35
35
  'tocPay.text.done': string;
36
36
  'tocPay.text.manageCard': string;
37
37
  'tocPay.text.waitingForBankVerification': string;
38
+ 'tocPay.text.successBack': string;
38
39
  'tocPay.text.redirectingToAlipay': string;
39
40
  'tocPay.text.redirectingToPaypal': string;
40
41
  'tocPay.text.redirectingToWeChatPay': string;
@@ -130,6 +131,7 @@ declare const _default: {
130
131
  'tocPay.text.done': string;
131
132
  'tocPay.text.manageCard': string;
132
133
  'tocPay.text.waitingForBankVerification': string;
134
+ 'tocPay.text.successBack': string;
133
135
  'tocPay.text.redirectingToAlipay': string;
134
136
  'tocPay.text.redirectingToPaypal': string;
135
137
  'tocPay.text.redirectingToWeChatPay': string;
@@ -224,6 +226,7 @@ declare const _default: {
224
226
  'tocPay.text.done': string;
225
227
  'tocPay.text.manageCard': string;
226
228
  'tocPay.text.waitingForBankVerification': string;
229
+ 'tocPay.text.successBack': string;
227
230
  'tocPay.text.redirectingToAlipay': string;
228
231
  'tocPay.text.redirectingToPaypal': string;
229
232
  'tocPay.text.redirectingToWeChatPay': string;
@@ -59,6 +59,7 @@ var locales_default = {
59
59
  "tocPay.text.done": "Done",
60
60
  "tocPay.text.manageCard": "Manage card",
61
61
  "tocPay.text.waitingForBankVerification": "Waiting for bank verification, please wait for 5-10 seconds. You may be redirected to the card issuing bank’s verification page to authorize this payment.",
62
+ "tocPay.text.successBack": "Payment completed, return to order",
62
63
  "tocPay.text.redirectingToAlipay": "Redirecting to Alipay, please wait...",
63
64
  "tocPay.text.redirectingToPaypal": "Redirecting to Paypal, please wait...",
64
65
  "tocPay.text.redirectingToWeChatPay": "Redirecting to WeChat Pay, please wait...",
@@ -154,6 +155,7 @@ var locales_default = {
154
155
  "tocPay.text.done": "完成",
155
156
  "tocPay.text.manageCard": "管理卡片",
156
157
  "tocPay.text.waitingForBankVerification": "正在等待银行校验,请静候5-10秒左右。您可能被转入开卡行的持卡人校验页面来授权本次支付。",
158
+ "tocPay.text.successBack": "已支付完成返回查看订单",
157
159
  "tocPay.text.redirectingToAlipay": "正在转入支付宝支付,请稍候...",
158
160
  "tocPay.text.redirectingToPaypal": "正在转入Paypal支付,请稍候...",
159
161
  "tocPay.text.redirectingToWeChatPay": "正在转入微信支付,请稍候...",
@@ -248,6 +250,7 @@ var locales_default = {
248
250
  "tocPay.text.done": "完成",
249
251
  "tocPay.text.manageCard": "管理卡片",
250
252
  "tocPay.text.waitingForBankVerification": "正在等待銀行校驗,請靜候5-10秒左右。您可能被轉入開卡行的持卡人校驗頁面來授權本次支付。",
253
+ "tocPay.text.successBack": "已支付完成返回查看訂單",
251
254
  "tocPay.text.redirectingToAlipay": "正在轉入支付寶支付,請稍候...",
252
255
  "tocPay.text.redirectingToPaypal": "正在轉入Paypal支付,請稍候...",
253
256
  "tocPay.text.redirectingToWeChatPay": "正在轉入微信支付,請稍候...",
@@ -0,0 +1,57 @@
1
+ import { PayGroup } from "./model";
2
+ import { WalletPassDataType } from "./PaymentMethods/WalletPass/serve";
3
+ /**
4
+ * 计算walletPass列表数据的总金额
5
+ * @param list
6
+ */
7
+ export declare const calcWalletPassListAmount: (list: any[]) => any;
8
+ /**
9
+ * 将walletPass列表数据转换为prepare_payments需要的数据格式
10
+ * @param list
11
+ */
12
+ export declare const formatWalletPassList2PreparePayments: (list?: any[]) => {
13
+ voucher_id: any;
14
+ amount: number;
15
+ tag: any;
16
+ }[];
17
+ /**
18
+ * walletPass支付params
19
+ * @param payGroup
20
+ */
21
+ export declare const formatWalletPassParams: (payGroup: PayGroup) => {
22
+ order_id: string;
23
+ payment_group_id: number;
24
+ payments: {
25
+ amount: string;
26
+ wallet_pass_use_value: any;
27
+ voucher_id: any;
28
+ tag: any;
29
+ wallet_pass_usage_unit: any;
30
+ }[];
31
+ };
32
+ /**
33
+ * @title: 获取是否walletPass和三方支付的组合支付
34
+ * @description: 三方支付 (stripe 支付宝 微信 苹果 谷歌)
35
+ * @return: *
36
+ * @Author: shengjie.zuo
37
+ * @Date: 2024-08-30 10:06:17
38
+ */
39
+ export declare const getIsWalletPassAndTripartitePayment: (payGroup: PayGroup) => boolean | 0 | undefined;
40
+ export declare const isFranchiseeShop: (path?: any, history?: any) => any;
41
+ /**
42
+ * @title: 获取当前连锁加盟店铺shopid
43
+ * @description:
44
+ * @param {any} param1
45
+ * @return {*}
46
+ * @Author: chensheng.gu
47
+ * @Date: 2024-08-07 10:04
48
+ */
49
+ export declare const getFranchiseeShopId: (path?: any, history?: any) => number;
50
+ export declare const formatFranchiseeRoute: (url: string, history?: any) => string;
51
+ export declare const getAvailableMaxAmount: (data: WalletPassDataType) => string;
52
+ export declare const clientPayment: (params: {
53
+ order_id: number;
54
+ type: "aliPay" | "wxPay";
55
+ values: any;
56
+ interaction?: any;
57
+ }) => void;
@@ -17,6 +17,6 @@ declare let modal: Omit<ModalStaticFunctions, "warn">;
17
17
  export declare const setModal: (m: Omit<ModalStaticFunctions, "warn">) => void;
18
18
  export declare const saveConfirm: () => Promise<{
19
19
  destroy: () => void;
20
- update: (configUpdate: import("antd/es/modal/interface").ModalFuncProps | ((prevConfig: import("antd/es/modal/interface").ModalFuncProps) => import("antd/es/modal/interface").ModalFuncProps)) => void;
20
+ update: (configUpdate: import("antd").ModalFuncProps | ((prevConfig: import("antd").ModalFuncProps) => import("antd").ModalFuncProps)) => void;
21
21
  }>;
22
22
  export { modal };
@@ -27,8 +27,8 @@ __export(utils_exports, {
27
27
  module.exports = __toCommonJS(utils_exports);
28
28
  var import_utils = require("@pisell/utils");
29
29
  var Request = class {
30
- request = {};
31
30
  constructor() {
31
+ this.request = {};
32
32
  }
33
33
  setRequest(val) {
34
34
  this.request = val;
@@ -0,0 +1,3 @@
1
+ import { ProductProps } from '../../type';
2
+ declare const Product: (props: ProductProps) => JSX.Element;
3
+ export default Product;
@@ -0,0 +1,171 @@
1
+ declare const _default: {
2
+ en: {
3
+ 'pisell2.ticket-booking.info': string;
4
+ 'pisell2.ticket-booking.notes': string;
5
+ 'pisell2.ticket-booking.forms': string;
6
+ 'pisell2.ticket-booking.sales': string;
7
+ 'pisell2.ticket-booking.payment': string;
8
+ 'pisell2.ticket-booking.unsaved-changes': string;
9
+ 'pisell2.ticket-booking.exit-confirm': string;
10
+ 'pisell2.ticket-booking.go-back': string;
11
+ 'pisell2.ticket-booking.exit': string;
12
+ 'pisell2.ticket-booking.deposit': string;
13
+ 'pisell2.ticket-booking.copy-success': string;
14
+ 'pisell2.ticket-booking.no-data': string;
15
+ 'pisell2.ticket-booking.authorized': string;
16
+ 'pisell2.ticket-booking.paid': string;
17
+ 'pisell2.ticket-booking.partially-paid': string;
18
+ 'pisell2.ticket-booking.partially-refunded': string;
19
+ 'pisell2.ticket-booking.payment-pending': string;
20
+ 'pisell2.ticket-booking.refunded': string;
21
+ 'pisell2.ticket-booking.unpaid': string;
22
+ 'pisell2.ticket-booking.voided': string;
23
+ 'pisell2.ticket-booking.pending': string;
24
+ 'pisell2.ticket-booking.all': string;
25
+ 'pisell2.ticket-booking.not-started': string;
26
+ 'pisell2.ticket-booking.started': string;
27
+ 'pisell2.ticket-booking.finished': string;
28
+ 'pisell2.ticket-booking.canceled': string;
29
+ 'pisell2.ticket-booking.inform': string;
30
+ 'pisell2.ticket-booking.check-management': string;
31
+ 'pisell2.ticket-booking.confirm': string;
32
+ 'pisell2.ticket-booking.dashboard': string;
33
+ 'pisell2.ticket-booking.booking-list': string;
34
+ 'pisell2.ticket-booking.full-data': string;
35
+ 'pisell2.ticket-booking.today': string;
36
+ 'pisell2.ticket-booking.now': string;
37
+ 'pisell2.ticket-booking.start-time': string;
38
+ 'pisell2.ticket-booking.create-time': string;
39
+ 'pisell2.ticket-booking.customer': string;
40
+ 'pisell2.ticket-booking.total': string;
41
+ 'pisell2.ticket-booking.search': string;
42
+ 'pisell2.ticket-booking.refresh-success': string;
43
+ 'pisell2.ticket-booking.loading': string;
44
+ 'pisell2.ticket-booking.appointment-not-found': string;
45
+ 'pisell2.ticket-booking.scan': string;
46
+ 'pisell2.ticket-booking.create-new': string;
47
+ 'pisell2.ticket-booking.add-to-cart': string;
48
+ 'pisell2.ticket-booking.not-available-title': string;
49
+ 'pisell2.ticket-booking.not-available-ok': string;
50
+ 'pisell2.ticket-booking.in-cart': (number: number) => string;
51
+ 'pisell2.product.card.cart-items': (number: number) => string;
52
+ 'pisell2.product.card.subtotal': string;
53
+ 'pisell2.product.card.hour.minute': (hour: number, minute: number) => string;
54
+ 'pisell2.product.card.day': (val: number) => string;
55
+ 'pisell2.product.card.day.event': (val: number) => string;
56
+ 'pisell2.product.card.minute': (val: number) => string;
57
+ };
58
+ 'zh-CN': {
59
+ 'pisell2.ticket-booking.info': string;
60
+ 'pisell2.ticket-booking.notes': string;
61
+ 'pisell2.ticket-booking.forms': string;
62
+ 'pisell2.ticket-booking.sales': string;
63
+ 'pisell2.ticket-booking.payment': string;
64
+ 'pisell2.ticket-booking.unsaved-changes': string;
65
+ 'pisell2.ticket-booking.exit-confirm': string;
66
+ 'pisell2.ticket-booking.go-back': string;
67
+ 'pisell2.ticket-booking.exit': string;
68
+ 'pisell2.ticket-booking.deposit': string;
69
+ 'pisell2.ticket-booking.copy-success': string;
70
+ 'pisell2.ticket-booking.no-data': string;
71
+ 'pisell2.ticket-booking.authorized': string;
72
+ 'pisell2.ticket-booking.paid': string;
73
+ 'pisell2.ticket-booking.partially-paid': string;
74
+ 'pisell2.ticket-booking.partially-refunded': string;
75
+ 'pisell2.ticket-booking.payment-pending': string;
76
+ 'pisell2.ticket-booking.refunded': string;
77
+ 'pisell2.ticket-booking.unpaid': string;
78
+ 'pisell2.ticket-booking.voided': string;
79
+ 'pisell2.ticket-booking.pending': string;
80
+ 'pisell2.ticket-booking.all': string;
81
+ 'pisell2.ticket-booking.not-started': string;
82
+ 'pisell2.ticket-booking.started': string;
83
+ 'pisell2.ticket-booking.finished': string;
84
+ 'pisell2.ticket-booking.canceled': string;
85
+ 'pisell2.ticket-booking.inform': string;
86
+ 'pisell2.ticket-booking.check-management': string;
87
+ 'pisell2.ticket-booking.confirm': string;
88
+ 'pisell2.ticket-booking.dashboard': string;
89
+ 'pisell2.ticket-booking.booking-list': string;
90
+ 'pisell2.ticket-booking.full-data': string;
91
+ 'pisell2.ticket-booking.today': string;
92
+ 'pisell2.ticket-booking.now': string;
93
+ 'pisell2.ticket-booking.start-time': string;
94
+ 'pisell2.ticket-booking.create-time': string;
95
+ 'pisell2.ticket-booking.customer': string;
96
+ 'pisell2.ticket-booking.total': string;
97
+ 'pisell2.ticket-booking.search': string;
98
+ 'pisell2.ticket-booking.refresh-success': string;
99
+ 'pisell2.ticket-booking.loading': string;
100
+ 'pisell2.ticket-booking.appointment-not-found': string;
101
+ 'pisell2.ticket-booking.scan': string;
102
+ 'pisell2.ticket-booking.create-new': string;
103
+ 'pisell2.ticket-booking.add-to-cart': string;
104
+ 'pisell2.ticket-booking.not-available-title': string;
105
+ 'pisell2.ticket-booking.not-available-ok': string;
106
+ 'pisell2.product.card.cart-items': (number: number) => string;
107
+ 'pisell2.product.card.subtotal': string;
108
+ 'pisell2.ticket-booking.in-cart': (number: number) => string;
109
+ 'pisell2.product.card.hour.minute': (hour: number, minute: number) => string;
110
+ 'pisell2.product.card.day': (val: number) => string;
111
+ 'pisell2.product.card.day.event': (val: number) => string;
112
+ 'pisell2.product.card.minute': (val: number) => string;
113
+ };
114
+ 'zh-HK': {
115
+ 'pisell2.ticket-booking.info': string;
116
+ 'pisell2.ticket-booking.notes': string;
117
+ 'pisell2.ticket-booking.forms': string;
118
+ 'pisell2.ticket-booking.sales': string;
119
+ 'pisell2.ticket-booking.payment': string;
120
+ 'pisell2.ticket-booking.unsaved-changes': string;
121
+ 'pisell2.ticket-booking.exit-confirm': string;
122
+ 'pisell2.ticket-booking.go-back': string;
123
+ 'pisell2.ticket-booking.exit': string;
124
+ 'pisell2.ticket-booking.deposit': string;
125
+ 'pisell2.ticket-booking.copy-success': string;
126
+ 'pisell2.ticket-booking.no-data': string;
127
+ 'pisell2.ticket-booking.authorized': string;
128
+ 'pisell2.ticket-booking.paid': string;
129
+ 'pisell2.ticket-booking.partially-paid': string;
130
+ 'pisell2.ticket-booking.partially-refunded': string;
131
+ 'pisell2.ticket-booking.payment-pending': string;
132
+ 'pisell2.ticket-booking.refunded': string;
133
+ 'pisell2.ticket-booking.unpaid': string;
134
+ 'pisell2.ticket-booking.voided': string;
135
+ 'pisell2.ticket-booking.pending': string;
136
+ 'pisell2.ticket-booking.all': string;
137
+ 'pisell2.ticket-booking.not-started': string;
138
+ 'pisell2.ticket-booking.started': string;
139
+ 'pisell2.ticket-booking.finished': string;
140
+ 'pisell2.ticket-booking.canceled': string;
141
+ 'pisell2.ticket-booking.inform': string;
142
+ 'pisell2.ticket-booking.check-management': string;
143
+ 'pisell2.ticket-booking.confirm': string;
144
+ 'pisell2.ticket-booking.dashboard': string;
145
+ 'pisell2.ticket-booking.booking-list': string;
146
+ 'pisell2.ticket-booking.full-data': string;
147
+ 'pisell2.ticket-booking.today': string;
148
+ 'pisell2.ticket-booking.now': string;
149
+ 'pisell2.ticket-booking.start-time': string;
150
+ 'pisell2.ticket-booking.create-time': string;
151
+ 'pisell2.ticket-booking.customer': string;
152
+ 'pisell2.ticket-booking.total': string;
153
+ 'pisell2.ticket-booking.search': string;
154
+ 'pisell2.ticket-booking.refresh-success': string;
155
+ 'pisell2.ticket-booking.loading': string;
156
+ 'pisell2.ticket-booking.appointment-not-found': string;
157
+ 'pisell2.ticket-booking.scan': string;
158
+ 'pisell2.ticket-booking.create-new': string;
159
+ 'pisell2.ticket-booking.add-to-cart': string;
160
+ 'pisell2.ticket-booking.not-available-title': string;
161
+ 'pisell2.ticket-booking.not-available-ok': string;
162
+ 'pisell2.ticket-booking.in-cart': (number: number) => string;
163
+ 'pisell2.product.card.cart-items': (number: number) => string;
164
+ 'pisell2.product.card.subtotal': string;
165
+ 'pisell2.product.card.hour.minute': (hour: number, minute: number) => string;
166
+ 'pisell2.product.card.day': (val: number) => string;
167
+ 'pisell2.product.card.day.event': (val: number) => string;
168
+ 'pisell2.product.card.minute': (val: number) => string;
169
+ };
170
+ };
171
+ export default _default;
@@ -18,6 +18,6 @@ declare let modal: Omit<ModalStaticFunctions, 'warn'>;
18
18
  export declare const setModal: (m: Omit<ModalStaticFunctions, 'warn'>) => void;
19
19
  export declare const saveConfirm: () => Promise<{
20
20
  destroy: () => void;
21
- update: (configUpdate: import("antd/es/modal/interface").ModalFuncProps | ((prevConfig: import("antd/es/modal/interface").ModalFuncProps) => import("antd/es/modal/interface").ModalFuncProps)) => void;
21
+ update: (configUpdate: import("antd").ModalFuncProps | ((prevConfig: import("antd").ModalFuncProps) => import("antd").ModalFuncProps)) => void;
22
22
  }>;
23
23
  export { modal };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pisell/private-materials",
3
- "version": "6.2.7",
3
+ "version": "6.2.9",
4
4
  "main": "./lib/index.js",
5
5
  "module": "./es/index.js",
6
6
  "types": "./lib/index.d.ts",
@@ -60,9 +60,9 @@
60
60
  "rc-virtual-list": "^3.11.3",
61
61
  "decimal.js": "^10.4.3",
62
62
  "@pisell/utils": "3.0.0",
63
- "@pisell/materials": "3.3.37",
64
- "@pisell/date-picker": "3.0.4",
65
- "@pisell/icon": "0.0.11"
63
+ "@pisell/icon": "0.0.11",
64
+ "@pisell/materials": "3.3.39",
65
+ "@pisell/date-picker": "3.0.4"
66
66
  },
67
67
  "peerDependencies": {
68
68
  "react": "^18.0.0",