{"action":"closed","number":1226,"pull_request":{"url":"https://api.github.com/repos/AffiliateWP/AffiliateWP/pulls/1226","id":67621103,"html_url":"https://github.com/AffiliateWP/AffiliateWP/pull/1226","diff_url":"https://github.com/AffiliateWP/AffiliateWP/pull/1226.diff","patch_url":"https://github.com/AffiliateWP/AffiliateWP/pull/1226.patch","issue_url":"https://api.github.com/repos/AffiliateWP/AffiliateWP/issues/1226","number":1226,"state":"closed","locked":false,"title":"issue/498 – Add membership-level commissions for Paid Memberships Pro","user":{"login":"DrewAPicture","id":995399,"avatar_url":"https://avatars.githubusercontent.com/u/995399?v=3","gravatar_id":"","url":"https://api.github.com/users/DrewAPicture","html_url":"https://github.com/DrewAPicture","followers_url":"https://api.github.com/users/DrewAPicture/followers","following_url":"https://api.github.com/users/DrewAPicture/following{/other_user}","gists_url":"https://api.github.com/users/DrewAPicture/gists{/gist_id}","starred_url":"https://api.github.com/users/DrewAPicture/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DrewAPicture/subscriptions","organizations_url":"https://api.github.com/users/DrewAPicture/orgs","repos_url":"https://api.github.com/users/DrewAPicture/repos","events_url":"https://api.github.com/users/DrewAPicture/events{/privacy}","received_events_url":"https://api.github.com/users/DrewAPicture/received_events","type":"User","site_admin":false},"body":"Isuee: #498 \r\n\r\nAdds two new settings to the Membership Level Add/Edit screens:\r\n\r\n![Affiliate settings](http://cl.ly/1u0n0M0U2Q03/Screen%20Shot%202016-04-23%20at%204.41.54%20PM.png)\r\n\r\nThis effectively injects a new referral rate possibility in between the global site rate and affiliate-level rates. If an affiliate-level rate is defined, it will override the membership-level rate. If both are left blank, the global rate will be used. If membership-level referrals are disabled, the rate is completely removed from the equation.\r\n\r\nTODO: Pretty referrals toss a 404 on (at the very least) the checkout screen. Standard query string referral URLs work and record correctly though.","created_at":"2016-04-23T22:46:15Z","updated_at":"2016-04-28T18:52:06Z","closed_at":"2016-04-28T18:52:06Z","merged_at":"2016-04-28T18:52:06Z","merge_commit_sha":"fc1dd660651c1f601a36120e6dd8da6f318380ab","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/AffiliateWP/AffiliateWP/pulls/1226/commits","review_comments_url":"https://api.github.com/repos/AffiliateWP/AffiliateWP/pulls/1226/comments","review_comment_url":"https://api.github.com/repos/AffiliateWP/AffiliateWP/pulls/comments{/number}","comments_url":"https://api.github.com/repos/AffiliateWP/AffiliateWP/issues/1226/comments","statuses_url":"https://api.github.com/repos/AffiliateWP/AffiliateWP/statuses/f48e3e0314843b6ce80534c2246f43000424d53d","head":{"label":"AffiliateWP:issue/498","ref":"issue/498","sha":"f48e3e0314843b6ce80534c2246f43000424d53d","user":{"login":"AffiliateWP","id":7075307,"avatar_url":"https://avatars.githubusercontent.com/u/7075307?v=3","gravatar_id":"","url":"https://api.github.com/users/AffiliateWP","html_url":"https://github.com/AffiliateWP","followers_url":"https://api.github.com/users/AffiliateWP/followers","following_url":"https://api.github.com/users/AffiliateWP/following{/other_user}","gists_url":"https://api.github.com/users/AffiliateWP/gists{/gist_id}","starred_url":"https://api.github.com/users/AffiliateWP/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AffiliateWP/subscriptions","organizations_url":"https://api.github.com/users/AffiliateWP/orgs","repos_url":"https://api.github.com/users/AffiliateWP/repos","events_url":"https://api.github.com/users/AffiliateWP/events{/privacy}","received_events_url":"https://api.github.com/users/AffiliateWP/received_events","type":"Organization","site_admin":false},"repo":{"id":15543455,"name":"AffiliateWP","full_name":"AffiliateWP/AffiliateWP","owner":{"login":"AffiliateWP","id":7075307,"avatar_url":"https://avatars.githubusercontent.com/u/7075307?v=3","gravatar_id":"","url":"https://api.github.com/users/AffiliateWP","html_url":"https://github.com/AffiliateWP","followers_url":"https://api.github.com/users/AffiliateWP/followers","following_url":"https://api.github.com/users/AffiliateWP/following{/other_user}","gists_url":"https://api.github.com/users/AffiliateWP/gists{/gist_id}","starred_url":"https://api.github.com/users/AffiliateWP/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AffiliateWP/subscriptions","organizations_url":"https://api.github.com/users/AffiliateWP/orgs","repos_url":"https://api.github.com/users/AffiliateWP/repos","events_url":"https://api.github.com/users/AffiliateWP/events{/privacy}","received_events_url":"https://api.github.com/users/AffiliateWP/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/AffiliateWP/AffiliateWP","description":"Affiliate plugin for WordPress","fork":false,"url":"https://api.github.com/repos/AffiliateWP/AffiliateWP","forks_url":"https://api.github.com/repos/AffiliateWP/AffiliateWP/forks","keys_url":"https://api.github.com/repos/AffiliateWP/AffiliateWP/keys{/key_id}","collaborators_url":"https://api.github.com/repos/AffiliateWP/AffiliateWP/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/AffiliateWP/AffiliateWP/teams","hooks_url":"https://api.github.com/repos/AffiliateWP/AffiliateWP/hooks","issue_events_url":"https://api.github.com/repos/AffiliateWP/AffiliateWP/issues/events{/number}","events_url":"https://api.github.com/repos/AffiliateWP/AffiliateWP/events","assignees_url":"https://api.github.com/repos/AffiliateWP/AffiliateWP/assignees{/user}","branches_url":"https://api.github.com/repos/AffiliateWP/AffiliateWP/branches{/branch}","tags_url":"https://api.github.com/repos/AffiliateWP/AffiliateWP/tags","blobs_url":"https://api.github.com/repos/AffiliateWP/AffiliateWP/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/AffiliateWP/AffiliateWP/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/AffiliateWP/AffiliateWP/git/refs{/sha}","trees_url":"https://api.github.com/repos/AffiliateWP/AffiliateWP/git/trees{/sha}","statuses_url":"https://api.github.com/repos/AffiliateWP/AffiliateWP/statuses/{sha}","languages_url":"https://api.github.com/repos/AffiliateWP/AffiliateWP/languages","stargazers_url":"https://api.github.com/repos/AffiliateWP/AffiliateWP/stargazers","contributors_url":"https://api.github.com/repos/AffiliateWP/AffiliateWP/contributors","subscribers_url":"https://api.github.com/repos/AffiliateWP/AffiliateWP/subscribers","subscription_url":"https://api.github.com/repos/AffiliateWP/AffiliateWP/subscription","commits_url":"https://api.github.com/repos/AffiliateWP/AffiliateWP/commits{/sha}","git_commits_url":"https://api.github.com/repos/AffiliateWP/AffiliateWP/git/commits{/sha}","comments_url":"https://api.github.com/repos/AffiliateWP/AffiliateWP/comments{/number}","issue_comment_url":"https://api.github.com/repos/AffiliateWP/AffiliateWP/issues/comments{/number}","contents_url":"https://api.github.com/repos/AffiliateWP/AffiliateWP/contents/{+path}","compare_url":"https://api.github.com/repos/AffiliateWP/AffiliateWP/compare/{base}...{head}","merges_url":"https://api.github.com/repos/AffiliateWP/AffiliateWP/merges","archive_url":"https://api.github.com/repos/AffiliateWP/AffiliateWP/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/AffiliateWP/AffiliateWP/downloads","issues_url":"https://api.github.com/repos/AffiliateWP/AffiliateWP/issues{/number}","pulls_url":"https://api.github.com/repos/AffiliateWP/AffiliateWP/pulls{/number}","milestones_url":"https://api.github.com/repos/AffiliateWP/AffiliateWP/milestones{/number}","notifications_url":"https://api.github.com/repos/AffiliateWP/AffiliateWP/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/AffiliateWP/AffiliateWP/labels{/name}","releases_url":"https://api.github.com/repos/AffiliateWP/AffiliateWP/releases{/id}","deployments_url":"https://api.github.com/repos/AffiliateWP/AffiliateWP/deployments","created_at":"2013-12-31T05:09:28Z","updated_at":"2016-04-23T09:58:06Z","pushed_at":"2016-04-28T18:52:06Z","git_url":"git://github.com/AffiliateWP/AffiliateWP.git","ssh_url":"git@github.com:AffiliateWP/AffiliateWP.git","clone_url":"https://github.com/AffiliateWP/AffiliateWP.git","svn_url":"https://github.com/AffiliateWP/AffiliateWP","homepage":null,"size":7134,"stargazers_count":184,"watchers_count":184,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":84,"mirror_url":null,"open_issues_count":225,"forks":84,"open_issues":225,"watchers":184,"default_branch":"master"}},"base":{"label":"AffiliateWP:release/1.8","ref":"release/1.8","sha":"bf9f7c3b79a9d3172860ca2303eae3aa54d2d8c8","user":{"login":"AffiliateWP","id":7075307,"avatar_url":"https://avatars.githubusercontent.com/u/7075307?v=3","gravatar_id":"","url":"https://api.github.com/users/AffiliateWP","html_url":"https://github.com/AffiliateWP","followers_url":"https://api.github.com/users/AffiliateWP/followers","following_url":"https://api.github.com/users/AffiliateWP/following{/other_user}","gists_url":"https://api.github.com/users/AffiliateWP/gists{/gist_id}","starred_url":"https://api.github.com/users/AffiliateWP/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AffiliateWP/subscriptions","organizations_url":"https://api.github.com/users/AffiliateWP/orgs","repos_url":"https://api.github.com/users/AffiliateWP/repos","events_url":"https://api.github.com/users/AffiliateWP/events{/privacy}","received_events_url":"https://api.github.com/users/AffiliateWP/received_events","type":"Organization","site_admin":false},"repo":{"id":15543455,"name":"AffiliateWP","full_name":"AffiliateWP/AffiliateWP","owner":{"login":"AffiliateWP","id":7075307,"avatar_url":"https://avatars.githubusercontent.com/u/7075307?v=3","gravatar_id":"","url":"https://api.github.com/users/AffiliateWP","html_url":"https://github.com/AffiliateWP","followers_url":"https://api.github.com/users/AffiliateWP/followers","following_url":"https://api.github.com/users/AffiliateWP/following{/other_user}","gists_url":"https://api.github.com/users/AffiliateWP/gists{/gist_id}","starred_url":"https://api.github.com/users/AffiliateWP/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AffiliateWP/subscriptions","organizations_url":"https://api.github.com/users/AffiliateWP/orgs","repos_url":"https://api.github.com/users/AffiliateWP/repos","events_url":"https://api.github.com/users/AffiliateWP/events{/privacy}","received_events_url":"https://api.github.com/users/AffiliateWP/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/AffiliateWP/AffiliateWP","description":"Affiliate plugin for WordPress","fork":false,"url":"https://api.github.com/repos/AffiliateWP/AffiliateWP","forks_url":"https://api.github.com/repos/AffiliateWP/AffiliateWP/forks","keys_url":"https://api.github.com/repos/AffiliateWP/AffiliateWP/keys{/key_id}","collaborators_url":"https://api.github.com/repos/AffiliateWP/AffiliateWP/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/AffiliateWP/AffiliateWP/teams","hooks_url":"https://api.github.com/repos/AffiliateWP/AffiliateWP/hooks","issue_events_url":"https://api.github.com/repos/AffiliateWP/AffiliateWP/issues/events{/number}","events_url":"https://api.github.com/repos/AffiliateWP/AffiliateWP/events","assignees_url":"https://api.github.com/repos/AffiliateWP/AffiliateWP/assignees{/user}","branches_url":"https://api.github.com/repos/AffiliateWP/AffiliateWP/branches{/branch}","tags_url":"https://api.github.com/repos/AffiliateWP/AffiliateWP/tags","blobs_url":"https://api.github.com/repos/AffiliateWP/AffiliateWP/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/AffiliateWP/AffiliateWP/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/AffiliateWP/AffiliateWP/git/refs{/sha}","trees_url":"https://api.github.com/repos/AffiliateWP/AffiliateWP/git/trees{/sha}","statuses_url":"https://api.github.com/repos/AffiliateWP/AffiliateWP/statuses/{sha}","languages_url":"https://api.github.com/repos/AffiliateWP/AffiliateWP/languages","stargazers_url":"https://api.github.com/repos/AffiliateWP/AffiliateWP/stargazers","contributors_url":"https://api.github.com/repos/AffiliateWP/AffiliateWP/contributors","subscribers_url":"https://api.github.com/repos/AffiliateWP/AffiliateWP/subscribers","subscription_url":"https://api.github.com/repos/AffiliateWP/AffiliateWP/subscription","commits_url":"https://api.github.com/repos/AffiliateWP/AffiliateWP/commits{/sha}","git_commits_url":"https://api.github.com/repos/AffiliateWP/AffiliateWP/git/commits{/sha}","comments_url":"https://api.github.com/repos/AffiliateWP/AffiliateWP/comments{/number}","issue_comment_url":"https://api.github.com/repos/AffiliateWP/AffiliateWP/issues/comments{/number}","contents_url":"https://api.github.com/repos/AffiliateWP/AffiliateWP/contents/{+path}","compare_url":"https://api.github.com/repos/AffiliateWP/AffiliateWP/compare/{base}...{head}","merges_url":"https://api.github.com/repos/AffiliateWP/AffiliateWP/merges","archive_url":"https://api.github.com/repos/AffiliateWP/AffiliateWP/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/AffiliateWP/AffiliateWP/downloads","issues_url":"https://api.github.com/repos/AffiliateWP/AffiliateWP/issues{/number}","pulls_url":"https://api.github.com/repos/AffiliateWP/AffiliateWP/pulls{/number}","milestones_url":"https://api.github.com/repos/AffiliateWP/AffiliateWP/milestones{/number}","notifications_url":"https://api.github.com/repos/AffiliateWP/AffiliateWP/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/AffiliateWP/AffiliateWP/labels{/name}","releases_url":"https://api.github.com/repos/AffiliateWP/AffiliateWP/releases{/id}","deployments_url":"https://api.github.com/repos/AffiliateWP/AffiliateWP/deployments","created_at":"2013-12-31T05:09:28Z","updated_at":"2016-04-23T09:58:06Z","pushed_at":"2016-04-28T18:52:06Z","git_url":"git://github.com/AffiliateWP/AffiliateWP.git","ssh_url":"git@github.com:AffiliateWP/AffiliateWP.git","clone_url":"https://github.com/AffiliateWP/AffiliateWP.git","svn_url":"https://github.com/AffiliateWP/AffiliateWP","homepage":null,"size":7134,"stargazers_count":184,"watchers_count":184,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":84,"mirror_url":null,"open_issues_count":225,"forks":84,"open_issues":225,"watchers":184,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/AffiliateWP/AffiliateWP/pulls/1226"},"html":{"href":"https://github.com/AffiliateWP/AffiliateWP/pull/1226"},"issue":{"href":"https://api.github.com/repos/AffiliateWP/AffiliateWP/issues/1226"},"comments":{"href":"https://api.github.com/repos/AffiliateWP/AffiliateWP/issues/1226/comments"},"review_comments":{"href":"https://api.github.com/repos/AffiliateWP/AffiliateWP/pulls/1226/comments"},"review_comment":{"href":"https://api.github.com/repos/AffiliateWP/AffiliateWP/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/AffiliateWP/AffiliateWP/pulls/1226/commits"},"statuses":{"href":"https://api.github.com/repos/AffiliateWP/AffiliateWP/statuses/f48e3e0314843b6ce80534c2246f43000424d53d"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"pippinsplugins","id":1034109,"avatar_url":"https://avatars.githubusercontent.com/u/1034109?v=3","gravatar_id":"","url":"https://api.github.com/users/pippinsplugins","html_url":"https://github.com/pippinsplugins","followers_url":"https://api.github.com/users/pippinsplugins/followers","following_url":"https://api.github.com/users/pippinsplugins/following{/other_user}","gists_url":"https://api.github.com/users/pippinsplugins/gists{/gist_id}","starred_url":"https://api.github.com/users/pippinsplugins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pippinsplugins/subscriptions","organizations_url":"https://api.github.com/users/pippinsplugins/orgs","repos_url":"https://api.github.com/users/pippinsplugins/repos","events_url":"https://api.github.com/users/pippinsplugins/events{/privacy}","received_events_url":"https://api.github.com/users/pippinsplugins/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"commits":22,"additions":154,"deletions":5,"changed_files":2}}