evolution(helpscout.webhooks): mise en place des rappel web afin de notifier l'equipe tech des bug identifies par le support
Co-authored-by: Colin Darie <colin@darie.eu>
This commit is contained in:
parent
6d68c581af
commit
a1dbc40f57
6 changed files with 373 additions and 6 deletions
310
spec/fixtures/files/helpscout/tagged-dev.json
vendored
Normal file
310
spec/fixtures/files/helpscout/tagged-dev.json
vendored
Normal file
|
@ -0,0 +1,310 @@
|
|||
{
|
||||
"id":123456789,
|
||||
"number":123456789,
|
||||
"threads":123456789,
|
||||
"type":"email",
|
||||
"folderId":123456789,
|
||||
"status":"active",
|
||||
"state":"published",
|
||||
"subject":"Fusionner plusieurs comptes existants",
|
||||
"preview":"Bonjour, Je voudrais faire une demande de changement d'adresse et la plateforme m'indique que j'ai plusieurs comptes et que je dois d'abord les fusionner. Cela fait 3 jours que j'essaie de fusio",
|
||||
"mailboxId":123456789,
|
||||
"createdBy":{
|
||||
"id":123456789,
|
||||
"type":"customer",
|
||||
"first":"",
|
||||
"last":"",
|
||||
"photoUrl":"https://photo.png",
|
||||
"email":"anonymous.fr"
|
||||
},
|
||||
"createdAt":"2022-11-03T10:05:59Z",
|
||||
"closedBy":123456789,
|
||||
"closedByUser":{
|
||||
"id":123456789,
|
||||
"type":"user",
|
||||
"first":"unknown",
|
||||
"last":"unknown",
|
||||
"email":"unknown"
|
||||
},
|
||||
"userUpdatedAt":"2022-11-03T10:05:59Z",
|
||||
"customerWaitingSince":{
|
||||
"time":"2022-11-03T10:05:59Z",
|
||||
"friendly":"11 min ago"
|
||||
},
|
||||
"source":{
|
||||
"type":"api",
|
||||
"via":"customer"
|
||||
},
|
||||
"tags":[
|
||||
{
|
||||
"id":123456789,
|
||||
"color":"#A5B2BD",
|
||||
"tag":"contact form"
|
||||
},
|
||||
{
|
||||
"id":123456789,
|
||||
"color":"#A5B2BD",
|
||||
"tag":"dev"
|
||||
},
|
||||
{
|
||||
"id":123456789,
|
||||
"color":"#A5B2BD",
|
||||
"tag":"other"
|
||||
}
|
||||
],
|
||||
"cc":[
|
||||
|
||||
],
|
||||
"bcc":[
|
||||
|
||||
],
|
||||
"primaryCustomer":{
|
||||
"id":"lol",
|
||||
"type":"customer",
|
||||
"first":"",
|
||||
"last":"",
|
||||
"photoUrl":"https://photo.png",
|
||||
"email":"anonymous@anon.fr"
|
||||
},
|
||||
"customFields":[
|
||||
|
||||
],
|
||||
"_embedded":{
|
||||
"threads":[
|
||||
{
|
||||
"id":123456789,
|
||||
"type":"customer",
|
||||
"status":"active",
|
||||
"state":"published",
|
||||
"action":{
|
||||
"type":"default",
|
||||
"associatedEntities":[
|
||||
|
||||
]
|
||||
},
|
||||
"body":"Bonjour,\n\u003cbr\u003e\n\u003cbr\u003eJe voudrais faire une demande de changement d'adresse et la plateforme m'indique que j'ai plusieurs comptes et que je dois d'abord les fusionner.\n\u003cbr\u003e\n\u003cbr\u003eCela fait 3 jours que j'essaie de fusionner les soit disant comptes sans succès.\n\u003cbr\u003e\n\u003cbr\u003eMerci m'apporter votre aide.\n\u003cbr\u003e\n\u003cbr\u003eCordialement,",
|
||||
"source":{
|
||||
"type":"api",
|
||||
"via":"customer"
|
||||
},
|
||||
"customer":{
|
||||
"id":123456789,
|
||||
"first":"",
|
||||
"last":"",
|
||||
"photoUrl":"https://photo.png",
|
||||
"email":"anonymous@anon.fr"
|
||||
},
|
||||
"createdBy":{
|
||||
"id":123456789,
|
||||
"type":"customer",
|
||||
"first":"",
|
||||
"last":"",
|
||||
"photoUrl":"https://photo.png",
|
||||
"email":"anonymous@anon.fr"
|
||||
},
|
||||
"to":[
|
||||
|
||||
],
|
||||
"cc":[
|
||||
|
||||
],
|
||||
"bcc":[
|
||||
|
||||
],
|
||||
"createdAt":"2022-11-03T10:05:59Z",
|
||||
"_embedded":{
|
||||
"attachments":[
|
||||
|
||||
]
|
||||
},
|
||||
"_links":{
|
||||
"createdByCustomer":{
|
||||
"href":"https://api.helpscout.net/v2/customers/576939812"
|
||||
},
|
||||
"customer":{
|
||||
"href":"https://api.helpscout.net/v2/customers/576939812"
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"_links":{
|
||||
"self":{
|
||||
"href":"https://api.helpscout.net/v2/conversations/2056713321"
|
||||
},
|
||||
"mailbox":{
|
||||
"href":"https://api.helpscout.net/v2/mailboxes/125926"
|
||||
},
|
||||
"primaryCustomer":{
|
||||
"href":"https://api.helpscout.net/v2/customers/576939812"
|
||||
},
|
||||
"createdByCustomer":{
|
||||
"href":"https://api.helpscout.net/v2/customers/576939812"
|
||||
},
|
||||
"closedBy":{
|
||||
"href":"https://api.helpscout.net/v2/users/0"
|
||||
},
|
||||
"threads":{
|
||||
"href":"https://api.helpscout.net/v2/conversations/2056713321/threads/"
|
||||
},
|
||||
"web":{
|
||||
"href":"https://secure.helpscout.net/conversation/2056713321/1995582"
|
||||
}
|
||||
},
|
||||
"controller":"webhook",
|
||||
"action":"helpscout_support_dev",
|
||||
"webhook":{
|
||||
"id":123456789,
|
||||
"number":123456789,
|
||||
"threads":123456789,
|
||||
"type":"email",
|
||||
"folderId":123456789,
|
||||
"status":"active",
|
||||
"state":"published",
|
||||
"subject":"Fusionner plusieurs comptes existants",
|
||||
"preview":"Bonjour, Je voudrais faire une demande de changement d'adresse et la plateforme m'indique que j'ai plusieurs comptes et que je dois d'abord les fusionner. Cela fait 3 jours que j'essaie de fusio",
|
||||
"mailboxId":123456789,
|
||||
"createdBy":{
|
||||
"id":123456789,
|
||||
"type":"customer",
|
||||
"first":"",
|
||||
"last":"",
|
||||
"photoUrl":"https://photo.png",
|
||||
"email":"anonymous@anon.fr"
|
||||
},
|
||||
"createdAt":"2022-11-03T10:05:59Z",
|
||||
"closedBy":123456789,
|
||||
"closedByUser":{
|
||||
"id":123456789,
|
||||
"type":"user",
|
||||
"first":"unknown",
|
||||
"last":"unknown",
|
||||
"email":"unknown"
|
||||
},
|
||||
"userUpdatedAt":"2022-11-03T10:05:59Z",
|
||||
"customerWaitingSince":{
|
||||
"time":"2022-11-03T10:05:59Z",
|
||||
"friendly":"11 min ago"
|
||||
},
|
||||
"source":{
|
||||
"type":"api",
|
||||
"via":"customer"
|
||||
},
|
||||
"tags":[
|
||||
{
|
||||
"id":123456789,
|
||||
"color":"#A5B2BD",
|
||||
"tag":"contact form"
|
||||
},
|
||||
{
|
||||
"id":123456789,
|
||||
"color":"#A5B2BD",
|
||||
"tag":"dev"
|
||||
},
|
||||
{
|
||||
"id":123456789,
|
||||
"color":"#A5B2BD",
|
||||
"tag":"other"
|
||||
}
|
||||
],
|
||||
"cc":[
|
||||
|
||||
],
|
||||
"bcc":[
|
||||
|
||||
],
|
||||
"primaryCustomer":{
|
||||
"id":123456789,
|
||||
"type":"customer",
|
||||
"first":"",
|
||||
"last":"",
|
||||
"photoUrl":"https://photo.png",
|
||||
"email":"anonymous@anon.fr"
|
||||
},
|
||||
"customFields":[
|
||||
|
||||
],
|
||||
"_embedded":{
|
||||
"threads":[
|
||||
{
|
||||
"id":123456789,
|
||||
"type":"customer",
|
||||
"status":"active",
|
||||
"state":"published",
|
||||
"action":{
|
||||
"type":"default",
|
||||
"associatedEntities":[
|
||||
|
||||
]
|
||||
},
|
||||
"body":"Bonjour,\n\u003cbr\u003e\n\u003cbr\u003eJe voudrais faire une demande de changement d'adresse et la plateforme m'indique que j'ai plusieurs comptes et que je dois d'abord les fusionner.\n\u003cbr\u003e\n\u003cbr\u003eCela fait 3 jours que j'essaie de fusionner les soit disant comptes sans succès.\n\u003cbr\u003e\n\u003cbr\u003eMerci m'apporter votre aide.\n\u003cbr\u003e\n\u003cbr\u003eCordialement,",
|
||||
"source":{
|
||||
"type":"api",
|
||||
"via":"customer"
|
||||
},
|
||||
"customer":{
|
||||
"id":123456789,
|
||||
"first":"",
|
||||
"last":"",
|
||||
"photoUrl":"https://photo.png",
|
||||
"email":"anonymous@anon.fr"
|
||||
},
|
||||
"createdBy":{
|
||||
"id":123456789,
|
||||
"type":"customer",
|
||||
"first":"",
|
||||
"last":"",
|
||||
"photoUrl":"https://photo.png",
|
||||
"email":"anonymous@anon.fr"
|
||||
},
|
||||
"to":[
|
||||
|
||||
],
|
||||
"cc":[
|
||||
|
||||
],
|
||||
"bcc":[
|
||||
|
||||
],
|
||||
"createdAt":"2022-11-03T10:05:59Z",
|
||||
"_embedded":{
|
||||
"attachments":[
|
||||
|
||||
]
|
||||
},
|
||||
"_links":{
|
||||
"createdByCustomer":{
|
||||
"href":"https://api.helpscout.net/v2/customers/576939812"
|
||||
},
|
||||
"customer":{
|
||||
"href":"https://api.helpscout.net/v2/customers/576939812"
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"_links":{
|
||||
"self":{
|
||||
"href":"https://api.helpscout.net/v2/conversations/xxx"
|
||||
},
|
||||
"mailbox":{
|
||||
"href":"https://api.helpscout.net/v2/mailboxes/xxx"
|
||||
},
|
||||
"primaryCustomer":{
|
||||
"href":"https://api.helpscout.net/v2/customers/xxx"
|
||||
},
|
||||
"createdByCustomer":{
|
||||
"href":"https://api.helpscout.net/v2/customers/xxx"
|
||||
},
|
||||
"closedBy":{
|
||||
"href":"https://api.helpscout.net/v2/users/0"
|
||||
},
|
||||
"threads":{
|
||||
"href":"https://api.helpscout.net/v2/conversations/xxx/threads/"
|
||||
},
|
||||
"web":{
|
||||
"href":"https://secure.helpscout.net/conversation/xxx/xxx"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue