{"action":"closed","number":299,"pull_request":{"url":"https://api.github.com/repos/killbilling/recurly-java-library/pulls/299","id":232113860,"node_id":"MDExOlB1bGxSZXF1ZXN0MjMyMTEzODYw","html_url":"https://github.com/killbilling/recurly-java-library/pull/299","diff_url":"https://github.com/killbilling/recurly-java-library/pull/299.diff","patch_url":"https://github.com/killbilling/recurly-java-library/pull/299.patch","issue_url":"https://api.github.com/repos/killbilling/recurly-java-library/issues/299","number":299,"state":"closed","locked":false,"title":"Add gatewayCode to subscription notes and invoice","user":{"login":"aaron-suarez","id":2008701,"node_id":"MDQ6VXNlcjIwMDg3MDE=","avatar_url":"https://avatars1.githubusercontent.com/u/2008701?v=4","gravatar_id":"","url":"https://api.github.com/users/aaron-suarez","html_url":"https://github.com/aaron-suarez","followers_url":"https://api.github.com/users/aaron-suarez/followers","following_url":"https://api.github.com/users/aaron-suarez/following{/other_user}","gists_url":"https://api.github.com/users/aaron-suarez/gists{/gist_id}","starred_url":"https://api.github.com/users/aaron-suarez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aaron-suarez/subscriptions","organizations_url":"https://api.github.com/users/aaron-suarez/orgs","repos_url":"https://api.github.com/users/aaron-suarez/repos","events_url":"https://api.github.com/users/aaron-suarez/events{/privacy}","received_events_url":"https://api.github.com/users/aaron-suarez/received_events","type":"User","site_admin":false},"body":"This allows you to change the gateway code via the subscription `/notes` endpoint as well as the `PUT invoice` endpoint.\r\n\r\nScript:\r\n```java\r\ntry {\r\n    client.open();\r\n\r\n    // Subscription Notes\r\n    final SubscriptionNotes subscriptionNotesData = new SubscriptionNotes();\r\n    subscriptionNotesData.setGatewayCode(\"jqgayw0mjh5w\");\r\n    Subscription sub = client.updateSubscriptionNotes(\"4810fde9f3f29b244474e445d795cc78\", subscriptionNotesData);\r\n\r\n    // Invoice\r\n    Invoice updatedInvoice = new Invoice();\r\n    updatedInvoice.setGatewayCode(\"jvm7v7as5ugm\");\r\n    client.updateInvoice(\"1001\", updatedInvoice);\r\n} catch (Exception e) {\r\n    e.printStackTrace();\r\n} finally {\r\n    client.close();\r\n}\r\n```","created_at":"2018-11-19T21:15:23Z","updated_at":"2018-11-26T21:15:37Z","closed_at":"2018-11-26T21:15:37Z","merged_at":"2018-11-26T21:15:37Z","merge_commit_sha":"649ac8731d42feadb07c6c9386a2ec064bb5f494","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/killbilling/recurly-java-library/pulls/299/commits","review_comments_url":"https://api.github.com/repos/killbilling/recurly-java-library/pulls/299/comments","review_comment_url":"https://api.github.com/repos/killbilling/recurly-java-library/pulls/comments{/number}","comments_url":"https://api.github.com/repos/killbilling/recurly-java-library/issues/299/comments","statuses_url":"https://api.github.com/repos/killbilling/recurly-java-library/statuses/333aef0550e7387a0f30424b6f007e9c11615cba","head":{"label":"killbilling:aaron-suarez/gateway-routing","ref":"aaron-suarez/gateway-routing","sha":"333aef0550e7387a0f30424b6f007e9c11615cba","user":{"login":"killbilling","id":1855150,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE4NTUxNTA=","avatar_url":"https://avatars3.githubusercontent.com/u/1855150?v=4","gravatar_id":"","url":"https://api.github.com/users/killbilling","html_url":"https://github.com/killbilling","followers_url":"https://api.github.com/users/killbilling/followers","following_url":"https://api.github.com/users/killbilling/following{/other_user}","gists_url":"https://api.github.com/users/killbilling/gists{/gist_id}","starred_url":"https://api.github.com/users/killbilling/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/killbilling/subscriptions","organizations_url":"https://api.github.com/users/killbilling/orgs","repos_url":"https://api.github.com/users/killbilling/repos","events_url":"https://api.github.com/users/killbilling/events{/privacy}","received_events_url":"https://api.github.com/users/killbilling/received_events","type":"Organization","site_admin":false},"repo":{"id":5241154,"node_id":"MDEwOlJlcG9zaXRvcnk1MjQxMTU0","name":"recurly-java-library","full_name":"killbilling/recurly-java-library","private":false,"owner":{"login":"killbilling","id":1855150,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE4NTUxNTA=","avatar_url":"https://avatars3.githubusercontent.com/u/1855150?v=4","gravatar_id":"","url":"https://api.github.com/users/killbilling","html_url":"https://github.com/killbilling","followers_url":"https://api.github.com/users/killbilling/followers","following_url":"https://api.github.com/users/killbilling/following{/other_user}","gists_url":"https://api.github.com/users/killbilling/gists{/gist_id}","starred_url":"https://api.github.com/users/killbilling/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/killbilling/subscriptions","organizations_url":"https://api.github.com/users/killbilling/orgs","repos_url":"https://api.github.com/users/killbilling/repos","events_url":"https://api.github.com/users/killbilling/events{/privacy}","received_events_url":"https://api.github.com/users/killbilling/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/killbilling/recurly-java-library","description":"Java library for Recurly","fork":false,"url":"https://api.github.com/repos/killbilling/recurly-java-library","forks_url":"https://api.github.com/repos/killbilling/recurly-java-library/forks","keys_url":"https://api.github.com/repos/killbilling/recurly-java-library/keys{/key_id}","collaborators_url":"https://api.github.com/repos/killbilling/recurly-java-library/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/killbilling/recurly-java-library/teams","hooks_url":"https://api.github.com/repos/killbilling/recurly-java-library/hooks","issue_events_url":"https://api.github.com/repos/killbilling/recurly-java-library/issues/events{/number}","events_url":"https://api.github.com/repos/killbilling/recurly-java-library/events","assignees_url":"https://api.github.com/repos/killbilling/recurly-java-library/assignees{/user}","branches_url":"https://api.github.com/repos/killbilling/recurly-java-library/branches{/branch}","tags_url":"https://api.github.com/repos/killbilling/recurly-java-library/tags","blobs_url":"https://api.github.com/repos/killbilling/recurly-java-library/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/killbilling/recurly-java-library/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/killbilling/recurly-java-library/git/refs{/sha}","trees_url":"https://api.github.com/repos/killbilling/recurly-java-library/git/trees{/sha}","statuses_url":"https://api.github.com/repos/killbilling/recurly-java-library/statuses/{sha}","languages_url":"https://api.github.com/repos/killbilling/recurly-java-library/languages","stargazers_url":"https://api.github.com/repos/killbilling/recurly-java-library/stargazers","contributors_url":"https://api.github.com/repos/killbilling/recurly-java-library/contributors","subscribers_url":"https://api.github.com/repos/killbilling/recurly-java-library/subscribers","subscription_url":"https://api.github.com/repos/killbilling/recurly-java-library/subscription","commits_url":"https://api.github.com/repos/killbilling/recurly-java-library/commits{/sha}","git_commits_url":"https://api.github.com/repos/killbilling/recurly-java-library/git/commits{/sha}","comments_url":"https://api.github.com/repos/killbilling/recurly-java-library/comments{/number}","issue_comment_url":"https://api.github.com/repos/killbilling/recurly-java-library/issues/comments{/number}","contents_url":"https://api.github.com/repos/killbilling/recurly-java-library/contents/{+path}","compare_url":"https://api.github.com/repos/killbilling/recurly-java-library/compare/{base}...{head}","merges_url":"https://api.github.com/repos/killbilling/recurly-java-library/merges","archive_url":"https://api.github.com/repos/killbilling/recurly-java-library/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/killbilling/recurly-java-library/downloads","issues_url":"https://api.github.com/repos/killbilling/recurly-java-library/issues{/number}","pulls_url":"https://api.github.com/repos/killbilling/recurly-java-library/pulls{/number}","milestones_url":"https://api.github.com/repos/killbilling/recurly-java-library/milestones{/number}","notifications_url":"https://api.github.com/repos/killbilling/recurly-java-library/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/killbilling/recurly-java-library/labels{/name}","releases_url":"https://api.github.com/repos/killbilling/recurly-java-library/releases{/id}","deployments_url":"https://api.github.com/repos/killbilling/recurly-java-library/deployments","created_at":"2012-07-31T03:42:37Z","updated_at":"2018-11-21T00:22:59Z","pushed_at":"2018-11-26T21:15:37Z","git_url":"git://github.com/killbilling/recurly-java-library.git","ssh_url":"git@github.com:killbilling/recurly-java-library.git","clone_url":"https://github.com/killbilling/recurly-java-library.git","svn_url":"https://github.com/killbilling/recurly-java-library","homepage":"http://recurly.com","size":1224,"stargazers_count":44,"watchers_count":44,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":79,"mirror_url":null,"archived":false,"open_issues_count":7,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":79,"open_issues":7,"watchers":44,"default_branch":"master"}},"base":{"label":"killbilling:api_version_2_17","ref":"api_version_2_17","sha":"6910c4df61251073ee6bac1c516f96e2d804cb62","user":{"login":"killbilling","id":1855150,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE4NTUxNTA=","avatar_url":"https://avatars3.githubusercontent.com/u/1855150?v=4","gravatar_id":"","url":"https://api.github.com/users/killbilling","html_url":"https://github.com/killbilling","followers_url":"https://api.github.com/users/killbilling/followers","following_url":"https://api.github.com/users/killbilling/following{/other_user}","gists_url":"https://api.github.com/users/killbilling/gists{/gist_id}","starred_url":"https://api.github.com/users/killbilling/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/killbilling/subscriptions","organizations_url":"https://api.github.com/users/killbilling/orgs","repos_url":"https://api.github.com/users/killbilling/repos","events_url":"https://api.github.com/users/killbilling/events{/privacy}","received_events_url":"https://api.github.com/users/killbilling/received_events","type":"Organization","site_admin":false},"repo":{"id":5241154,"node_id":"MDEwOlJlcG9zaXRvcnk1MjQxMTU0","name":"recurly-java-library","full_name":"killbilling/recurly-java-library","private":false,"owner":{"login":"killbilling","id":1855150,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE4NTUxNTA=","avatar_url":"https://avatars3.githubusercontent.com/u/1855150?v=4","gravatar_id":"","url":"https://api.github.com/users/killbilling","html_url":"https://github.com/killbilling","followers_url":"https://api.github.com/users/killbilling/followers","following_url":"https://api.github.com/users/killbilling/following{/other_user}","gists_url":"https://api.github.com/users/killbilling/gists{/gist_id}","starred_url":"https://api.github.com/users/killbilling/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/killbilling/subscriptions","organizations_url":"https://api.github.com/users/killbilling/orgs","repos_url":"https://api.github.com/users/killbilling/repos","events_url":"https://api.github.com/users/killbilling/events{/privacy}","received_events_url":"https://api.github.com/users/killbilling/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/killbilling/recurly-java-library","description":"Java library for Recurly","fork":false,"url":"https://api.github.com/repos/killbilling/recurly-java-library","forks_url":"https://api.github.com/repos/killbilling/recurly-java-library/forks","keys_url":"https://api.github.com/repos/killbilling/recurly-java-library/keys{/key_id}","collaborators_url":"https://api.github.com/repos/killbilling/recurly-java-library/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/killbilling/recurly-java-library/teams","hooks_url":"https://api.github.com/repos/killbilling/recurly-java-library/hooks","issue_events_url":"https://api.github.com/repos/killbilling/recurly-java-library/issues/events{/number}","events_url":"https://api.github.com/repos/killbilling/recurly-java-library/events","assignees_url":"https://api.github.com/repos/killbilling/recurly-java-library/assignees{/user}","branches_url":"https://api.github.com/repos/killbilling/recurly-java-library/branches{/branch}","tags_url":"https://api.github.com/repos/killbilling/recurly-java-library/tags","blobs_url":"https://api.github.com/repos/killbilling/recurly-java-library/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/killbilling/recurly-java-library/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/killbilling/recurly-java-library/git/refs{/sha}","trees_url":"https://api.github.com/repos/killbilling/recurly-java-library/git/trees{/sha}","statuses_url":"https://api.github.com/repos/killbilling/recurly-java-library/statuses/{sha}","languages_url":"https://api.github.com/repos/killbilling/recurly-java-library/languages","stargazers_url":"https://api.github.com/repos/killbilling/recurly-java-library/stargazers","contributors_url":"https://api.github.com/repos/killbilling/recurly-java-library/contributors","subscribers_url":"https://api.github.com/repos/killbilling/recurly-java-library/subscribers","subscription_url":"https://api.github.com/repos/killbilling/recurly-java-library/subscription","commits_url":"https://api.github.com/repos/killbilling/recurly-java-library/commits{/sha}","git_commits_url":"https://api.github.com/repos/killbilling/recurly-java-library/git/commits{/sha}","comments_url":"https://api.github.com/repos/killbilling/recurly-java-library/comments{/number}","issue_comment_url":"https://api.github.com/repos/killbilling/recurly-java-library/issues/comments{/number}","contents_url":"https://api.github.com/repos/killbilling/recurly-java-library/contents/{+path}","compare_url":"https://api.github.com/repos/killbilling/recurly-java-library/compare/{base}...{head}","merges_url":"https://api.github.com/repos/killbilling/recurly-java-library/merges","archive_url":"https://api.github.com/repos/killbilling/recurly-java-library/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/killbilling/recurly-java-library/downloads","issues_url":"https://api.github.com/repos/killbilling/recurly-java-library/issues{/number}","pulls_url":"https://api.github.com/repos/killbilling/recurly-java-library/pulls{/number}","milestones_url":"https://api.github.com/repos/killbilling/recurly-java-library/milestones{/number}","notifications_url":"https://api.github.com/repos/killbilling/recurly-java-library/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/killbilling/recurly-java-library/labels{/name}","releases_url":"https://api.github.com/repos/killbilling/recurly-java-library/releases{/id}","deployments_url":"https://api.github.com/repos/killbilling/recurly-java-library/deployments","created_at":"2012-07-31T03:42:37Z","updated_at":"2018-11-21T00:22:59Z","pushed_at":"2018-11-26T21:15:37Z","git_url":"git://github.com/killbilling/recurly-java-library.git","ssh_url":"git@github.com:killbilling/recurly-java-library.git","clone_url":"https://github.com/killbilling/recurly-java-library.git","svn_url":"https://github.com/killbilling/recurly-java-library","homepage":"http://recurly.com","size":1224,"stargazers_count":44,"watchers_count":44,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":79,"mirror_url":null,"archived":false,"open_issues_count":7,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":79,"open_issues":7,"watchers":44,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/killbilling/recurly-java-library/pulls/299"},"html":{"href":"https://github.com/killbilling/recurly-java-library/pull/299"},"issue":{"href":"https://api.github.com/repos/killbilling/recurly-java-library/issues/299"},"comments":{"href":"https://api.github.com/repos/killbilling/recurly-java-library/issues/299/comments"},"review_comments":{"href":"https://api.github.com/repos/killbilling/recurly-java-library/pulls/299/comments"},"review_comment":{"href":"https://api.github.com/repos/killbilling/recurly-java-library/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/killbilling/recurly-java-library/pulls/299/commits"},"statuses":{"href":"https://api.github.com/repos/killbilling/recurly-java-library/statuses/333aef0550e7387a0f30424b6f007e9c11615cba"}},"author_association":"MEMBER","merged":true,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":{"login":"bhelx","id":185919,"node_id":"MDQ6VXNlcjE4NTkxOQ==","avatar_url":"https://avatars2.githubusercontent.com/u/185919?v=4","gravatar_id":"","url":"https://api.github.com/users/bhelx","html_url":"https://github.com/bhelx","followers_url":"https://api.github.com/users/bhelx/followers","following_url":"https://api.github.com/users/bhelx/following{/other_user}","gists_url":"https://api.github.com/users/bhelx/gists{/gist_id}","starred_url":"https://api.github.com/users/bhelx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bhelx/subscriptions","organizations_url":"https://api.github.com/users/bhelx/orgs","repos_url":"https://api.github.com/users/bhelx/repos","events_url":"https://api.github.com/users/bhelx/events{/privacy}","received_events_url":"https://api.github.com/users/bhelx/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":1,"additions":35,"deletions":1,"changed_files":3}}
{"actor":{"display_login":"bhelx"}}