class ChartOfAccountDetailRepository {

    public void add(ChartOfAccountDetailRequest request) {
        Map<String, Object> message = new HashMap<>();

        if (request.getRequestInfo().getAction().equalsIgnoreCase(Constants.ACTION_CREATE)) {
            message.put("chartofaccountdetail_create", request);
        } else {
            message.put("chartofaccountdetail_update", request);
        }
        chartOfAccountDetailQueueRepository.add(message);
    }

}