spec/support/fixtures/webhooks.json in onfido-0.15.1 vs spec/support/fixtures/webhooks.json in onfido-1.0.0
- old
+ new
@@ -1,26 +1,31 @@
{
"webhooks": [
{
"id": "dd0a89e4-d44e-417a-aec4-01137d01ae59",
- "url": "https://demo.com","enabled":false,
- "href": "/v2/webhooks/dd0a89e4-d44e-417a-aec4-01137d01ae59",
- "events":
- [
- "check in progress"
+ "url": "https://demo.com",
+ "enabled":false,
+ "href": "/v3/webhooks/dd0a89e4-d44e-417a-aec4-01137d01ae59",
+ "environments": [
+ "live"
+ ],
+ "events": [
+ "report.completed",
+ "report.withdrawn",
+ "check.completed"
]
},
{
"id": "bfc727a8-f7bf-4073-b123-ed70a70f58e5",
"url": "https://demo2.com",
"enabled": true,
- "href": "/v2/webhooks/bfc727a8-f7bf-4073-b123-ed70a70f58e5",
- "events":
- [
- "report completion",
- "report withdrawal",
- "check in progress",
- "check completion"
+ "href": "/v3/webhooks/bfc727a8-f7bf-4073-b123-ed70a70f58e5",
+ "environments": [
+ "live"
+ ],
+ "events": [
+ "report.completed",
+ "check.completed"
]
}
]
}