class AsyncRestCostTotalEndpoint {

    public ServiceResult<Void> sendCostTotals(Long applicationId,
                                              List<FinanceCostTotalResource> financeCostTotalResources) {
        sendCostTotalsCompletable(applicationId, financeCostTotalResources);
        return ServiceResult.serviceSuccess();
    }

    @Autowired public  AsyncRestCostTotalEndpoint(
            @Qualifier("finance_data_service_adaptor") AbstractRestTemplateAdaptor restTemplateAdaptor,
            HashBasedMacTokenHandler hashBasedMacTokenHandler,
            @Value("${ifs.finance-totals.authSecretKey}") String financeTotalsKey
    );

}