Checks if the createdDate is within the insurance free-look time window

  • Parameters

    • createdDate: string | Date

      The date the insurance policy was created

    • Optionalbooking: Partial<
          Pick<
              Required<Omit<BaseBooking, bookingFieldToOmit>>,
              "status" | "internalCancellationReason",
          >,
      >

      to check if the insurance policy should be cancelled based on the status and internal cancellation reason

    Returns boolean