|
| 1 | +package com.easypost.hooks; |
| 2 | + |
| 3 | +import java.util.Map; |
| 4 | + |
| 5 | +import lombok.Getter; |
| 6 | +import lombok.Setter; |
| 7 | + |
| 8 | +@Setter @Getter |
| 9 | +public class ResponseHookResponses { |
| 10 | + private int httpStatus; |
| 11 | + private Map<String, String> headers; |
| 12 | + private String method; |
| 13 | + private String path; |
| 14 | + private String responseBody; |
| 15 | + private String responseTimestamp; |
| 16 | + private String requestTimestamp; |
| 17 | + private String requestUuid; |
| 18 | + |
| 19 | + /** |
| 20 | + * ResponseHookResponses constructor. |
| 21 | + * |
| 22 | + * @param httpStatus The HTTP status code of the response. |
| 23 | + * @param headers The headers of the response. |
| 24 | + * @param method The HTTP method of the request. |
| 25 | + * @param path The path of the request. |
| 26 | + * @param responseBody The response body as a string. |
| 27 | + * @param responseTimestamp The timestamp of the response. |
| 28 | + * @param requestTimestamp The timestamp of the corresponding request. |
| 29 | + * @param requestUuid The UUID of the corresponding request. |
| 30 | + */ |
| 31 | + public ResponseHookResponses(int httpStatus, Map<String, String> headers, String method, String path, |
| 32 | + String responseBody, String responseTimestamp, String requestTimestamp, String requestUuid) { |
| 33 | + this.httpStatus = httpStatus; |
| 34 | + this.headers = headers; |
| 35 | + this.method = method; |
| 36 | + this.path = path; |
| 37 | + this.responseBody = responseBody; |
| 38 | + this.responseTimestamp = responseTimestamp; |
| 39 | + this.requestTimestamp = requestTimestamp; |
| 40 | + this.requestUuid = requestUuid; |
| 41 | + } |
| 42 | +} |
0 commit comments