Skip to content

Commit

Permalink
webhooks api
Browse files Browse the repository at this point in the history
  • Loading branch information
yevheniyJ committed Nov 24, 2023
1 parent f4aeb90 commit de5dfe7
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import lombok.Data;

import java.util.List;
import java.util.Map;

@Data
public class AddWebhookRequest {
Expand All @@ -14,6 +15,6 @@ public class AddWebhookRequest {
private Boolean isActive;
private Boolean batchingEnabled;
private ContentType contentType;
private Object headers;
private Map<String, String> headers;
private Object payload;
}
5 changes: 3 additions & 2 deletions src/main/java/com/crowdin/client/webhooks/model/Webhook.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

import java.util.Date;
import java.util.List;
import java.util.Map;

@Data
public class Webhook {
Expand All @@ -13,8 +14,8 @@ public class Webhook {
private String name;
private String url;
private List<Event> events;
private List<String> headers;
private List<String> payload;
private Map<String, String> headers;
private Object payload;
private Boolean isActive;
private Boolean batchingEnabled;
private RequestType requestType;
Expand Down
6 changes: 3 additions & 3 deletions src/test/resources/api/webhooks/listWebhooks.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
"events": [
"file.approved"
],
"headers": [
"string"
],
"headers": {
"string": "string"
},
"payload": [
"string"
],
Expand Down
6 changes: 3 additions & 3 deletions src/test/resources/api/webhooks/webhook.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
"events": [
"file.approved"
],
"headers": [
"string"
],
"headers": {
"string": "string"
},
"payload": [
"string"
],
Expand Down

0 comments on commit de5dfe7

Please sign in to comment.