{"action":"closed","number":2,"pull_request":{"url":"https://api.github.com/repos/boomerdigital/solidus_shipstation/pulls/2","id":68278609,"html_url":"https://github.com/boomerdigital/solidus_shipstation/pull/2","diff_url":"https://github.com/boomerdigital/solidus_shipstation/pull/2.diff","patch_url":"https://github.com/boomerdigital/solidus_shipstation/pull/2.patch","issue_url":"https://api.github.com/repos/boomerdigital/solidus_shipstation/issues/2","number":2,"state":"closed","locked":false,"title":"Allow capture of payments when receiving a shipnotify notification.","user":{"login":"hectoregm","id":7404,"avatar_url":"https://avatars.githubusercontent.com/u/7404?v=3","gravatar_id":"","url":"https://api.github.com/users/hectoregm","html_url":"https://github.com/hectoregm","followers_url":"https://api.github.com/users/hectoregm/followers","following_url":"https://api.github.com/users/hectoregm/following{/other_user}","gists_url":"https://api.github.com/users/hectoregm/gists{/gist_id}","starred_url":"https://api.github.com/users/hectoregm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hectoregm/subscriptions","organizations_url":"https://api.github.com/users/hectoregm/orgs","repos_url":"https://api.github.com/users/hectoregm/repos","events_url":"https://api.github.com/users/hectoregm/events{/privacy}","received_events_url":"https://api.github.com/users/hectoregm/received_events","type":"User","site_admin":false},"body":"This PR does two things:\r\n\r\n* Uses Spree::Config.require_payment_to_ship to decide which shipments to export.\r\n* Adds Spree::Config.shipstation_capture_at_notification flag to enable capture of payments when we receive a notification of the creation of a shipment label.\r\n\r\nWork for https://boomerdigital.atlassian.net/browse/TEES-32","created_at":"2016-04-28T19:43:56Z","updated_at":"2016-05-03T17:49:20Z","closed_at":"2016-05-03T17:49:20Z","merged_at":"2016-05-03T17:49:20Z","merge_commit_sha":"e9674c21f7501fb833852b1bb4ebbea6ec66b9d3","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/boomerdigital/solidus_shipstation/pulls/2/commits","review_comments_url":"https://api.github.com/repos/boomerdigital/solidus_shipstation/pulls/2/comments","review_comment_url":"https://api.github.com/repos/boomerdigital/solidus_shipstation/pulls/comments{/number}","comments_url":"https://api.github.com/repos/boomerdigital/solidus_shipstation/issues/2/comments","statuses_url":"https://api.github.com/repos/boomerdigital/solidus_shipstation/statuses/02ced7bd1c599c1700a0603233674aa5bce99a38","head":{"label":"boomerdigital:payment-capture","ref":"payment-capture","sha":"02ced7bd1c599c1700a0603233674aa5bce99a38","user":{"login":"boomerdigital","id":15251632,"avatar_url":"https://avatars.githubusercontent.com/u/15251632?v=3","gravatar_id":"","url":"https://api.github.com/users/boomerdigital","html_url":"https://github.com/boomerdigital","followers_url":"https://api.github.com/users/boomerdigital/followers","following_url":"https://api.github.com/users/boomerdigital/following{/other_user}","gists_url":"https://api.github.com/users/boomerdigital/gists{/gist_id}","starred_url":"https://api.github.com/users/boomerdigital/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/boomerdigital/subscriptions","organizations_url":"https://api.github.com/users/boomerdigital/orgs","repos_url":"https://api.github.com/users/boomerdigital/repos","events_url":"https://api.github.com/users/boomerdigital/events{/privacy}","received_events_url":"https://api.github.com/users/boomerdigital/received_events","type":"Organization","site_admin":false},"repo":{"id":56009629,"name":"solidus_shipstation","full_name":"boomerdigital/solidus_shipstation","owner":{"login":"boomerdigital","id":15251632,"avatar_url":"https://avatars.githubusercontent.com/u/15251632?v=3","gravatar_id":"","url":"https://api.github.com/users/boomerdigital","html_url":"https://github.com/boomerdigital","followers_url":"https://api.github.com/users/boomerdigital/followers","following_url":"https://api.github.com/users/boomerdigital/following{/other_user}","gists_url":"https://api.github.com/users/boomerdigital/gists{/gist_id}","starred_url":"https://api.github.com/users/boomerdigital/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/boomerdigital/subscriptions","organizations_url":"https://api.github.com/users/boomerdigital/orgs","repos_url":"https://api.github.com/users/boomerdigital/repos","events_url":"https://api.github.com/users/boomerdigital/events{/privacy}","received_events_url":"https://api.github.com/users/boomerdigital/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/boomerdigital/solidus_shipstation","description":"","fork":true,"url":"https://api.github.com/repos/boomerdigital/solidus_shipstation","forks_url":"https://api.github.com/repos/boomerdigital/solidus_shipstation/forks","keys_url":"https://api.github.com/repos/boomerdigital/solidus_shipstation/keys{/key_id}","collaborators_url":"https://api.github.com/repos/boomerdigital/solidus_shipstation/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/boomerdigital/solidus_shipstation/teams","hooks_url":"https://api.github.com/repos/boomerdigital/solidus_shipstation/hooks","issue_events_url":"https://api.github.com/repos/boomerdigital/solidus_shipstation/issues/events{/number}","events_url":"https://api.github.com/repos/boomerdigital/solidus_shipstation/events","assignees_url":"https://api.github.com/repos/boomerdigital/solidus_shipstation/assignees{/user}","branches_url":"https://api.github.com/repos/boomerdigital/solidus_shipstation/branches{/branch}","tags_url":"https://api.github.com/repos/boomerdigital/solidus_shipstation/tags","blobs_url":"https://api.github.com/repos/boomerdigital/solidus_shipstation/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/boomerdigital/solidus_shipstation/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/boomerdigital/solidus_shipstation/git/refs{/sha}","trees_url":"https://api.github.com/repos/boomerdigital/solidus_shipstation/git/trees{/sha}","statuses_url":"https://api.github.com/repos/boomerdigital/solidus_shipstation/statuses/{sha}","languages_url":"https://api.github.com/repos/boomerdigital/solidus_shipstation/languages","stargazers_url":"https://api.github.com/repos/boomerdigital/solidus_shipstation/stargazers","contributors_url":"https://api.github.com/repos/boomerdigital/solidus_shipstation/contributors","subscribers_url":"https://api.github.com/repos/boomerdigital/solidus_shipstation/subscribers","subscription_url":"https://api.github.com/repos/boomerdigital/solidus_shipstation/subscription","commits_url":"https://api.github.com/repos/boomerdigital/solidus_shipstation/commits{/sha}","git_commits_url":"https://api.github.com/repos/boomerdigital/solidus_shipstation/git/commits{/sha}","comments_url":"https://api.github.com/repos/boomerdigital/solidus_shipstation/comments{/number}","issue_comment_url":"https://api.github.com/repos/boomerdigital/solidus_shipstation/issues/comments{/number}","contents_url":"https://api.github.com/repos/boomerdigital/solidus_shipstation/contents/{+path}","compare_url":"https://api.github.com/repos/boomerdigital/solidus_shipstation/compare/{base}...{head}","merges_url":"https://api.github.com/repos/boomerdigital/solidus_shipstation/merges","archive_url":"https://api.github.com/repos/boomerdigital/solidus_shipstation/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/boomerdigital/solidus_shipstation/downloads","issues_url":"https://api.github.com/repos/boomerdigital/solidus_shipstation/issues{/number}","pulls_url":"https://api.github.com/repos/boomerdigital/solidus_shipstation/pulls{/number}","milestones_url":"https://api.github.com/repos/boomerdigital/solidus_shipstation/milestones{/number}","notifications_url":"https://api.github.com/repos/boomerdigital/solidus_shipstation/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/boomerdigital/solidus_shipstation/labels{/name}","releases_url":"https://api.github.com/repos/boomerdigital/solidus_shipstation/releases{/id}","deployments_url":"https://api.github.com/repos/boomerdigital/solidus_shipstation/deployments","created_at":"2016-04-11T21:40:08Z","updated_at":"2016-04-11T21:40:08Z","pushed_at":"2016-05-03T17:49:20Z","git_url":"git://github.com/boomerdigital/solidus_shipstation.git","ssh_url":"git@github.com:boomerdigital/solidus_shipstation.git","clone_url":"https://github.com/boomerdigital/solidus_shipstation.git","svn_url":"https://github.com/boomerdigital/solidus_shipstation","homepage":null,"size":552,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"boomerdigital:master","ref":"master","sha":"ca62b2338ffadb2da8cc228f6d8e647198f717de","user":{"login":"boomerdigital","id":15251632,"avatar_url":"https://avatars.githubusercontent.com/u/15251632?v=3","gravatar_id":"","url":"https://api.github.com/users/boomerdigital","html_url":"https://github.com/boomerdigital","followers_url":"https://api.github.com/users/boomerdigital/followers","following_url":"https://api.github.com/users/boomerdigital/following{/other_user}","gists_url":"https://api.github.com/users/boomerdigital/gists{/gist_id}","starred_url":"https://api.github.com/users/boomerdigital/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/boomerdigital/subscriptions","organizations_url":"https://api.github.com/users/boomerdigital/orgs","repos_url":"https://api.github.com/users/boomerdigital/repos","events_url":"https://api.github.com/users/boomerdigital/events{/privacy}","received_events_url":"https://api.github.com/users/boomerdigital/received_events","type":"Organization","site_admin":false},"repo":{"id":56009629,"name":"solidus_shipstation","full_name":"boomerdigital/solidus_shipstation","owner":{"login":"boomerdigital","id":15251632,"avatar_url":"https://avatars.githubusercontent.com/u/15251632?v=3","gravatar_id":"","url":"https://api.github.com/users/boomerdigital","html_url":"https://github.com/boomerdigital","followers_url":"https://api.github.com/users/boomerdigital/followers","following_url":"https://api.github.com/users/boomerdigital/following{/other_user}","gists_url":"https://api.github.com/users/boomerdigital/gists{/gist_id}","starred_url":"https://api.github.com/users/boomerdigital/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/boomerdigital/subscriptions","organizations_url":"https://api.github.com/users/boomerdigital/orgs","repos_url":"https://api.github.com/users/boomerdigital/repos","events_url":"https://api.github.com/users/boomerdigital/events{/privacy}","received_events_url":"https://api.github.com/users/boomerdigital/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/boomerdigital/solidus_shipstation","description":"","fork":true,"url":"https://api.github.com/repos/boomerdigital/solidus_shipstation","forks_url":"https://api.github.com/repos/boomerdigital/solidus_shipstation/forks","keys_url":"https://api.github.com/repos/boomerdigital/solidus_shipstation/keys{/key_id}","collaborators_url":"https://api.github.com/repos/boomerdigital/solidus_shipstation/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/boomerdigital/solidus_shipstation/teams","hooks_url":"https://api.github.com/repos/boomerdigital/solidus_shipstation/hooks","issue_events_url":"https://api.github.com/repos/boomerdigital/solidus_shipstation/issues/events{/number}","events_url":"https://api.github.com/repos/boomerdigital/solidus_shipstation/events","assignees_url":"https://api.github.com/repos/boomerdigital/solidus_shipstation/assignees{/user}","branches_url":"https://api.github.com/repos/boomerdigital/solidus_shipstation/branches{/branch}","tags_url":"https://api.github.com/repos/boomerdigital/solidus_shipstation/tags","blobs_url":"https://api.github.com/repos/boomerdigital/solidus_shipstation/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/boomerdigital/solidus_shipstation/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/boomerdigital/solidus_shipstation/git/refs{/sha}","trees_url":"https://api.github.com/repos/boomerdigital/solidus_shipstation/git/trees{/sha}","statuses_url":"https://api.github.com/repos/boomerdigital/solidus_shipstation/statuses/{sha}","languages_url":"https://api.github.com/repos/boomerdigital/solidus_shipstation/languages","stargazers_url":"https://api.github.com/repos/boomerdigital/solidus_shipstation/stargazers","contributors_url":"https://api.github.com/repos/boomerdigital/solidus_shipstation/contributors","subscribers_url":"https://api.github.com/repos/boomerdigital/solidus_shipstation/subscribers","subscription_url":"https://api.github.com/repos/boomerdigital/solidus_shipstation/subscription","commits_url":"https://api.github.com/repos/boomerdigital/solidus_shipstation/commits{/sha}","git_commits_url":"https://api.github.com/repos/boomerdigital/solidus_shipstation/git/commits{/sha}","comments_url":"https://api.github.com/repos/boomerdigital/solidus_shipstation/comments{/number}","issue_comment_url":"https://api.github.com/repos/boomerdigital/solidus_shipstation/issues/comments{/number}","contents_url":"https://api.github.com/repos/boomerdigital/solidus_shipstation/contents/{+path}","compare_url":"https://api.github.com/repos/boomerdigital/solidus_shipstation/compare/{base}...{head}","merges_url":"https://api.github.com/repos/boomerdigital/solidus_shipstation/merges","archive_url":"https://api.github.com/repos/boomerdigital/solidus_shipstation/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/boomerdigital/solidus_shipstation/downloads","issues_url":"https://api.github.com/repos/boomerdigital/solidus_shipstation/issues{/number}","pulls_url":"https://api.github.com/repos/boomerdigital/solidus_shipstation/pulls{/number}","milestones_url":"https://api.github.com/repos/boomerdigital/solidus_shipstation/milestones{/number}","notifications_url":"https://api.github.com/repos/boomerdigital/solidus_shipstation/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/boomerdigital/solidus_shipstation/labels{/name}","releases_url":"https://api.github.com/repos/boomerdigital/solidus_shipstation/releases{/id}","deployments_url":"https://api.github.com/repos/boomerdigital/solidus_shipstation/deployments","created_at":"2016-04-11T21:40:08Z","updated_at":"2016-04-11T21:40:08Z","pushed_at":"2016-05-03T17:49:20Z","git_url":"git://github.com/boomerdigital/solidus_shipstation.git","ssh_url":"git@github.com:boomerdigital/solidus_shipstation.git","clone_url":"https://github.com/boomerdigital/solidus_shipstation.git","svn_url":"https://github.com/boomerdigital/solidus_shipstation","homepage":null,"size":552,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":false,"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/boomerdigital/solidus_shipstation/pulls/2"},"html":{"href":"https://github.com/boomerdigital/solidus_shipstation/pull/2"},"issue":{"href":"https://api.github.com/repos/boomerdigital/solidus_shipstation/issues/2"},"comments":{"href":"https://api.github.com/repos/boomerdigital/solidus_shipstation/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/boomerdigital/solidus_shipstation/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/boomerdigital/solidus_shipstation/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/boomerdigital/solidus_shipstation/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/boomerdigital/solidus_shipstation/statuses/02ced7bd1c599c1700a0603233674aa5bce99a38"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"hectoregm","id":7404,"avatar_url":"https://avatars.githubusercontent.com/u/7404?v=3","gravatar_id":"","url":"https://api.github.com/users/hectoregm","html_url":"https://github.com/hectoregm","followers_url":"https://api.github.com/users/hectoregm/followers","following_url":"https://api.github.com/users/hectoregm/following{/other_user}","gists_url":"https://api.github.com/users/hectoregm/gists{/gist_id}","starred_url":"https://api.github.com/users/hectoregm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hectoregm/subscriptions","organizations_url":"https://api.github.com/users/hectoregm/orgs","repos_url":"https://api.github.com/users/hectoregm/repos","events_url":"https://api.github.com/users/hectoregm/events{/privacy}","received_events_url":"https://api.github.com/users/hectoregm/received_events","type":"User","site_admin":false},"comments":1,"review_comments":24,"commits":1,"additions":154,"deletions":21,"changed_files":12}}