{"action":"created","comment":{"url":"https://api.github.com/repos/sbilling/vibezapp/pulls/comments/133494465","pull_request_review_id":56681358,"id":133494465,"diff_hunk":"@@ -75,22 +76,38 @@ final class PrepayCoverController: UIViewController, EventDisplayable, PreCoverP\n     // MARK: - Actions\n     \n     @IBAction private func confirmCover() {\n-        if self.totalQuantity < 1 {\n-            UIAlertController.show(\"No Guests\", message: \"Please add at least one guest.\")\n-            return\n-        }\n+        if (event.venue.type != .ticket) {\n+            if self.totalQuantity < 1 {\n+                UIAlertController.show(\"No Guests\", message: \"Please add at least one guest.\")\n+                return\n+            }\n         \n-        let prePayButton = AlertButton(\"Pre-pay - \\(self.event.coverAheadCost.dollars())/person\", .default, {\n-            self.createPreCover(isPrePay: true)\n-        })\n-        let payNowButton = AlertButton(\"At door - \\(self.event.coverAtDoorCost.dollars())/person\", .default, {\n-            self.createPreCover(isPrePay: false)\n-        })\n-        let cancelButton = AlertButton(\"Cancel\", .cancel, nil)\n+            let prePayButton = AlertButton(\"Pre-pay - \\(self.event.coverAheadCost.dollars())/       person\", .default, {\n+                self.createPreCover(isPrePay: true)\n+            })\n+            let payNowButton = AlertButton(\"At door - \\(self.event.coverAtDoorCost.dollars())/person\", .default, {\n+                self.createPreCover(isPrePay: false)\n+            })\n+            let cancelButton = AlertButton(\"Cancel\", .cancel, nil)\n         \n-        UIAlertController.show(\"\\(self.totalQuantity) \\(\"Guest\".pluralized(self.totalQuantity))\",\n-            message: \"Pre-paying allows you to enter before midnight without waiting in line.\",\n-            buttons: [prePayButton, payNowButton, cancelButton], style: .actionSheet)\n+            UIAlertController.show(\"\\(self.totalQuantity) \\(\"Guest\".pluralized(self.totalQuantity))\",\n+                message: \"Pre-paying allows you to enter before midnight without waiting in line.\",\n+                buttons: [prePayButton, payNowButton, cancelButton], style: .actionSheet)\n+        } else {\n+            if self.totalQuantity < 1 {\n+                UIAlertController.show(\"No Tickets\", message: \"Please select at least one ticket.\")\n+                return\n+            }\n+            \n+            let ticketPurchaseButton = AlertButton(\"Confirm\", .default, {\n+                self.createPreCover(isPrePay: true)\n+            })\n+            let cancelButton = AlertButton(\"Cancel\", .cancel, nil)\n+            \n+            UIAlertController.show(\"\\(self.totalQuantity) \\(\"Tickets\".pluralized(self.totalQuantity))\", message: \"Ticket Cost: \\(event.coverAheadCost.dollars())\",","path":"Vibez/View Controllers/Consumer/PrepayCoverController.swift","position":54,"original_position":54,"commit_id":"e0f905c4072edca2dd9f56f234a071aeacb01b9c","original_commit_id":"e0f905c4072edca2dd9f56f234a071aeacb01b9c","user":{"login":"rebello95","id":2643476,"avatar_url":"https://avatars1.githubusercontent.com/u/2643476?v=4","gravatar_id":"","url":"https://api.github.com/users/rebello95","html_url":"https://github.com/rebello95","followers_url":"https://api.github.com/users/rebello95/followers","following_url":"https://api.github.com/users/rebello95/following{/other_user}","gists_url":"https://api.github.com/users/rebello95/gists{/gist_id}","starred_url":"https://api.github.com/users/rebello95/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rebello95/subscriptions","organizations_url":"https://api.github.com/users/rebello95/orgs","repos_url":"https://api.github.com/users/rebello95/repos","events_url":"https://api.github.com/users/rebello95/events{/privacy}","received_events_url":"https://api.github.com/users/rebello95/received_events","type":"User","site_admin":false},"body":"over the 110 character limit, i'd add a newline between `, message`","created_at":"2017-08-16T16:05:47Z","updated_at":"2017-08-16T16:05:56Z","html_url":"https://github.com/sbilling/vibezapp/pull/5#discussion_r133494465","pull_request_url":"https://api.github.com/repos/sbilling/vibezapp/pulls/5","_links":{"self":{"href":"https://api.github.com/repos/sbilling/vibezapp/pulls/comments/133494465"},"html":{"href":"https://github.com/sbilling/vibezapp/pull/5#discussion_r133494465"},"pull_request":{"href":"https://api.github.com/repos/sbilling/vibezapp/pulls/5"}}},"pull_request":{"url":"https://api.github.com/repos/sbilling/vibezapp/pulls/5","id":135927161,"html_url":"https://github.com/sbilling/vibezapp/pull/5","diff_url":"https://github.com/sbilling/vibezapp/pull/5.diff","patch_url":"https://github.com/sbilling/vibezapp/pull/5.patch","issue_url":"https://api.github.com/repos/sbilling/vibezapp/issues/5","number":5,"state":"open","locked":false,"title":"changed UIAlert for ticketing","user":{"login":"sbilling","id":15135737,"avatar_url":"https://avatars2.githubusercontent.com/u/15135737?v=4","gravatar_id":"","url":"https://api.github.com/users/sbilling","html_url":"https://github.com/sbilling","followers_url":"https://api.github.com/users/sbilling/followers","following_url":"https://api.github.com/users/sbilling/following{/other_user}","gists_url":"https://api.github.com/users/sbilling/gists{/gist_id}","starred_url":"https://api.github.com/users/sbilling/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sbilling/subscriptions","organizations_url":"https://api.github.com/users/sbilling/orgs","repos_url":"https://api.github.com/users/sbilling/repos","events_url":"https://api.github.com/users/sbilling/events{/privacy}","received_events_url":"https://api.github.com/users/sbilling/received_events","type":"User","site_admin":false},"body":"updated the UIAlert that appears when a ticket is being purchase. note: should not have door/precover selection because ticketing has only two price endpoints - male and female. ","created_at":"2017-08-16T02:05:27Z","updated_at":"2017-08-16T16:05:56Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d3724e51b811d3e2763628eb0df8de41bfdaa206","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/sbilling/vibezapp/pulls/5/commits","review_comments_url":"https://api.github.com/repos/sbilling/vibezapp/pulls/5/comments","review_comment_url":"https://api.github.com/repos/sbilling/vibezapp/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sbilling/vibezapp/issues/5/comments","statuses_url":"https://api.github.com/repos/sbilling/vibezapp/statuses/e0f905c4072edca2dd9f56f234a071aeacb01b9c","head":{"label":"sbilling:bug-fixes","ref":"bug-fixes","sha":"e0f905c4072edca2dd9f56f234a071aeacb01b9c","user":{"login":"sbilling","id":15135737,"avatar_url":"https://avatars2.githubusercontent.com/u/15135737?v=4","gravatar_id":"","url":"https://api.github.com/users/sbilling","html_url":"https://github.com/sbilling","followers_url":"https://api.github.com/users/sbilling/followers","following_url":"https://api.github.com/users/sbilling/following{/other_user}","gists_url":"https://api.github.com/users/sbilling/gists{/gist_id}","starred_url":"https://api.github.com/users/sbilling/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sbilling/subscriptions","organizations_url":"https://api.github.com/users/sbilling/orgs","repos_url":"https://api.github.com/users/sbilling/repos","events_url":"https://api.github.com/users/sbilling/events{/privacy}","received_events_url":"https://api.github.com/users/sbilling/received_events","type":"User","site_admin":false},"repo":{"id":76381269,"name":"vibezapp","full_name":"sbilling/vibezapp","owner":{"login":"sbilling","id":15135737,"avatar_url":"https://avatars2.githubusercontent.com/u/15135737?v=4","gravatar_id":"","url":"https://api.github.com/users/sbilling","html_url":"https://github.com/sbilling","followers_url":"https://api.github.com/users/sbilling/followers","following_url":"https://api.github.com/users/sbilling/following{/other_user}","gists_url":"https://api.github.com/users/sbilling/gists{/gist_id}","starred_url":"https://api.github.com/users/sbilling/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sbilling/subscriptions","organizations_url":"https://api.github.com/users/sbilling/orgs","repos_url":"https://api.github.com/users/sbilling/repos","events_url":"https://api.github.com/users/sbilling/events{/privacy}","received_events_url":"https://api.github.com/users/sbilling/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sbilling/vibezapp","description":"Repo for the Vibez mobile app","fork":false,"url":"https://api.github.com/repos/sbilling/vibezapp","forks_url":"https://api.github.com/repos/sbilling/vibezapp/forks","keys_url":"https://api.github.com/repos/sbilling/vibezapp/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sbilling/vibezapp/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sbilling/vibezapp/teams","hooks_url":"https://api.github.com/repos/sbilling/vibezapp/hooks","issue_events_url":"https://api.github.com/repos/sbilling/vibezapp/issues/events{/number}","events_url":"https://api.github.com/repos/sbilling/vibezapp/events","assignees_url":"https://api.github.com/repos/sbilling/vibezapp/assignees{/user}","branches_url":"https://api.github.com/repos/sbilling/vibezapp/branches{/branch}","tags_url":"https://api.github.com/repos/sbilling/vibezapp/tags","blobs_url":"https://api.github.com/repos/sbilling/vibezapp/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sbilling/vibezapp/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sbilling/vibezapp/git/refs{/sha}","trees_url":"https://api.github.com/repos/sbilling/vibezapp/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sbilling/vibezapp/statuses/{sha}","languages_url":"https://api.github.com/repos/sbilling/vibezapp/languages","stargazers_url":"https://api.github.com/repos/sbilling/vibezapp/stargazers","contributors_url":"https://api.github.com/repos/sbilling/vibezapp/contributors","subscribers_url":"https://api.github.com/repos/sbilling/vibezapp/subscribers","subscription_url":"https://api.github.com/repos/sbilling/vibezapp/subscription","commits_url":"https://api.github.com/repos/sbilling/vibezapp/commits{/sha}","git_commits_url":"https://api.github.com/repos/sbilling/vibezapp/git/commits{/sha}","comments_url":"https://api.github.com/repos/sbilling/vibezapp/comments{/number}","issue_comment_url":"https://api.github.com/repos/sbilling/vibezapp/issues/comments{/number}","contents_url":"https://api.github.com/repos/sbilling/vibezapp/contents/{+path}","compare_url":"https://api.github.com/repos/sbilling/vibezapp/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sbilling/vibezapp/merges","archive_url":"https://api.github.com/repos/sbilling/vibezapp/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sbilling/vibezapp/downloads","issues_url":"https://api.github.com/repos/sbilling/vibezapp/issues{/number}","pulls_url":"https://api.github.com/repos/sbilling/vibezapp/pulls{/number}","milestones_url":"https://api.github.com/repos/sbilling/vibezapp/milestones{/number}","notifications_url":"https://api.github.com/repos/sbilling/vibezapp/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sbilling/vibezapp/labels{/name}","releases_url":"https://api.github.com/repos/sbilling/vibezapp/releases{/id}","deployments_url":"https://api.github.com/repos/sbilling/vibezapp/deployments","created_at":"2016-12-13T17:14:12Z","updated_at":"2016-12-29T06:29:30Z","pushed_at":"2017-08-16T02:12:30Z","git_url":"git://github.com/sbilling/vibezapp.git","ssh_url":"git@github.com:sbilling/vibezapp.git","clone_url":"https://github.com/sbilling/vibezapp.git","svn_url":"https://github.com/sbilling/vibezapp","homepage":null,"size":202095,"stargazers_count":0,"watchers_count":0,"language":"Swift","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"sbilling:master","ref":"master","sha":"07a729926935733cd057c6b13727884e50c3aa65","user":{"login":"sbilling","id":15135737,"avatar_url":"https://avatars2.githubusercontent.com/u/15135737?v=4","gravatar_id":"","url":"https://api.github.com/users/sbilling","html_url":"https://github.com/sbilling","followers_url":"https://api.github.com/users/sbilling/followers","following_url":"https://api.github.com/users/sbilling/following{/other_user}","gists_url":"https://api.github.com/users/sbilling/gists{/gist_id}","starred_url":"https://api.github.com/users/sbilling/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sbilling/subscriptions","organizations_url":"https://api.github.com/users/sbilling/orgs","repos_url":"https://api.github.com/users/sbilling/repos","events_url":"https://api.github.com/users/sbilling/events{/privacy}","received_events_url":"https://api.github.com/users/sbilling/received_events","type":"User","site_admin":false},"repo":{"id":76381269,"name":"vibezapp","full_name":"sbilling/vibezapp","owner":{"login":"sbilling","id":15135737,"avatar_url":"https://avatars2.githubusercontent.com/u/15135737?v=4","gravatar_id":"","url":"https://api.github.com/users/sbilling","html_url":"https://github.com/sbilling","followers_url":"https://api.github.com/users/sbilling/followers","following_url":"https://api.github.com/users/sbilling/following{/other_user}","gists_url":"https://api.github.com/users/sbilling/gists{/gist_id}","starred_url":"https://api.github.com/users/sbilling/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sbilling/subscriptions","organizations_url":"https://api.github.com/users/sbilling/orgs","repos_url":"https://api.github.com/users/sbilling/repos","events_url":"https://api.github.com/users/sbilling/events{/privacy}","received_events_url":"https://api.github.com/users/sbilling/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sbilling/vibezapp","description":"Repo for the Vibez mobile app","fork":false,"url":"https://api.github.com/repos/sbilling/vibezapp","forks_url":"https://api.github.com/repos/sbilling/vibezapp/forks","keys_url":"https://api.github.com/repos/sbilling/vibezapp/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sbilling/vibezapp/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sbilling/vibezapp/teams","hooks_url":"https://api.github.com/repos/sbilling/vibezapp/hooks","issue_events_url":"https://api.github.com/repos/sbilling/vibezapp/issues/events{/number}","events_url":"https://api.github.com/repos/sbilling/vibezapp/events","assignees_url":"https://api.github.com/repos/sbilling/vibezapp/assignees{/user}","branches_url":"https://api.github.com/repos/sbilling/vibezapp/branches{/branch}","tags_url":"https://api.github.com/repos/sbilling/vibezapp/tags","blobs_url":"https://api.github.com/repos/sbilling/vibezapp/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sbilling/vibezapp/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sbilling/vibezapp/git/refs{/sha}","trees_url":"https://api.github.com/repos/sbilling/vibezapp/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sbilling/vibezapp/statuses/{sha}","languages_url":"https://api.github.com/repos/sbilling/vibezapp/languages","stargazers_url":"https://api.github.com/repos/sbilling/vibezapp/stargazers","contributors_url":"https://api.github.com/repos/sbilling/vibezapp/contributors","subscribers_url":"https://api.github.com/repos/sbilling/vibezapp/subscribers","subscription_url":"https://api.github.com/repos/sbilling/vibezapp/subscription","commits_url":"https://api.github.com/repos/sbilling/vibezapp/commits{/sha}","git_commits_url":"https://api.github.com/repos/sbilling/vibezapp/git/commits{/sha}","comments_url":"https://api.github.com/repos/sbilling/vibezapp/comments{/number}","issue_comment_url":"https://api.github.com/repos/sbilling/vibezapp/issues/comments{/number}","contents_url":"https://api.github.com/repos/sbilling/vibezapp/contents/{+path}","compare_url":"https://api.github.com/repos/sbilling/vibezapp/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sbilling/vibezapp/merges","archive_url":"https://api.github.com/repos/sbilling/vibezapp/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sbilling/vibezapp/downloads","issues_url":"https://api.github.com/repos/sbilling/vibezapp/issues{/number}","pulls_url":"https://api.github.com/repos/sbilling/vibezapp/pulls{/number}","milestones_url":"https://api.github.com/repos/sbilling/vibezapp/milestones{/number}","notifications_url":"https://api.github.com/repos/sbilling/vibezapp/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sbilling/vibezapp/labels{/name}","releases_url":"https://api.github.com/repos/sbilling/vibezapp/releases{/id}","deployments_url":"https://api.github.com/repos/sbilling/vibezapp/deployments","created_at":"2016-12-13T17:14:12Z","updated_at":"2016-12-29T06:29:30Z","pushed_at":"2017-08-16T02:12:30Z","git_url":"git://github.com/sbilling/vibezapp.git","ssh_url":"git@github.com:sbilling/vibezapp.git","clone_url":"https://github.com/sbilling/vibezapp.git","svn_url":"https://github.com/sbilling/vibezapp","homepage":null,"size":202095,"stargazers_count":0,"watchers_count":0,"language":"Swift","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/sbilling/vibezapp/pulls/5"},"html":{"href":"https://github.com/sbilling/vibezapp/pull/5"},"issue":{"href":"https://api.github.com/repos/sbilling/vibezapp/issues/5"},"comments":{"href":"https://api.github.com/repos/sbilling/vibezapp/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/sbilling/vibezapp/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/sbilling/vibezapp/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sbilling/vibezapp/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/sbilling/vibezapp/statuses/e0f905c4072edca2dd9f56f234a071aeacb01b9c"}}}}
{"actor":{"display_login":"rebello95"}}