{"action":"created","issue":{"url":"https://api.github.com/repos/pedro-teixeira/correios/issues/196","repository_url":"https://api.github.com/repos/pedro-teixeira/correios","labels_url":"https://api.github.com/repos/pedro-teixeira/correios/issues/196/labels{/name}","comments_url":"https://api.github.com/repos/pedro-teixeira/correios/issues/196/comments","events_url":"https://api.github.com/repos/pedro-teixeira/correios/issues/196/events","html_url":"https://github.com/pedro-teixeira/correios/issues/196","id":188363983,"number":196,"title":"Adicionar comentario addStatusToHistory","user":{"login":"meganovidades","id":21689692,"avatar_url":"https://avatars.githubusercontent.com/u/21689692?v=3","gravatar_id":"","url":"https://api.github.com/users/meganovidades","html_url":"https://github.com/meganovidades","followers_url":"https://api.github.com/users/meganovidades/followers","following_url":"https://api.github.com/users/meganovidades/following{/other_user}","gists_url":"https://api.github.com/users/meganovidades/gists{/gist_id}","starred_url":"https://api.github.com/users/meganovidades/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/meganovidades/subscriptions","organizations_url":"https://api.github.com/users/meganovidades/orgs","repos_url":"https://api.github.com/users/meganovidades/repos","events_url":"https://api.github.com/users/meganovidades/events{/privacy}","received_events_url":"https://api.github.com/users/meganovidades/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-11-09T22:02:42Z","updated_at":"2016-11-09T22:07:29Z","closed_at":"2016-11-09T22:07:05Z","body":"Olá, gostaria de adicionar um comentario do envio no pedido adicionando este código na classe \r\n\r\nclass PedroTeixeira_Correios_Model_Observer\r\n\r\nesta ocorrendo erro, como eu deveria adicionar este código?\r\n\r\n$track->getShipment()\r\n                    \t->addStatusToHistory(\r\n\t\t\t\t\t\t\t'enviado',\r\n\t\t\t\t\t\t\t$sro->getComment(),\r\n\t\t\t\t\t\t\tfalse\r\n\t\t\t\t\t\t)->save();\r\n\r\nVeja este comentario será para ficar nos comentarios onde mudam o status do pedido e não nos comentarios do envio do pedido okay. \r\n\r\nObrigado!"},"comment":{"url":"https://api.github.com/repos/pedro-teixeira/correios/issues/comments/259540581","html_url":"https://github.com/pedro-teixeira/correios/issues/196#issuecomment-259540581","issue_url":"https://api.github.com/repos/pedro-teixeira/correios/issues/196","id":259540581,"user":{"login":"meganovidades","id":21689692,"avatar_url":"https://avatars.githubusercontent.com/u/21689692?v=3","gravatar_id":"","url":"https://api.github.com/users/meganovidades","html_url":"https://github.com/meganovidades","followers_url":"https://api.github.com/users/meganovidades/followers","following_url":"https://api.github.com/users/meganovidades/following{/other_user}","gists_url":"https://api.github.com/users/meganovidades/gists{/gist_id}","starred_url":"https://api.github.com/users/meganovidades/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/meganovidades/subscriptions","organizations_url":"https://api.github.com/users/meganovidades/orgs","repos_url":"https://api.github.com/users/meganovidades/repos","events_url":"https://api.github.com/users/meganovidades/events{/privacy}","received_events_url":"https://api.github.com/users/meganovidades/received_events","type":"User","site_admin":false},"created_at":"2016-11-09T22:07:29Z","updated_at":"2016-11-09T22:07:29Z","body":"$track->getShipment()->getOrder()\r\n                        ->addStatusToHistory(\r\n\t\t\t\t\t\t\t'enviado',\r\n\t\t\t\t\t\t\t$sro->getComment(),\r\n\t\t\t\t\t\t\tfalse\r\n\t\t\t\t\t\t)->save();"}}
{"actor":{"display_login":"meganovidades"}}