com.payu.notification.client.mapper.NexahMapperImpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ms-notification-client Show documentation
Show all versions of ms-notification-client Show documentation
Module client du micro service notification
The newest version!
package com.payu.notification.client.mapper;
import com.payu.notification.client.model.response.SmsResponse;
import com.payu.notification.client.nexah.response.NexahResponse;
import javax.annotation.processing.Generated;
import org.springframework.stereotype.Component;
@Generated(
value = "org.mapstruct.ap.MappingProcessor",
date = "2024-12-11T17:54:14+0000",
comments = "version: 1.5.5.Final, compiler: javac, environment: Java 17.0.1 (Oracle Corporation)"
)
@Component
public class NexahMapperImpl implements NexahMapper {
@Override
public SmsResponse toSmsResponse(NexahResponse nexahResponse) {
if ( nexahResponse == null ) {
return null;
}
SmsResponse.SmsResponseBuilder smsResponse = SmsResponse.builder();
smsResponse.status( NexahMapper.getStatus( nexahResponse.getResponseMessage() ) );
smsResponse.phoneNumberList( NexahMapper.getPhoneNumberList( nexahResponse.getSms() ) );
smsResponse.debitedCount( NexahMapper.getDebitedCount( nexahResponse.getSms() ) );
return smsResponse.build();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy