Resolved Conflicts.
This commit is contained in:
@@ -724,11 +724,11 @@ public class AppointmentDao {
|
|||||||
// Build the appointment request body
|
// Build the appointment request body
|
||||||
AppointmentCreationRequest appointmentCreationRequest = buildAppointmentCreationRequest(applicationId, createAppointmentRequest, appointmentTemplateId,
|
AppointmentCreationRequest appointmentCreationRequest = buildAppointmentCreationRequest(applicationId, createAppointmentRequest, appointmentTemplateId,
|
||||||
templateRichiestaData);
|
templateRichiestaData);
|
||||||
log.info("AppointmentCreationRequest {}", appointmentCreationRequest);
|
log.info("AppointmentCreationRequest : {}", appointmentCreationRequest);
|
||||||
String appointmentRequestBody = Utils.convertObjectToJson(appointmentCreationRequest);
|
String appointmentRequestBody = Utils.convertObjectToJson(appointmentCreationRequest);
|
||||||
|
|
||||||
// Make API call to create the appointment
|
// Make API call to create the appointment
|
||||||
log.info("Context:{}, Authorization Token {}, RequestBody {}", context, authorizationToken, appointmentRequestBody);
|
log.info("Context:{}, Authorization Token : {}, RequestBody : {}", context, authorizationToken, appointmentRequestBody);
|
||||||
ResponseEntity<Object> appointmentResponse = appointmentApiService.createAppointment(authorizationToken, context, appointmentRequestBody);
|
ResponseEntity<Object> appointmentResponse = appointmentApiService.createAppointment(authorizationToken, context, appointmentRequestBody);
|
||||||
String appointmentId = extractAppointmentIdFromResponse(appointmentResponse);
|
String appointmentId = extractAppointmentIdFromResponse(appointmentResponse);
|
||||||
|
|
||||||
@@ -757,7 +757,7 @@ public class AppointmentDao {
|
|||||||
private String extractAppointmentIdFromResponse(ResponseEntity<Object> appointmentResponse) {
|
private String extractAppointmentIdFromResponse(ResponseEntity<Object> appointmentResponse) {
|
||||||
|
|
||||||
if (appointmentResponse.getBody() != null) {
|
if (appointmentResponse.getBody() != null) {
|
||||||
log.info("Appointment API Response {}", appointmentResponse.getBody());
|
log.info("Appointment API Response : {}", appointmentResponse.getBody());
|
||||||
Map<String, Object> responseBody = (Map<String, Object>) appointmentResponse.getBody();
|
Map<String, Object> responseBody = (Map<String, Object>) appointmentResponse.getBody();
|
||||||
if (responseBody.containsKey(GepafinConstant.DATA_STRING)) {
|
if (responseBody.containsKey(GepafinConstant.DATA_STRING)) {
|
||||||
Map<String, Object> data = (Map<String, Object>) responseBody.get(GepafinConstant.DATA_STRING);
|
Map<String, Object> data = (Map<String, Object>) responseBody.get(GepafinConstant.DATA_STRING);
|
||||||
|
|||||||
Reference in New Issue
Block a user