/// <summary> /// Withholding Report /// </summary> /// <remarks> /// Generates a withholding report, containing a breakdown of the amounts withheld per month for a given date range /// </remarks> public Task <List <SgWithholdingModel> > WithholdingReportAsync(int businessId, WithholdingReportQueryModel request, CancellationToken cancellationToken = default) { return(ApiRequestAsync <List <SgWithholdingModel> >($"/business/{businessId}/report/withholding?fromDate={request.FromDate.ToString("yyyy-MM-ddTHH:mm:ss")}&toDate={request.ToDate.ToString("yyyy-MM-ddTHH:mm:ss")}&locationId={request.LocationId}&employingEntityId={request.EmployingEntityId}", Method.GET, cancellationToken)); }
/// <summary> /// Withholding Report /// </summary> /// <remarks> /// Generates a withholding report, containing a breakdown of the amounts withheld per month for a given date range /// </remarks> public List <SgWithholdingModel> WithholdingReport(int businessId, WithholdingReportQueryModel request) { return(ApiRequest <List <SgWithholdingModel> >($"/business/{businessId}/report/withholding?fromDate={request.FromDate.ToString("yyyy-MM-ddTHH:mm:ss")}&toDate={request.ToDate.ToString("yyyy-MM-ddTHH:mm:ss")}&locationId={request.LocationId}&employingEntityId={request.EmployingEntityId}", Method.GET)); }