{"action":"opened","issue":{"url":"https://api.github.com/repos/Antidot-be/bpost-api-library/issues/3","repository_url":"https://api.github.com/repos/Antidot-be/bpost-api-library","labels_url":"https://api.github.com/repos/Antidot-be/bpost-api-library/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/Antidot-be/bpost-api-library/issues/3/comments","events_url":"https://api.github.com/repos/Antidot-be/bpost-api-library/issues/3/events","html_url":"https://github.com/Antidot-be/bpost-api-library/issues/3","id":183020595,"number":3,"title":"Insurance doesn't fully work?","user":{"login":"Lambik","id":467373,"avatar_url":"https://avatars.githubusercontent.com/u/467373?v=3","gravatar_id":"","url":"https://api.github.com/users/Lambik","html_url":"https://github.com/Lambik","followers_url":"https://api.github.com/users/Lambik/followers","following_url":"https://api.github.com/users/Lambik/following{/other_user}","gists_url":"https://api.github.com/users/Lambik/gists{/gist_id}","starred_url":"https://api.github.com/users/Lambik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Lambik/subscriptions","organizations_url":"https://api.github.com/users/Lambik/orgs","repos_url":"https://api.github.com/users/Lambik/repos","events_url":"https://api.github.com/users/Lambik/events{/privacy}","received_events_url":"https://api.github.com/users/Lambik/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-10-14T10:50:19Z","updated_at":"2016-10-14T10:50:19Z","closed_at":null,"body":"Hi,\r\n\r\nI've created a package that is insured, and it's been sent off correctly to bpost.\r\n\r\nWhen I now poll the bpost api (using bpost->fetchOrder), it claims the box has the option \"insured\".\r\nHowever, this fails (Bpost\\Order\\Box\\National.php:241):\r\n\r\n                    $className = '\\\\Bpost\\\\BpostApiClient\\\\Bpost\\\\Order\\\\Box\\\\Option\\\\' . ucfirst($optionData->getName());\r\n                    if (!method_exists($className, 'createFromXML')) {\r\n                        throw new BpostXmlInvalidItemException();\r\n                    }\r\n\r\nThis throws the exception that $optionData->getName() returns 'insured', and there is no such class. I do see a class called 'Insurance'. Should this one be renamed?"}}
{"actor":{"display_login":"Lambik"}}