Hi guys,
I'm trying to make use of class called "TaxRegulation"
TaxRegulationDetail taxRegulationDetail = TaxRegulation::newTaxRegulation(salesTotals.tax());
TmpTaxRegulation tmpTaxRegulationDetail = taxRegulationDetail.tmpTaxRegulationDetail();
but currently hit error like this :

The error as in the picture is hit on the 1sts line, may I know how to resolve this ?
The intention is to get TaxRegulation data based on sales line.
Thanks,