NdsBeisEsb/src/main/java/com/northgateps/nds/beis/esb/converter/ToUpdatePrsExemptionNdsRequestConverter.java
/**
     * Convert the passed in updateExemptionDetailsNdsRequest to the passed out UpdatePRSExemptionRequest
     *
     * @param class com.northgateps.nds.beis.api.updateexemptiondetails.UpdateExemptionDetailsNdsRequest
     *
     * @return class  com.northgateps.nds.beis.backoffice.service.updateprsexemption.UpdatePRSExemptionRequest
     *
     * @throws NdsApplicationException
     * @throws DatatypeConfigurationException
     */
Convert the passed in updateExemptionDetailsNdsRequest to the passed out UpdatePRSExemptionRequest
@param class com.northgateps.nds.beis.api.updateexemptiondetails.UpdateExemptionDetailsNdsRequest




Convert the passed in updateExemptionDetailsNdsRequest to the passed out UpdatePRSExemptionRequest @param class com . northgateps . nds . beis . api . updateexemptiondetails . UpdateExemptionDetailsNdsRequest
@Converter
    public static UpdatePRSExemptionRequest converting(
            UpdateExemptionDetailsNdsRequest updateExemptionDetailsNdsRequest)
            throws NdsApplicationException, DatatypeConfigurationException {
        logger.info("Starting Conversion For RetrievingRegistrationDetails Request");
        UpdatePRSExemptionRequest request = new UpdatePRSExemptionRequest();
        if(updateExemptionDetailsNdsRequest.getUpdateExemptionDetails() !=null){
            request.setExemptionRefNo(
                    StringToBigIntegerConverter.convert(updateExemptionDetailsNdsRequest.getUpdateExemptionDetails().getReferenceId()));        
            request.setEndDate(
                    ZonedDateTimeToXMLGregorianCalendarConverter.convert(updateExemptionDetailsNdsRequest.getUpdateExemptionDetails().getEndDate()));
        }       
        request.setPartyRef(new BigInteger(updateExemptionDetailsNdsRequest.getAccountId()));        
        logger.info("Finished Conversion For RetrievingRegistrationDetails Request");
        return request;
    }
@ Converter public static UpdatePRSExemptionRequest converting ( UpdateExemptionDetailsNdsRequest updateExemptionDetailsNdsRequest ) throws NdsApplicationException , DatatypeConfigurationException { logger . info ( "Starting Conversion For RetrievingRegistrationDetails Request" ) ; UpdatePRSExemptionRequest request = new UpdatePRSExemptionRequest ( ) ; if ( updateExemptionDetailsNdsRequest . getUpdateExemptionDetails ( ) != null ) { request . setExemptionRefNo ( StringToBigIntegerConverter . convert ( updateExemptionDetailsNdsRequest . getUpdateExemptionDetails ( ) . getReferenceId ( ) ) ) ; request . setEndDate ( ZonedDateTimeToXMLGregorianCalendarConverter . convert ( updateExemptionDetailsNdsRequest . getUpdateExemptionDetails ( ) . getEndDate ( ) ) ) ; } request . setPartyRef ( new BigInteger ( updateExemptionDetailsNdsRequest . getAccountId ( ) ) ) ; logger . info ( "Finished Conversion For RetrievingRegistrationDetails Request" ) ; return request ; }
Convert the passed in updateExemptionDetailsNdsRequest to the passed out UpdatePRSExemptionRequest
 @param class com.northgateps.nds.beis.api.updateexemptiondetails.UpdateExemptionDetailsNdsRequest
Convert the passed in updateExemptionDetailsNdsRequest to the passed out UpdatePRSExemptionRequest @param class com . northgateps . nds . beis . api . updateexemptiondetails . UpdateExemptionDetailsNdsRequest