package org.example.ycs.responder;

import lombok.extern.log4j.Log4j2;
import org.jpos.iso.ISOException;
import org.jpos.iso.ISOMsg;

@Log4j2
public class BaseAuthResponder {

    public ISOMsg baseResponse(ISOMsg request) {
        ISOMsg response = (ISOMsg) request.clone();
        try {
            response.setResponseMTI();
        } catch (ISOException e) {
            log.info(e.getMessage());
        }
        response.unset(52);
        response.unset(53);
        response.unset(55);
        response.unset(35);
        response.unset(2);
        response.unset(14);
        response.unset(22);
        response.unset(23);
        response.unset(25);
        response.unset(42);
        response.unset(62);

        return response;
    }
}
