In the enforcement of this chapter, the prosecuting attorney may accept an assurance of discontinuance of any act or practice deemed in violation of this chapter from any person engaging in, or who has engaged in such act or practice. Any such assurance shall be in writing and be filed with and subject to the approval of the superior court of the county in which the alleged violation occurs. A violation of such assurance shall constitute prima facie proof of a violation of this chapter.