{"action":"closed","number":10,"pull_request":{"url":"https://api.github.com/repos/PrestaShop/loyaltylion/pulls/10","id":35650074,"html_url":"https://github.com/PrestaShop/loyaltylion/pull/10","diff_url":"https://github.com/PrestaShop/loyaltylion/pull/10.diff","patch_url":"https://github.com/PrestaShop/loyaltylion/pull/10.patch","issue_url":"https://api.github.com/repos/PrestaShop/loyaltylion/issues/10","number":10,"state":"closed","locked":false,"title":"Email purchase tracking & discount code tracking","user":{"login":"clarkdave","id":729557,"avatar_url":"https://avatars.githubusercontent.com/u/729557?v=3","gravatar_id":"","url":"https://api.github.com/users/clarkdave","html_url":"https://github.com/clarkdave","followers_url":"https://api.github.com/users/clarkdave/followers","following_url":"https://api.github.com/users/clarkdave/following{/other_user}","gists_url":"https://api.github.com/users/clarkdave/gists{/gist_id}","starred_url":"https://api.github.com/users/clarkdave/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/clarkdave/subscriptions","organizations_url":"https://api.github.com/users/clarkdave/orgs","repos_url":"https://api.github.com/users/clarkdave/repos","events_url":"https://api.github.com/users/clarkdave/events{/privacy}","received_events_url":"https://api.github.com/users/clarkdave/received_events","type":"User","site_admin":false},"body":"We've recently added support for automated emails using LoyaltyLion. In order to effectively track the impact of these emails we've made a small change to the LoyaltyLion module so that it stores the `ll_eid` query parameter in the cookie and then sends it on when tracking activity or orders.\r\n\r\nThis PR also adds a minor improvement to our order tracking, so that it now sends through any discounts that were applied to an order when tracking it. This allows LoyaltyLion to mark vouchers as used in our system, once they've been applied to an order.","created_at":"2015-05-18T16:24:57Z","updated_at":"2015-05-19T12:53:21Z","closed_at":"2015-05-19T12:53:21Z","merged_at":"2015-05-19T12:53:21Z","merge_commit_sha":"a9676aea998b7c462467736bda404258e27e8a3b","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/PrestaShop/loyaltylion/pulls/10/commits","review_comments_url":"https://api.github.com/repos/PrestaShop/loyaltylion/pulls/10/comments","review_comment_url":"https://api.github.com/repos/PrestaShop/loyaltylion/pulls/comments{/number}","comments_url":"https://api.github.com/repos/PrestaShop/loyaltylion/issues/10/comments","statuses_url":"https://api.github.com/repos/PrestaShop/loyaltylion/statuses/3f88f106d98c7137e3e208da6a74638faf442cee","head":{"label":"loyaltylion:email_purchase_tracking","ref":"email_purchase_tracking","sha":"3f88f106d98c7137e3e208da6a74638faf442cee","user":{"login":"loyaltylion","id":3732273,"avatar_url":"https://avatars.githubusercontent.com/u/3732273?v=3","gravatar_id":"","url":"https://api.github.com/users/loyaltylion","html_url":"https://github.com/loyaltylion","followers_url":"https://api.github.com/users/loyaltylion/followers","following_url":"https://api.github.com/users/loyaltylion/following{/other_user}","gists_url":"https://api.github.com/users/loyaltylion/gists{/gist_id}","starred_url":"https://api.github.com/users/loyaltylion/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/loyaltylion/subscriptions","organizations_url":"https://api.github.com/users/loyaltylion/orgs","repos_url":"https://api.github.com/users/loyaltylion/repos","events_url":"https://api.github.com/users/loyaltylion/events{/privacy}","received_events_url":"https://api.github.com/users/loyaltylion/received_events","type":"Organization","site_admin":false},"repo":{"id":31199909,"name":"loyaltylion-prestashop","full_name":"loyaltylion/loyaltylion-prestashop","owner":{"login":"loyaltylion","id":3732273,"avatar_url":"https://avatars.githubusercontent.com/u/3732273?v=3","gravatar_id":"","url":"https://api.github.com/users/loyaltylion","html_url":"https://github.com/loyaltylion","followers_url":"https://api.github.com/users/loyaltylion/followers","following_url":"https://api.github.com/users/loyaltylion/following{/other_user}","gists_url":"https://api.github.com/users/loyaltylion/gists{/gist_id}","starred_url":"https://api.github.com/users/loyaltylion/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/loyaltylion/subscriptions","organizations_url":"https://api.github.com/users/loyaltylion/orgs","repos_url":"https://api.github.com/users/loyaltylion/repos","events_url":"https://api.github.com/users/loyaltylion/events{/privacy}","received_events_url":"https://api.github.com/users/loyaltylion/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/loyaltylion/loyaltylion-prestashop","description":"loyaltylion prestashop module","fork":true,"url":"https://api.github.com/repos/loyaltylion/loyaltylion-prestashop","forks_url":"https://api.github.com/repos/loyaltylion/loyaltylion-prestashop/forks","keys_url":"https://api.github.com/repos/loyaltylion/loyaltylion-prestashop/keys{/key_id}","collaborators_url":"https://api.github.com/repos/loyaltylion/loyaltylion-prestashop/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/loyaltylion/loyaltylion-prestashop/teams","hooks_url":"https://api.github.com/repos/loyaltylion/loyaltylion-prestashop/hooks","issue_events_url":"https://api.github.com/repos/loyaltylion/loyaltylion-prestashop/issues/events{/number}","events_url":"https://api.github.com/repos/loyaltylion/loyaltylion-prestashop/events","assignees_url":"https://api.github.com/repos/loyaltylion/loyaltylion-prestashop/assignees{/user}","branches_url":"https://api.github.com/repos/loyaltylion/loyaltylion-prestashop/branches{/branch}","tags_url":"https://api.github.com/repos/loyaltylion/loyaltylion-prestashop/tags","blobs_url":"https://api.github.com/repos/loyaltylion/loyaltylion-prestashop/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/loyaltylion/loyaltylion-prestashop/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/loyaltylion/loyaltylion-prestashop/git/refs{/sha}","trees_url":"https://api.github.com/repos/loyaltylion/loyaltylion-prestashop/git/trees{/sha}","statuses_url":"https://api.github.com/repos/loyaltylion/loyaltylion-prestashop/statuses/{sha}","languages_url":"https://api.github.com/repos/loyaltylion/loyaltylion-prestashop/languages","stargazers_url":"https://api.github.com/repos/loyaltylion/loyaltylion-prestashop/stargazers","contributors_url":"https://api.github.com/repos/loyaltylion/loyaltylion-prestashop/contributors","subscribers_url":"https://api.github.com/repos/loyaltylion/loyaltylion-prestashop/subscribers","subscription_url":"https://api.github.com/repos/loyaltylion/loyaltylion-prestashop/subscription","commits_url":"https://api.github.com/repos/loyaltylion/loyaltylion-prestashop/commits{/sha}","git_commits_url":"https://api.github.com/repos/loyaltylion/loyaltylion-prestashop/git/commits{/sha}","comments_url":"https://api.github.com/repos/loyaltylion/loyaltylion-prestashop/comments{/number}","issue_comment_url":"https://api.github.com/repos/loyaltylion/loyaltylion-prestashop/issues/comments{/number}","contents_url":"https://api.github.com/repos/loyaltylion/loyaltylion-prestashop/contents/{+path}","compare_url":"https://api.github.com/repos/loyaltylion/loyaltylion-prestashop/compare/{base}...{head}","merges_url":"https://api.github.com/repos/loyaltylion/loyaltylion-prestashop/merges","archive_url":"https://api.github.com/repos/loyaltylion/loyaltylion-prestashop/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/loyaltylion/loyaltylion-prestashop/downloads","issues_url":"https://api.github.com/repos/loyaltylion/loyaltylion-prestashop/issues{/number}","pulls_url":"https://api.github.com/repos/loyaltylion/loyaltylion-prestashop/pulls{/number}","milestones_url":"https://api.github.com/repos/loyaltylion/loyaltylion-prestashop/milestones{/number}","notifications_url":"https://api.github.com/repos/loyaltylion/loyaltylion-prestashop/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/loyaltylion/loyaltylion-prestashop/labels{/name}","releases_url":"https://api.github.com/repos/loyaltylion/loyaltylion-prestashop/releases{/id}","created_at":"2015-02-23T08:49:24Z","updated_at":"2015-04-26T18:04:22Z","pushed_at":"2015-05-18T16:22:30Z","git_url":"git://github.com/loyaltylion/loyaltylion-prestashop.git","ssh_url":"git@github.com:loyaltylion/loyaltylion-prestashop.git","clone_url":"https://github.com/loyaltylion/loyaltylion-prestashop.git","svn_url":"https://github.com/loyaltylion/loyaltylion-prestashop","homepage":"","size":768,"stargazers_count":0,"watchers_count":0,"language":"PHP","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":"PrestaShop:master","ref":"master","sha":"e464d0e7fed062d7ee5dd61f3f5881e9a191b02a","user":{"login":"PrestaShop","id":2815696,"avatar_url":"https://avatars.githubusercontent.com/u/2815696?v=3","gravatar_id":"","url":"https://api.github.com/users/PrestaShop","html_url":"https://github.com/PrestaShop","followers_url":"https://api.github.com/users/PrestaShop/followers","following_url":"https://api.github.com/users/PrestaShop/following{/other_user}","gists_url":"https://api.github.com/users/PrestaShop/gists{/gist_id}","starred_url":"https://api.github.com/users/PrestaShop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PrestaShop/subscriptions","organizations_url":"https://api.github.com/users/PrestaShop/orgs","repos_url":"https://api.github.com/users/PrestaShop/repos","events_url":"https://api.github.com/users/PrestaShop/events{/privacy}","received_events_url":"https://api.github.com/users/PrestaShop/received_events","type":"Organization","site_admin":false},"repo":{"id":25248388,"name":"loyaltylion","full_name":"PrestaShop/loyaltylion","owner":{"login":"PrestaShop","id":2815696,"avatar_url":"https://avatars.githubusercontent.com/u/2815696?v=3","gravatar_id":"","url":"https://api.github.com/users/PrestaShop","html_url":"https://github.com/PrestaShop","followers_url":"https://api.github.com/users/PrestaShop/followers","following_url":"https://api.github.com/users/PrestaShop/following{/other_user}","gists_url":"https://api.github.com/users/PrestaShop/gists{/gist_id}","starred_url":"https://api.github.com/users/PrestaShop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PrestaShop/subscriptions","organizations_url":"https://api.github.com/users/PrestaShop/orgs","repos_url":"https://api.github.com/users/PrestaShop/repos","events_url":"https://api.github.com/users/PrestaShop/events{/privacy}","received_events_url":"https://api.github.com/users/PrestaShop/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/PrestaShop/loyaltylion","description":"","fork":false,"url":"https://api.github.com/repos/PrestaShop/loyaltylion","forks_url":"https://api.github.com/repos/PrestaShop/loyaltylion/forks","keys_url":"https://api.github.com/repos/PrestaShop/loyaltylion/keys{/key_id}","collaborators_url":"https://api.github.com/repos/PrestaShop/loyaltylion/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/PrestaShop/loyaltylion/teams","hooks_url":"https://api.github.com/repos/PrestaShop/loyaltylion/hooks","issue_events_url":"https://api.github.com/repos/PrestaShop/loyaltylion/issues/events{/number}","events_url":"https://api.github.com/repos/PrestaShop/loyaltylion/events","assignees_url":"https://api.github.com/repos/PrestaShop/loyaltylion/assignees{/user}","branches_url":"https://api.github.com/repos/PrestaShop/loyaltylion/branches{/branch}","tags_url":"https://api.github.com/repos/PrestaShop/loyaltylion/tags","blobs_url":"https://api.github.com/repos/PrestaShop/loyaltylion/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/PrestaShop/loyaltylion/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/PrestaShop/loyaltylion/git/refs{/sha}","trees_url":"https://api.github.com/repos/PrestaShop/loyaltylion/git/trees{/sha}","statuses_url":"https://api.github.com/repos/PrestaShop/loyaltylion/statuses/{sha}","languages_url":"https://api.github.com/repos/PrestaShop/loyaltylion/languages","stargazers_url":"https://api.github.com/repos/PrestaShop/loyaltylion/stargazers","contributors_url":"https://api.github.com/repos/PrestaShop/loyaltylion/contributors","subscribers_url":"https://api.github.com/repos/PrestaShop/loyaltylion/subscribers","subscription_url":"https://api.github.com/repos/PrestaShop/loyaltylion/subscription","commits_url":"https://api.github.com/repos/PrestaShop/loyaltylion/commits{/sha}","git_commits_url":"https://api.github.com/repos/PrestaShop/loyaltylion/git/commits{/sha}","comments_url":"https://api.github.com/repos/PrestaShop/loyaltylion/comments{/number}","issue_comment_url":"https://api.github.com/repos/PrestaShop/loyaltylion/issues/comments{/number}","contents_url":"https://api.github.com/repos/PrestaShop/loyaltylion/contents/{+path}","compare_url":"https://api.github.com/repos/PrestaShop/loyaltylion/compare/{base}...{head}","merges_url":"https://api.github.com/repos/PrestaShop/loyaltylion/merges","archive_url":"https://api.github.com/repos/PrestaShop/loyaltylion/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/PrestaShop/loyaltylion/downloads","issues_url":"https://api.github.com/repos/PrestaShop/loyaltylion/issues{/number}","pulls_url":"https://api.github.com/repos/PrestaShop/loyaltylion/pulls{/number}","milestones_url":"https://api.github.com/repos/PrestaShop/loyaltylion/milestones{/number}","notifications_url":"https://api.github.com/repos/PrestaShop/loyaltylion/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/PrestaShop/loyaltylion/labels{/name}","releases_url":"https://api.github.com/repos/PrestaShop/loyaltylion/releases{/id}","created_at":"2014-10-15T09:44:11Z","updated_at":"2015-04-17T08:20:02Z","pushed_at":"2015-05-19T12:53:21Z","git_url":"git://github.com/PrestaShop/loyaltylion.git","ssh_url":"git@github.com:PrestaShop/loyaltylion.git","clone_url":"https://github.com/PrestaShop/loyaltylion.git","svn_url":"https://github.com/PrestaShop/loyaltylion","homepage":null,"size":899,"stargazers_count":1,"watchers_count":1,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":1,"forks":4,"open_issues":1,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/PrestaShop/loyaltylion/pulls/10"},"html":{"href":"https://github.com/PrestaShop/loyaltylion/pull/10"},"issue":{"href":"https://api.github.com/repos/PrestaShop/loyaltylion/issues/10"},"comments":{"href":"https://api.github.com/repos/PrestaShop/loyaltylion/issues/10/comments"},"review_comments":{"href":"https://api.github.com/repos/PrestaShop/loyaltylion/pulls/10/comments"},"review_comment":{"href":"https://api.github.com/repos/PrestaShop/loyaltylion/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/PrestaShop/loyaltylion/pulls/10/commits"},"statuses":{"href":"https://api.github.com/repos/PrestaShop/loyaltylion/statuses/3f88f106d98c7137e3e208da6a74638faf442cee"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"Quetzacoalt91","id":6768917,"avatar_url":"https://avatars.githubusercontent.com/u/6768917?v=3","gravatar_id":"","url":"https://api.github.com/users/Quetzacoalt91","html_url":"https://github.com/Quetzacoalt91","followers_url":"https://api.github.com/users/Quetzacoalt91/followers","following_url":"https://api.github.com/users/Quetzacoalt91/following{/other_user}","gists_url":"https://api.github.com/users/Quetzacoalt91/gists{/gist_id}","starred_url":"https://api.github.com/users/Quetzacoalt91/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Quetzacoalt91/subscriptions","organizations_url":"https://api.github.com/users/Quetzacoalt91/orgs","repos_url":"https://api.github.com/users/Quetzacoalt91/repos","events_url":"https://api.github.com/users/Quetzacoalt91/events{/privacy}","received_events_url":"https://api.github.com/users/Quetzacoalt91/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"commits":3,"additions":69,"deletions":6,"changed_files":2}}