The Donald J. Trump Foundation must stop fund-raising in New York and turn over all delinquent financial reports in the next two weeks or face possible fraud claims, the state attorney general’s office said in a letter to the presidential candidate’s institute.

The Trump Foundation is violating New York state laws that require charities to register with a state oversight agency and submit yearly audited financial statements, according to the notice from the office of Eric Schneiderman. The foundation solicited contributions in New York earlier this year despite failing to register, Schneiderman’s office said.

The order was announced Monday but issued on Friday.

"While we remain very concerned about the political motives behind AG Schneiderman’s investigation, the Trump Foundation nevertheless intends to cooperate fully with the investigation," Trump spokeswoman Hope Hicks said in a statement. "Because this is an ongoing legal matter, the Trump Foundation will not comment further at this time."

In 2013, Schneiderman sued Trump over the operations of his so-called University, which the attorney general claimed was a fraud that ripped off students with bogus real-estate seminars.

When Schneiderman first began the investigation of the charity last month, Trump’s senior communications adviser Jason Miller said in a statement that Schneiderman was a "partisan hack who has turned a blind eye to the Clinton Foundation for years and has endorsed Hillary Clinton for president." Trump himself has repeatedly attacked Schneiderman in postings on Twitter.

The Republican presidential nominee has also excoriated the family foundation of his Democratic opponent for what he has characterized as a pay-to-play scheme designed to benefit donors and friends of the Clintons.

Get the latest on global politics in your inbox, every day.

Get our newsletter daily.

Trump’s foundation has come under scrutiny amid reports in the Washington Post that Trump used it to purchase two portraits of himself at charity events and that he used donations by the foundation to settle business disputes, both despite his not having given to the foundation for several years. Trump’s foundation also paid a penalty for an improper political donation to Florida Attorney General Pam Bondi.