{"action":"closed","number":29,"pull_request":{"url":"https://api.github.com/repos/azurestandard/api-spec/pulls/29","id":45237464,"html_url":"https://github.com/azurestandard/api-spec/pull/29","diff_url":"https://github.com/azurestandard/api-spec/pull/29.diff","patch_url":"https://github.com/azurestandard/api-spec/pull/29.patch","issue_url":"https://api.github.com/repos/azurestandard/api-spec/issues/29","number":29,"state":"closed","locked":false,"title":"public.json: Add person.price-level and a multi-level price object","user":{"login":"wking","id":209920,"avatar_url":"https://avatars.githubusercontent.com/u/209920?v=3","gravatar_id":"","url":"https://api.github.com/users/wking","html_url":"https://github.com/wking","followers_url":"https://api.github.com/users/wking/followers","following_url":"https://api.github.com/users/wking/following{/other_user}","gists_url":"https://api.github.com/users/wking/gists{/gist_id}","starred_url":"https://api.github.com/users/wking/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wking/subscriptions","organizations_url":"https://api.github.com/users/wking/orgs","repos_url":"https://api.github.com/users/wking/repos","events_url":"https://api.github.com/users/wking/events{/privacy}","received_events_url":"https://api.github.com/users/wking/received_events","type":"User","site_admin":false},"body":"This is a first step in our shift to more flexible pricing.  The\ncurrent API implementation checks the requester's price level and\nreturns the appropriate prices object (now _price, after this\ncommit). As we shift to Algolia for product searches, we'll need less\ndynamic pricing information, because Algolia isn't going to\nauthenticate reqeusters for us.  This commit associates\nrequester-independent pricing information with the packaged-products,\nand gives customers the information they need (via their /person or\n/person/{id} result) to select the appropriate price from the satic\npackaged-products information.\n\nIn the future, we will likely transition to a more\ncomplicated/flexible pricing model, with base-price information on\npackaged-products that's not price-level dependent (e.g. a base price\nand scaling coefficient).  Then the per-person information will\ninclude a formula for converting that person-independent information\ninto a price.  But this is too fuzzy to move toward at the moment, and\nwe need the person-independent information now ;).\n\nThis is part of my plan for allowing\nazurestandard/azure-angular-providers@82a3977 to land independent of\nthe rest of azurestandard/azure-angular-providers#7, and for keeping\nthe API as consistent with the Algolia data as possible.","created_at":"2015-09-16T23:42:21Z","updated_at":"2015-09-16T23:54:17Z","closed_at":"2015-09-16T23:54:17Z","merged_at":"2015-09-16T23:54:17Z","merge_commit_sha":"0b8dc18a5d57eb6ff86890d75cb09c8e6ca7f895","assignee":{"login":"MercenaryJosh","id":9069187,"avatar_url":"https://avatars.githubusercontent.com/u/9069187?v=3","gravatar_id":"","url":"https://api.github.com/users/MercenaryJosh","html_url":"https://github.com/MercenaryJosh","followers_url":"https://api.github.com/users/MercenaryJosh/followers","following_url":"https://api.github.com/users/MercenaryJosh/following{/other_user}","gists_url":"https://api.github.com/users/MercenaryJosh/gists{/gist_id}","starred_url":"https://api.github.com/users/MercenaryJosh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MercenaryJosh/subscriptions","organizations_url":"https://api.github.com/users/MercenaryJosh/orgs","repos_url":"https://api.github.com/users/MercenaryJosh/repos","events_url":"https://api.github.com/users/MercenaryJosh/events{/privacy}","received_events_url":"https://api.github.com/users/MercenaryJosh/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/azurestandard/api-spec/pulls/29/commits","review_comments_url":"https://api.github.com/repos/azurestandard/api-spec/pulls/29/comments","review_comment_url":"https://api.github.com/repos/azurestandard/api-spec/pulls/comments{/number}","comments_url":"https://api.github.com/repos/azurestandard/api-spec/issues/29/comments","statuses_url":"https://api.github.com/repos/azurestandard/api-spec/statuses/0186120727d9c194e5f8b459ad4396b66e96d060","head":{"label":"azurestandard:tk/multi-level-price","ref":"tk/multi-level-price","sha":"0186120727d9c194e5f8b459ad4396b66e96d060","user":{"login":"azurestandard","id":4581874,"avatar_url":"https://avatars.githubusercontent.com/u/4581874?v=3","gravatar_id":"","url":"https://api.github.com/users/azurestandard","html_url":"https://github.com/azurestandard","followers_url":"https://api.github.com/users/azurestandard/followers","following_url":"https://api.github.com/users/azurestandard/following{/other_user}","gists_url":"https://api.github.com/users/azurestandard/gists{/gist_id}","starred_url":"https://api.github.com/users/azurestandard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/azurestandard/subscriptions","organizations_url":"https://api.github.com/users/azurestandard/orgs","repos_url":"https://api.github.com/users/azurestandard/repos","events_url":"https://api.github.com/users/azurestandard/events{/privacy}","received_events_url":"https://api.github.com/users/azurestandard/received_events","type":"Organization","site_admin":false},"repo":{"id":26563142,"name":"api-spec","full_name":"azurestandard/api-spec","owner":{"login":"azurestandard","id":4581874,"avatar_url":"https://avatars.githubusercontent.com/u/4581874?v=3","gravatar_id":"","url":"https://api.github.com/users/azurestandard","html_url":"https://github.com/azurestandard","followers_url":"https://api.github.com/users/azurestandard/followers","following_url":"https://api.github.com/users/azurestandard/following{/other_user}","gists_url":"https://api.github.com/users/azurestandard/gists{/gist_id}","starred_url":"https://api.github.com/users/azurestandard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/azurestandard/subscriptions","organizations_url":"https://api.github.com/users/azurestandard/orgs","repos_url":"https://api.github.com/users/azurestandard/repos","events_url":"https://api.github.com/users/azurestandard/events{/privacy}","received_events_url":"https://api.github.com/users/azurestandard/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/azurestandard/api-spec","description":"Swagger specs for Azure's API","fork":false,"url":"https://api.github.com/repos/azurestandard/api-spec","forks_url":"https://api.github.com/repos/azurestandard/api-spec/forks","keys_url":"https://api.github.com/repos/azurestandard/api-spec/keys{/key_id}","collaborators_url":"https://api.github.com/repos/azurestandard/api-spec/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/azurestandard/api-spec/teams","hooks_url":"https://api.github.com/repos/azurestandard/api-spec/hooks","issue_events_url":"https://api.github.com/repos/azurestandard/api-spec/issues/events{/number}","events_url":"https://api.github.com/repos/azurestandard/api-spec/events","assignees_url":"https://api.github.com/repos/azurestandard/api-spec/assignees{/user}","branches_url":"https://api.github.com/repos/azurestandard/api-spec/branches{/branch}","tags_url":"https://api.github.com/repos/azurestandard/api-spec/tags","blobs_url":"https://api.github.com/repos/azurestandard/api-spec/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/azurestandard/api-spec/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/azurestandard/api-spec/git/refs{/sha}","trees_url":"https://api.github.com/repos/azurestandard/api-spec/git/trees{/sha}","statuses_url":"https://api.github.com/repos/azurestandard/api-spec/statuses/{sha}","languages_url":"https://api.github.com/repos/azurestandard/api-spec/languages","stargazers_url":"https://api.github.com/repos/azurestandard/api-spec/stargazers","contributors_url":"https://api.github.com/repos/azurestandard/api-spec/contributors","subscribers_url":"https://api.github.com/repos/azurestandard/api-spec/subscribers","subscription_url":"https://api.github.com/repos/azurestandard/api-spec/subscription","commits_url":"https://api.github.com/repos/azurestandard/api-spec/commits{/sha}","git_commits_url":"https://api.github.com/repos/azurestandard/api-spec/git/commits{/sha}","comments_url":"https://api.github.com/repos/azurestandard/api-spec/comments{/number}","issue_comment_url":"https://api.github.com/repos/azurestandard/api-spec/issues/comments{/number}","contents_url":"https://api.github.com/repos/azurestandard/api-spec/contents/{+path}","compare_url":"https://api.github.com/repos/azurestandard/api-spec/compare/{base}...{head}","merges_url":"https://api.github.com/repos/azurestandard/api-spec/merges","archive_url":"https://api.github.com/repos/azurestandard/api-spec/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/azurestandard/api-spec/downloads","issues_url":"https://api.github.com/repos/azurestandard/api-spec/issues{/number}","pulls_url":"https://api.github.com/repos/azurestandard/api-spec/pulls{/number}","milestones_url":"https://api.github.com/repos/azurestandard/api-spec/milestones{/number}","notifications_url":"https://api.github.com/repos/azurestandard/api-spec/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/azurestandard/api-spec/labels{/name}","releases_url":"https://api.github.com/repos/azurestandard/api-spec/releases{/id}","created_at":"2014-11-13T00:35:58Z","updated_at":"2014-11-13T00:35:58Z","pushed_at":"2015-09-16T23:54:18Z","git_url":"git://github.com/azurestandard/api-spec.git","ssh_url":"git@github.com:azurestandard/api-spec.git","clone_url":"https://github.com/azurestandard/api-spec.git","svn_url":"https://github.com/azurestandard/api-spec","homepage":null,"size":876,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":4,"forks":0,"open_issues":4,"watchers":0,"default_branch":"master"}},"base":{"label":"azurestandard:master","ref":"master","sha":"bad41f6d64d1205d385c8f9ac0b340cc1f88e5f4","user":{"login":"azurestandard","id":4581874,"avatar_url":"https://avatars.githubusercontent.com/u/4581874?v=3","gravatar_id":"","url":"https://api.github.com/users/azurestandard","html_url":"https://github.com/azurestandard","followers_url":"https://api.github.com/users/azurestandard/followers","following_url":"https://api.github.com/users/azurestandard/following{/other_user}","gists_url":"https://api.github.com/users/azurestandard/gists{/gist_id}","starred_url":"https://api.github.com/users/azurestandard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/azurestandard/subscriptions","organizations_url":"https://api.github.com/users/azurestandard/orgs","repos_url":"https://api.github.com/users/azurestandard/repos","events_url":"https://api.github.com/users/azurestandard/events{/privacy}","received_events_url":"https://api.github.com/users/azurestandard/received_events","type":"Organization","site_admin":false},"repo":{"id":26563142,"name":"api-spec","full_name":"azurestandard/api-spec","owner":{"login":"azurestandard","id":4581874,"avatar_url":"https://avatars.githubusercontent.com/u/4581874?v=3","gravatar_id":"","url":"https://api.github.com/users/azurestandard","html_url":"https://github.com/azurestandard","followers_url":"https://api.github.com/users/azurestandard/followers","following_url":"https://api.github.com/users/azurestandard/following{/other_user}","gists_url":"https://api.github.com/users/azurestandard/gists{/gist_id}","starred_url":"https://api.github.com/users/azurestandard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/azurestandard/subscriptions","organizations_url":"https://api.github.com/users/azurestandard/orgs","repos_url":"https://api.github.com/users/azurestandard/repos","events_url":"https://api.github.com/users/azurestandard/events{/privacy}","received_events_url":"https://api.github.com/users/azurestandard/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/azurestandard/api-spec","description":"Swagger specs for Azure's API","fork":false,"url":"https://api.github.com/repos/azurestandard/api-spec","forks_url":"https://api.github.com/repos/azurestandard/api-spec/forks","keys_url":"https://api.github.com/repos/azurestandard/api-spec/keys{/key_id}","collaborators_url":"https://api.github.com/repos/azurestandard/api-spec/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/azurestandard/api-spec/teams","hooks_url":"https://api.github.com/repos/azurestandard/api-spec/hooks","issue_events_url":"https://api.github.com/repos/azurestandard/api-spec/issues/events{/number}","events_url":"https://api.github.com/repos/azurestandard/api-spec/events","assignees_url":"https://api.github.com/repos/azurestandard/api-spec/assignees{/user}","branches_url":"https://api.github.com/repos/azurestandard/api-spec/branches{/branch}","tags_url":"https://api.github.com/repos/azurestandard/api-spec/tags","blobs_url":"https://api.github.com/repos/azurestandard/api-spec/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/azurestandard/api-spec/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/azurestandard/api-spec/git/refs{/sha}","trees_url":"https://api.github.com/repos/azurestandard/api-spec/git/trees{/sha}","statuses_url":"https://api.github.com/repos/azurestandard/api-spec/statuses/{sha}","languages_url":"https://api.github.com/repos/azurestandard/api-spec/languages","stargazers_url":"https://api.github.com/repos/azurestandard/api-spec/stargazers","contributors_url":"https://api.github.com/repos/azurestandard/api-spec/contributors","subscribers_url":"https://api.github.com/repos/azurestandard/api-spec/subscribers","subscription_url":"https://api.github.com/repos/azurestandard/api-spec/subscription","commits_url":"https://api.github.com/repos/azurestandard/api-spec/commits{/sha}","git_commits_url":"https://api.github.com/repos/azurestandard/api-spec/git/commits{/sha}","comments_url":"https://api.github.com/repos/azurestandard/api-spec/comments{/number}","issue_comment_url":"https://api.github.com/repos/azurestandard/api-spec/issues/comments{/number}","contents_url":"https://api.github.com/repos/azurestandard/api-spec/contents/{+path}","compare_url":"https://api.github.com/repos/azurestandard/api-spec/compare/{base}...{head}","merges_url":"https://api.github.com/repos/azurestandard/api-spec/merges","archive_url":"https://api.github.com/repos/azurestandard/api-spec/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/azurestandard/api-spec/downloads","issues_url":"https://api.github.com/repos/azurestandard/api-spec/issues{/number}","pulls_url":"https://api.github.com/repos/azurestandard/api-spec/pulls{/number}","milestones_url":"https://api.github.com/repos/azurestandard/api-spec/milestones{/number}","notifications_url":"https://api.github.com/repos/azurestandard/api-spec/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/azurestandard/api-spec/labels{/name}","releases_url":"https://api.github.com/repos/azurestandard/api-spec/releases{/id}","created_at":"2014-11-13T00:35:58Z","updated_at":"2014-11-13T00:35:58Z","pushed_at":"2015-09-16T23:54:18Z","git_url":"git://github.com/azurestandard/api-spec.git","ssh_url":"git@github.com:azurestandard/api-spec.git","clone_url":"https://github.com/azurestandard/api-spec.git","svn_url":"https://github.com/azurestandard/api-spec","homepage":null,"size":876,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":4,"forks":0,"open_issues":4,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/azurestandard/api-spec/pulls/29"},"html":{"href":"https://github.com/azurestandard/api-spec/pull/29"},"issue":{"href":"https://api.github.com/repos/azurestandard/api-spec/issues/29"},"comments":{"href":"https://api.github.com/repos/azurestandard/api-spec/issues/29/comments"},"review_comments":{"href":"https://api.github.com/repos/azurestandard/api-spec/pulls/29/comments"},"review_comment":{"href":"https://api.github.com/repos/azurestandard/api-spec/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/azurestandard/api-spec/pulls/29/commits"},"statuses":{"href":"https://api.github.com/repos/azurestandard/api-spec/statuses/0186120727d9c194e5f8b459ad4396b66e96d060"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"MercenaryJosh","id":9069187,"avatar_url":"https://avatars.githubusercontent.com/u/9069187?v=3","gravatar_id":"","url":"https://api.github.com/users/MercenaryJosh","html_url":"https://github.com/MercenaryJosh","followers_url":"https://api.github.com/users/MercenaryJosh/followers","following_url":"https://api.github.com/users/MercenaryJosh/following{/other_user}","gists_url":"https://api.github.com/users/MercenaryJosh/gists{/gist_id}","starred_url":"https://api.github.com/users/MercenaryJosh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MercenaryJosh/subscriptions","organizations_url":"https://api.github.com/users/MercenaryJosh/orgs","repos_url":"https://api.github.com/users/MercenaryJosh/repos","events_url":"https://api.github.com/users/MercenaryJosh/events{/privacy}","received_events_url":"https://api.github.com/users/MercenaryJosh/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"commits":1,"additions":35,"deletions":2,"changed_files":1}}