Skip to content

Commit

Permalink
Resquest Response saving juntos
Browse files Browse the repository at this point in the history
  • Loading branch information
Sonali Shakya authored and Sonali Shakya committed Dec 12, 2024
1 parent d553e84 commit 302822e
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,10 @@ public class Payload {

@Convert(converter = MapToJsonConverter.class)
@Column(columnDefinition = "text")
private Map<String, Object> jsonObject;

private Type type;
private Map<String, Object> jsonRequest;
@Convert(converter = MapToJsonConverter.class)
@Column(columnDefinition = "text")
private Map<String, Object> jsonResponse;
private Integer httpStatus;
private Timestamp createdAt;
private Timestamp updatedAt;
Expand Down Expand Up @@ -123,13 +124,22 @@ public void setAction(Action action) {
this.action = action;
}

@Column(name = "jsonObject")
public Map<String, Object> getJsonObject() {
return jsonObject;
@Column(name = "jsonRequest")
public Map<String, Object> getJsonRequest() {
return jsonRequest;
}

public void setJsonObject(Map<String, Object> jsonObject) {
this.jsonObject = jsonObject;
public void setJsonRequest(Map<String, Object> jsonRequest) {
this.jsonRequest = jsonRequest;
}

@Column(name = "jsonResponse")
public Map<String, Object> getJsonResponse() {
return jsonResponse;
}

public void setJsonResponse(Map<String, Object> jsonResponse) {
this.jsonResponse = jsonResponse;
}

@Column(name = "bpp_id")
Expand All @@ -150,15 +160,6 @@ public void setBapId(String bapId) {
this.bapId = bapId;
}

@Column(name = "type")
public Type getType() {
return type;
}

public void setType(Type type) {
this.type = type;
}

@Column(name = "http_status")
public Integer getHttpStatus() {
return httpStatus;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ public Payload updatePayload(Long id, Payload updatedPayload) {
existingPayload.setAction(updatedPayload.getAction());
existingPayload.setBppId(updatedPayload.getBppId());
existingPayload.setBapId(updatedPayload.getBapId());
existingPayload.setJsonObject(updatedPayload.getJsonObject());
existingPayload.setType(updatedPayload.getType());
existingPayload.setJsonRequest(updatedPayload.getJsonRequest());
existingPayload.setJsonResponse(updatedPayload.getJsonResponse());
existingPayload.setHttpStatus(updatedPayload.getHttpStatus());
return repository.save(existingPayload);
})
Expand Down
Binary file not shown.
Binary file not shown.

0 comments on commit 302822e

Please sign in to comment.