@timardex/cluemart-shared 1.4.25 → 1.4.27

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.
@@ -620,6 +620,11 @@ var eventInfoSchema = yup2.object().shape({
620
620
  }
621
621
  ),
622
622
  paymentInfo: yup2.array().of(paymentInfoSchema).min(1, "At least one payment method is required").required("Payment info is required")
623
+ /* refundPolicy: yup
624
+ .array()
625
+ .of(yup.string().trim().required("Refund policy item cannot be empty"))
626
+ .min(1, "At least one refund policy item is required")
627
+ .required("Refund policy is required"), */
623
628
  });
624
629
 
625
630
  // src/yupSchema/vendor.ts
@@ -1087,6 +1092,7 @@ var defaultEventInfoFormValues = {
1087
1092
  // e.g., 2 hours before event opens
1088
1093
  paymentDueHours: 12,
1089
1094
  paymentInfo: [],
1095
+ //refundPolicy: [],
1090
1096
  requirements: []
1091
1097
  };
1092
1098
  var defaultVendorFormValues = {
@@ -1435,6 +1441,7 @@ function useEventInfoForm(data) {
1435
1441
  packInTime: data.packInTime,
1436
1442
  paymentDueHours: data.paymentDueHours,
1437
1443
  paymentInfo: data.paymentInfo,
1444
+ //refundPolicy: data.refundPolicy,
1438
1445
  requirements: data.requirements
1439
1446
  });
1440
1447
  } else {
@@ -1449,6 +1456,7 @@ function useEventInfoForm(data) {
1449
1456
  packInTime,
1450
1457
  paymentDueHours,
1451
1458
  paymentInfo,
1459
+ //refundPolicy,
1452
1460
  requirements
1453
1461
  } = getValues();
1454
1462
  return {
@@ -1461,6 +1469,7 @@ function useEventInfoForm(data) {
1461
1469
  packInTime,
1462
1470
  paymentDueHours,
1463
1471
  paymentInfo,
1472
+ //refundPolicy,
1464
1473
  requirements
1465
1474
  },
1466
1475
  formState,