{"action":"opened","issue":{"url":"https://api.github.com/repos/durango/authorize-net-types/issues/4","labels_url":"https://api.github.com/repos/durango/authorize-net-types/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/durango/authorize-net-types/issues/4/comments","events_url":"https://api.github.com/repos/durango/authorize-net-types/issues/4/events","html_url":"https://github.com/durango/authorize-net-types/issues/4","id":73786983,"number":4,"title":"Required fields not being added to xml output","user":{"login":"yonib05","id":5503597,"avatar_url":"https://avatars.githubusercontent.com/u/5503597?v=3","gravatar_id":"","url":"https://api.github.com/users/yonib05","html_url":"https://github.com/yonib05","followers_url":"https://api.github.com/users/yonib05/followers","following_url":"https://api.github.com/users/yonib05/following{/other_user}","gists_url":"https://api.github.com/users/yonib05/gists{/gist_id}","starred_url":"https://api.github.com/users/yonib05/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yonib05/subscriptions","organizations_url":"https://api.github.com/users/yonib05/orgs","repos_url":"https://api.github.com/users/yonib05/repos","events_url":"https://api.github.com/users/yonib05/events{/privacy}","received_events_url":"https://api.github.com/users/yonib05/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-05-07T00:49:16Z","updated_at":"2015-05-07T00:49:16Z","closed_at":null,"body":"Came accross this issue while creating a lineItems object.\r\nany products with the unitPrice of 0 evaluate to false on line 46 of the index.js file and never be added to the xml and this is required.\r\na better way to evaluate is to use \r\neither \r\n(value == null)\r\nor\r\n(typeof value === 'undefined')\r\nor \r\n(variable === undefined || variable === null)"}}