{"action":"closed","number":2,"pull_request":{"url":"https://api.github.com/repos/jkeam/recurly-java-library/pulls/2","id":49483983,"html_url":"https://github.com/jkeam/recurly-java-library/pull/2","diff_url":"https://github.com/jkeam/recurly-java-library/pull/2.diff","patch_url":"https://github.com/jkeam/recurly-java-library/pull/2.patch","issue_url":"https://api.github.com/repos/jkeam/recurly-java-library/issues/2","number":2,"state":"closed","locked":false,"title":"using Jackson 2.5 and up causes issues when interacting with reculry","user":{"login":"mzouitni","id":4752249,"avatar_url":"https://avatars.githubusercontent.com/u/4752249?v=3","gravatar_id":"","url":"https://api.github.com/users/mzouitni","html_url":"https://github.com/mzouitni","followers_url":"https://api.github.com/users/mzouitni/followers","following_url":"https://api.github.com/users/mzouitni/following{/other_user}","gists_url":"https://api.github.com/users/mzouitni/gists{/gist_id}","starred_url":"https://api.github.com/users/mzouitni/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mzouitni/subscriptions","organizations_url":"https://api.github.com/users/mzouitni/orgs","repos_url":"https://api.github.com/users/mzouitni/repos","events_url":"https://api.github.com/users/mzouitni/events{/privacy}","received_events_url":"https://api.github.com/users/mzouitni/received_events","type":"User","site_admin":false},"body":"Upgrading to Jackson 2.5 or higher causes recurly api calls to stop working. An example of a failed create subscription call:\r\n```\r\n<?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n<error>\r\n  <symbol>invalid_xml</symbol>\r\n  <description>The provided XML was invalid.</description>\r\n  <details>Unacceptable tag &lt;state&gt;</details>\r\n</error>\r\n```\r\nThis is the actual xml generated by recurly java library:\r\n```\r\n<subscription><unit_amount_in_cents/><quantity/><plan_code>full</plan_code><account><address/><account_code>xxxxxxxxxx</account_code><state/><username/><email/><first_name/><last_name/><company_name/><accept_language/><hosted_login_token/><created_at/><billing_info><account/><first_name/><last_name/><company/><address1/><address2/><city/><state/><zip/><country/><phone/><vat_number/><ip_address/><ip_address_country/><card_type/><year/><month/><first_six/><last_four/><number/><verification_value/><token_id>xyyxyxxyxyxy</token_id></billing_info></account><invoice/><plan/><uuid/><state/><currency>USD</currency><activated_at/><canceled_at/><expires_at/><current_period_started_at/><current_period_ends_at/><trial_started_at/><trial_ends_at/><pending_subscription/><starts_at/><collection_method/><net_terms/><coupon_code/><po_number/><terms_and_conditions/><customer_notes/><first_renewal_date/><bulk/></subscription>\r\n```\r\n\r\nPrior to the upgrade the actual xml doesn't include empty or null values like the example below:\r\n```\r\n<subscription><plan_code>plan</plan_code><account><account_code>xxxxxxxxxx</account_code><billing_info><token_id>xyyxyxxyxyxy</token_id></billing_info></account><currency>USD</currency></subscription>\r\n```\r\nAdding the below line to the RecurlyObject.java in newXmlMapper() method, fixes the problem.\r\n```\r\nxmlMapper.setSerializationInclusion(JsonInclude.Include.NON_EMPTY); \r\n```\r\n","created_at":"2015-11-02T20:53:06Z","updated_at":"2015-11-02T20:54:04Z","closed_at":"2015-11-02T20:54:04Z","merged_at":null,"merge_commit_sha":"192f7c430ca558f0030221ed1ff0b708904d1bc3","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/jkeam/recurly-java-library/pulls/2/commits","review_comments_url":"https://api.github.com/repos/jkeam/recurly-java-library/pulls/2/comments","review_comment_url":"https://api.github.com/repos/jkeam/recurly-java-library/pulls/comments{/number}","comments_url":"https://api.github.com/repos/jkeam/recurly-java-library/issues/2/comments","statuses_url":"https://api.github.com/repos/jkeam/recurly-java-library/statuses/e665067e7b203bf1581cdb76e026670df83688f3","head":{"label":"mzouitni:master","ref":"master","sha":"e665067e7b203bf1581cdb76e026670df83688f3","user":{"login":"mzouitni","id":4752249,"avatar_url":"https://avatars.githubusercontent.com/u/4752249?v=3","gravatar_id":"","url":"https://api.github.com/users/mzouitni","html_url":"https://github.com/mzouitni","followers_url":"https://api.github.com/users/mzouitni/followers","following_url":"https://api.github.com/users/mzouitni/following{/other_user}","gists_url":"https://api.github.com/users/mzouitni/gists{/gist_id}","starred_url":"https://api.github.com/users/mzouitni/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mzouitni/subscriptions","organizations_url":"https://api.github.com/users/mzouitni/orgs","repos_url":"https://api.github.com/users/mzouitni/repos","events_url":"https://api.github.com/users/mzouitni/events{/privacy}","received_events_url":"https://api.github.com/users/mzouitni/received_events","type":"User","site_admin":false},"repo":{"id":45419891,"name":"recurly-java-library","full_name":"mzouitni/recurly-java-library","owner":{"login":"mzouitni","id":4752249,"avatar_url":"https://avatars.githubusercontent.com/u/4752249?v=3","gravatar_id":"","url":"https://api.github.com/users/mzouitni","html_url":"https://github.com/mzouitni","followers_url":"https://api.github.com/users/mzouitni/followers","following_url":"https://api.github.com/users/mzouitni/following{/other_user}","gists_url":"https://api.github.com/users/mzouitni/gists{/gist_id}","starred_url":"https://api.github.com/users/mzouitni/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mzouitni/subscriptions","organizations_url":"https://api.github.com/users/mzouitni/orgs","repos_url":"https://api.github.com/users/mzouitni/repos","events_url":"https://api.github.com/users/mzouitni/events{/privacy}","received_events_url":"https://api.github.com/users/mzouitni/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mzouitni/recurly-java-library","description":"Java library for Recurly","fork":true,"url":"https://api.github.com/repos/mzouitni/recurly-java-library","forks_url":"https://api.github.com/repos/mzouitni/recurly-java-library/forks","keys_url":"https://api.github.com/repos/mzouitni/recurly-java-library/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mzouitni/recurly-java-library/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mzouitni/recurly-java-library/teams","hooks_url":"https://api.github.com/repos/mzouitni/recurly-java-library/hooks","issue_events_url":"https://api.github.com/repos/mzouitni/recurly-java-library/issues/events{/number}","events_url":"https://api.github.com/repos/mzouitni/recurly-java-library/events","assignees_url":"https://api.github.com/repos/mzouitni/recurly-java-library/assignees{/user}","branches_url":"https://api.github.com/repos/mzouitni/recurly-java-library/branches{/branch}","tags_url":"https://api.github.com/repos/mzouitni/recurly-java-library/tags","blobs_url":"https://api.github.com/repos/mzouitni/recurly-java-library/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mzouitni/recurly-java-library/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mzouitni/recurly-java-library/git/refs{/sha}","trees_url":"https://api.github.com/repos/mzouitni/recurly-java-library/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mzouitni/recurly-java-library/statuses/{sha}","languages_url":"https://api.github.com/repos/mzouitni/recurly-java-library/languages","stargazers_url":"https://api.github.com/repos/mzouitni/recurly-java-library/stargazers","contributors_url":"https://api.github.com/repos/mzouitni/recurly-java-library/contributors","subscribers_url":"https://api.github.com/repos/mzouitni/recurly-java-library/subscribers","subscription_url":"https://api.github.com/repos/mzouitni/recurly-java-library/subscription","commits_url":"https://api.github.com/repos/mzouitni/recurly-java-library/commits{/sha}","git_commits_url":"https://api.github.com/repos/mzouitni/recurly-java-library/git/commits{/sha}","comments_url":"https://api.github.com/repos/mzouitni/recurly-java-library/comments{/number}","issue_comment_url":"https://api.github.com/repos/mzouitni/recurly-java-library/issues/comments{/number}","contents_url":"https://api.github.com/repos/mzouitni/recurly-java-library/contents/{+path}","compare_url":"https://api.github.com/repos/mzouitni/recurly-java-library/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mzouitni/recurly-java-library/merges","archive_url":"https://api.github.com/repos/mzouitni/recurly-java-library/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mzouitni/recurly-java-library/downloads","issues_url":"https://api.github.com/repos/mzouitni/recurly-java-library/issues{/number}","pulls_url":"https://api.github.com/repos/mzouitni/recurly-java-library/pulls{/number}","milestones_url":"https://api.github.com/repos/mzouitni/recurly-java-library/milestones{/number}","notifications_url":"https://api.github.com/repos/mzouitni/recurly-java-library/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mzouitni/recurly-java-library/labels{/name}","releases_url":"https://api.github.com/repos/mzouitni/recurly-java-library/releases{/id}","created_at":"2015-11-02T20:24:53Z","updated_at":"2015-11-02T20:24:54Z","pushed_at":"2015-11-02T20:44:47Z","git_url":"git://github.com/mzouitni/recurly-java-library.git","ssh_url":"git@github.com:mzouitni/recurly-java-library.git","clone_url":"https://github.com/mzouitni/recurly-java-library.git","svn_url":"https://github.com/mzouitni/recurly-java-library","homepage":"http://recurly.com","size":1465,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"jkeam:master","ref":"master","sha":"c5d74233fd2d91c97d99d55a9db26ab485528242","user":{"login":"jkeam","id":48856,"avatar_url":"https://avatars.githubusercontent.com/u/48856?v=3","gravatar_id":"","url":"https://api.github.com/users/jkeam","html_url":"https://github.com/jkeam","followers_url":"https://api.github.com/users/jkeam/followers","following_url":"https://api.github.com/users/jkeam/following{/other_user}","gists_url":"https://api.github.com/users/jkeam/gists{/gist_id}","starred_url":"https://api.github.com/users/jkeam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jkeam/subscriptions","organizations_url":"https://api.github.com/users/jkeam/orgs","repos_url":"https://api.github.com/users/jkeam/repos","events_url":"https://api.github.com/users/jkeam/events{/privacy}","received_events_url":"https://api.github.com/users/jkeam/received_events","type":"User","site_admin":false},"repo":{"id":38498835,"name":"recurly-java-library","full_name":"jkeam/recurly-java-library","owner":{"login":"jkeam","id":48856,"avatar_url":"https://avatars.githubusercontent.com/u/48856?v=3","gravatar_id":"","url":"https://api.github.com/users/jkeam","html_url":"https://github.com/jkeam","followers_url":"https://api.github.com/users/jkeam/followers","following_url":"https://api.github.com/users/jkeam/following{/other_user}","gists_url":"https://api.github.com/users/jkeam/gists{/gist_id}","starred_url":"https://api.github.com/users/jkeam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jkeam/subscriptions","organizations_url":"https://api.github.com/users/jkeam/orgs","repos_url":"https://api.github.com/users/jkeam/repos","events_url":"https://api.github.com/users/jkeam/events{/privacy}","received_events_url":"https://api.github.com/users/jkeam/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jkeam/recurly-java-library","description":"Java library for Recurly","fork":true,"url":"https://api.github.com/repos/jkeam/recurly-java-library","forks_url":"https://api.github.com/repos/jkeam/recurly-java-library/forks","keys_url":"https://api.github.com/repos/jkeam/recurly-java-library/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jkeam/recurly-java-library/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jkeam/recurly-java-library/teams","hooks_url":"https://api.github.com/repos/jkeam/recurly-java-library/hooks","issue_events_url":"https://api.github.com/repos/jkeam/recurly-java-library/issues/events{/number}","events_url":"https://api.github.com/repos/jkeam/recurly-java-library/events","assignees_url":"https://api.github.com/repos/jkeam/recurly-java-library/assignees{/user}","branches_url":"https://api.github.com/repos/jkeam/recurly-java-library/branches{/branch}","tags_url":"https://api.github.com/repos/jkeam/recurly-java-library/tags","blobs_url":"https://api.github.com/repos/jkeam/recurly-java-library/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jkeam/recurly-java-library/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jkeam/recurly-java-library/git/refs{/sha}","trees_url":"https://api.github.com/repos/jkeam/recurly-java-library/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jkeam/recurly-java-library/statuses/{sha}","languages_url":"https://api.github.com/repos/jkeam/recurly-java-library/languages","stargazers_url":"https://api.github.com/repos/jkeam/recurly-java-library/stargazers","contributors_url":"https://api.github.com/repos/jkeam/recurly-java-library/contributors","subscribers_url":"https://api.github.com/repos/jkeam/recurly-java-library/subscribers","subscription_url":"https://api.github.com/repos/jkeam/recurly-java-library/subscription","commits_url":"https://api.github.com/repos/jkeam/recurly-java-library/commits{/sha}","git_commits_url":"https://api.github.com/repos/jkeam/recurly-java-library/git/commits{/sha}","comments_url":"https://api.github.com/repos/jkeam/recurly-java-library/comments{/number}","issue_comment_url":"https://api.github.com/repos/jkeam/recurly-java-library/issues/comments{/number}","contents_url":"https://api.github.com/repos/jkeam/recurly-java-library/contents/{+path}","compare_url":"https://api.github.com/repos/jkeam/recurly-java-library/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jkeam/recurly-java-library/merges","archive_url":"https://api.github.com/repos/jkeam/recurly-java-library/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jkeam/recurly-java-library/downloads","issues_url":"https://api.github.com/repos/jkeam/recurly-java-library/issues{/number}","pulls_url":"https://api.github.com/repos/jkeam/recurly-java-library/pulls{/number}","milestones_url":"https://api.github.com/repos/jkeam/recurly-java-library/milestones{/number}","notifications_url":"https://api.github.com/repos/jkeam/recurly-java-library/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jkeam/recurly-java-library/labels{/name}","releases_url":"https://api.github.com/repos/jkeam/recurly-java-library/releases{/id}","created_at":"2015-07-03T15:18:04Z","updated_at":"2015-07-03T15:18:05Z","pushed_at":"2015-11-02T20:53:06Z","git_url":"git://github.com/jkeam/recurly-java-library.git","ssh_url":"git@github.com:jkeam/recurly-java-library.git","clone_url":"https://github.com/jkeam/recurly-java-library.git","svn_url":"https://github.com/jkeam/recurly-java-library","homepage":"http://recurly.com","size":696,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/jkeam/recurly-java-library/pulls/2"},"html":{"href":"https://github.com/jkeam/recurly-java-library/pull/2"},"issue":{"href":"https://api.github.com/repos/jkeam/recurly-java-library/issues/2"},"comments":{"href":"https://api.github.com/repos/jkeam/recurly-java-library/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/jkeam/recurly-java-library/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/jkeam/recurly-java-library/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/jkeam/recurly-java-library/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/jkeam/recurly-java-library/statuses/e665067e7b203bf1581cdb76e026670df83688f3"}},"merged":false,"mergeable":true,"mergeable_state":"clean","merged_by":null,"comments":1,"review_comments":0,"commits":12,"additions":647,"deletions":288,"changed_files":94}}