I think you likely were scammed.
Did you provide any potentially damaging information to anyone? If yes, you'll need to follow up, for example, with a credit card company, Apple, your bank, etc.
Also see If you see apple.com/bill, itunes.com/bill, or an unfamiliar charge on your statement https://support.apple.com/en-us/HT201382
If you gave you Apple ID password to the scammer, then
Change your Apple ID password https://support.apple.com/en-us/HT201355
Here is what to do [before] or after you change your Apple ID or password
https://support.apple.com/en-us/HT204071
For scam related information from Apple including reporting scans to Apple see Avoid phishing emails, fake 'virus' alerts, phony support calls, and other scams https://support.apple.com/en-us/HT204759