{"action":"created","comment":{"url":"https://api.github.com/repos/Shopify/mobile-buy-sdk-android/pulls/comments/61431639","id":61431639,"diff_hunk":"@@ -0,0 +1,44 @@\n+/*\n+ * The MIT License (MIT)\n+ *\n+ * Copyright (c) 2015 Shopify Inc.\n+ *\n+ * Permission is hereby granted, free of charge, to any person obtaining a copy\n+ * of this software and associated documentation files (the \"Software\"), to deal\n+ * in the Software without restriction, including without limitation the rights\n+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n+ * copies of the Software, and to permit persons to whom the Software is\n+ * furnished to do so, subject to the following conditions:\n+ *\n+ * The above copyright notice and this permission notice shall be included in\n+ * all copies or substantial portions of the Software.\n+ *\n+ * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n+ * THE SOFTWARE.\n+ */\n+\n+package com.shopify.buy.model.internal;\n+\n+import com.google.gson.annotations.SerializedName;\n+\n+import java.util.HashMap;\n+\n+/**\n+ * Represents the token object associated with a payment request\n+ */\n+public class PaymentRequest {\n+\n+    @SerializedName(\"source\")\n+    private HashMap<String, String> paymentSessionIdMap;\n+\n+    public void setPaymentSessionId(String paymentSessionId) {\n+        paymentSessionIdMap = new HashMap<>();\n+        paymentSessionIdMap.put(\"session_id\", paymentSessionId);","path":"MobileBuy/buy/src/main/java/com/shopify/buy/model/internal/PaymentRequest.java","position":41,"original_position":41,"commit_id":"193e7d5ecc75ebeeed8be2589f5d462ea38e59c0","original_commit_id":"193e7d5ecc75ebeeed8be2589f5d462ea38e59c0","user":{"login":"krisorr","id":1737920,"avatar_url":"https://avatars.githubusercontent.com/u/1737920?v=3","gravatar_id":"","url":"https://api.github.com/users/krisorr","html_url":"https://github.com/krisorr","followers_url":"https://api.github.com/users/krisorr/followers","following_url":"https://api.github.com/users/krisorr/following{/other_user}","gists_url":"https://api.github.com/users/krisorr/gists{/gist_id}","starred_url":"https://api.github.com/users/krisorr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/krisorr/subscriptions","organizations_url":"https://api.github.com/users/krisorr/orgs","repos_url":"https://api.github.com/users/krisorr/repos","events_url":"https://api.github.com/users/krisorr/events{/privacy}","received_events_url":"https://api.github.com/users/krisorr/received_events","type":"User","site_admin":false},"body":"what would happen with a null paymentSessionId?","created_at":"2016-04-28T14:02:01Z","updated_at":"2016-04-28T14:02:01Z","html_url":"https://github.com/Shopify/mobile-buy-sdk-android/pull/70#discussion_r61431639","pull_request_url":"https://api.github.com/repos/Shopify/mobile-buy-sdk-android/pulls/70","_links":{"self":{"href":"https://api.github.com/repos/Shopify/mobile-buy-sdk-android/pulls/comments/61431639"},"html":{"href":"https://github.com/Shopify/mobile-buy-sdk-android/pull/70#discussion_r61431639"},"pull_request":{"href":"https://api.github.com/repos/Shopify/mobile-buy-sdk-android/pulls/70"}}},"pull_request":{"url":"https://api.github.com/repos/Shopify/mobile-buy-sdk-android/pulls/70","id":68127370,"html_url":"https://github.com/Shopify/mobile-buy-sdk-android/pull/70","diff_url":"https://github.com/Shopify/mobile-buy-sdk-android/pull/70.diff","patch_url":"https://github.com/Shopify/mobile-buy-sdk-android/pull/70.patch","issue_url":"https://api.github.com/repos/Shopify/mobile-buy-sdk-android/issues/70","number":70,"state":"open","locked":false,"title":"Task/checkout api v2","user":{"login":"JoshuaChing","id":5932487,"avatar_url":"https://avatars.githubusercontent.com/u/5932487?v=3","gravatar_id":"","url":"https://api.github.com/users/JoshuaChing","html_url":"https://github.com/JoshuaChing","followers_url":"https://api.github.com/users/JoshuaChing/followers","following_url":"https://api.github.com/users/JoshuaChing/following{/other_user}","gists_url":"https://api.github.com/users/JoshuaChing/gists{/gist_id}","starred_url":"https://api.github.com/users/JoshuaChing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JoshuaChing/subscriptions","organizations_url":"https://api.github.com/users/JoshuaChing/orgs","repos_url":"https://api.github.com/users/JoshuaChing/repos","events_url":"https://api.github.com/users/JoshuaChing/events{/privacy}","received_events_url":"https://api.github.com/users/JoshuaChing/received_events","type":"User","site_admin":false},"body":"# Update to latest Shopify Checkout API v2\r\n\r\nAddresses https://github.com/Shopify/mobile-buy-sdk-android/issues/44\r\n\r\nChanges:\r\n- buyClient.completeCheckout returns a Payment object instead of a Checkout object\r\n- polling for checkout status is no longer required\r\n- polling for shipping rates is no longer required\r\n- sample app and tests reflect the changes listed above\r\n- generated new mock responses\r\n\r\n@krisorr @yervantk @ivanfer \r\nplease review","created_at":"2016-04-27T21:23:37Z","updated_at":"2016-04-28T14:02:01Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c4da2a1e588f5beada214f4a879eeead8ea1434a","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Shopify/mobile-buy-sdk-android/pulls/70/commits","review_comments_url":"https://api.github.com/repos/Shopify/mobile-buy-sdk-android/pulls/70/comments","review_comment_url":"https://api.github.com/repos/Shopify/mobile-buy-sdk-android/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Shopify/mobile-buy-sdk-android/issues/70/comments","statuses_url":"https://api.github.com/repos/Shopify/mobile-buy-sdk-android/statuses/193e7d5ecc75ebeeed8be2589f5d462ea38e59c0","head":{"label":"Shopify:task/checkout_api_v2","ref":"task/checkout_api_v2","sha":"193e7d5ecc75ebeeed8be2589f5d462ea38e59c0","user":{"login":"Shopify","id":8085,"avatar_url":"https://avatars.githubusercontent.com/u/8085?v=3","gravatar_id":"","url":"https://api.github.com/users/Shopify","html_url":"https://github.com/Shopify","followers_url":"https://api.github.com/users/Shopify/followers","following_url":"https://api.github.com/users/Shopify/following{/other_user}","gists_url":"https://api.github.com/users/Shopify/gists{/gist_id}","starred_url":"https://api.github.com/users/Shopify/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Shopify/subscriptions","organizations_url":"https://api.github.com/users/Shopify/orgs","repos_url":"https://api.github.com/users/Shopify/repos","events_url":"https://api.github.com/users/Shopify/events{/privacy}","received_events_url":"https://api.github.com/users/Shopify/received_events","type":"Organization","site_admin":false},"repo":{"id":43315252,"name":"mobile-buy-sdk-android","full_name":"Shopify/mobile-buy-sdk-android","owner":{"login":"Shopify","id":8085,"avatar_url":"https://avatars.githubusercontent.com/u/8085?v=3","gravatar_id":"","url":"https://api.github.com/users/Shopify","html_url":"https://github.com/Shopify","followers_url":"https://api.github.com/users/Shopify/followers","following_url":"https://api.github.com/users/Shopify/following{/other_user}","gists_url":"https://api.github.com/users/Shopify/gists{/gist_id}","starred_url":"https://api.github.com/users/Shopify/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Shopify/subscriptions","organizations_url":"https://api.github.com/users/Shopify/orgs","repos_url":"https://api.github.com/users/Shopify/repos","events_url":"https://api.github.com/users/Shopify/events{/privacy}","received_events_url":"https://api.github.com/users/Shopify/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Shopify/mobile-buy-sdk-android","description":"Shopify’s Mobile Buy SDK makes it simple to sell physical products inside your mobile app. With a few lines of code, you can connect your app with the Shopify platform and let your users buy your products using their credit card.","fork":false,"url":"https://api.github.com/repos/Shopify/mobile-buy-sdk-android","forks_url":"https://api.github.com/repos/Shopify/mobile-buy-sdk-android/forks","keys_url":"https://api.github.com/repos/Shopify/mobile-buy-sdk-android/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Shopify/mobile-buy-sdk-android/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Shopify/mobile-buy-sdk-android/teams","hooks_url":"https://api.github.com/repos/Shopify/mobile-buy-sdk-android/hooks","issue_events_url":"https://api.github.com/repos/Shopify/mobile-buy-sdk-android/issues/events{/number}","events_url":"https://api.github.com/repos/Shopify/mobile-buy-sdk-android/events","assignees_url":"https://api.github.com/repos/Shopify/mobile-buy-sdk-android/assignees{/user}","branches_url":"https://api.github.com/repos/Shopify/mobile-buy-sdk-android/branches{/branch}","tags_url":"https://api.github.com/repos/Shopify/mobile-buy-sdk-android/tags","blobs_url":"https://api.github.com/repos/Shopify/mobile-buy-sdk-android/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Shopify/mobile-buy-sdk-android/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Shopify/mobile-buy-sdk-android/git/refs{/sha}","trees_url":"https://api.github.com/repos/Shopify/mobile-buy-sdk-android/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Shopify/mobile-buy-sdk-android/statuses/{sha}","languages_url":"https://api.github.com/repos/Shopify/mobile-buy-sdk-android/languages","stargazers_url":"https://api.github.com/repos/Shopify/mobile-buy-sdk-android/stargazers","contributors_url":"https://api.github.com/repos/Shopify/mobile-buy-sdk-android/contributors","subscribers_url":"https://api.github.com/repos/Shopify/mobile-buy-sdk-android/subscribers","subscription_url":"https://api.github.com/repos/Shopify/mobile-buy-sdk-android/subscription","commits_url":"https://api.github.com/repos/Shopify/mobile-buy-sdk-android/commits{/sha}","git_commits_url":"https://api.github.com/repos/Shopify/mobile-buy-sdk-android/git/commits{/sha}","comments_url":"https://api.github.com/repos/Shopify/mobile-buy-sdk-android/comments{/number}","issue_comment_url":"https://api.github.com/repos/Shopify/mobile-buy-sdk-android/issues/comments{/number}","contents_url":"https://api.github.com/repos/Shopify/mobile-buy-sdk-android/contents/{+path}","compare_url":"https://api.github.com/repos/Shopify/mobile-buy-sdk-android/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Shopify/mobile-buy-sdk-android/merges","archive_url":"https://api.github.com/repos/Shopify/mobile-buy-sdk-android/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Shopify/mobile-buy-sdk-android/downloads","issues_url":"https://api.github.com/repos/Shopify/mobile-buy-sdk-android/issues{/number}","pulls_url":"https://api.github.com/repos/Shopify/mobile-buy-sdk-android/pulls{/number}","milestones_url":"https://api.github.com/repos/Shopify/mobile-buy-sdk-android/milestones{/number}","notifications_url":"https://api.github.com/repos/Shopify/mobile-buy-sdk-android/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Shopify/mobile-buy-sdk-android/labels{/name}","releases_url":"https://api.github.com/repos/Shopify/mobile-buy-sdk-android/releases{/id}","deployments_url":"https://api.github.com/repos/Shopify/mobile-buy-sdk-android/deployments","created_at":"2015-09-28T17:19:37Z","updated_at":"2016-04-08T15:42:30Z","pushed_at":"2016-04-28T01:34:31Z","git_url":"git://github.com/Shopify/mobile-buy-sdk-android.git","ssh_url":"git@github.com:Shopify/mobile-buy-sdk-android.git","clone_url":"https://github.com/Shopify/mobile-buy-sdk-android.git","svn_url":"https://github.com/Shopify/mobile-buy-sdk-android","homepage":"","size":772,"stargazers_count":17,"watchers_count":17,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":11,"mirror_url":null,"open_issues_count":13,"forks":11,"open_issues":13,"watchers":17,"default_branch":"master"}},"base":{"label":"Shopify:version-2","ref":"version-2","sha":"ce3c69c766b78ccd5c2ea5585c686f5eb7429770","user":{"login":"Shopify","id":8085,"avatar_url":"https://avatars.githubusercontent.com/u/8085?v=3","gravatar_id":"","url":"https://api.github.com/users/Shopify","html_url":"https://github.com/Shopify","followers_url":"https://api.github.com/users/Shopify/followers","following_url":"https://api.github.com/users/Shopify/following{/other_user}","gists_url":"https://api.github.com/users/Shopify/gists{/gist_id}","starred_url":"https://api.github.com/users/Shopify/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Shopify/subscriptions","organizations_url":"https://api.github.com/users/Shopify/orgs","repos_url":"https://api.github.com/users/Shopify/repos","events_url":"https://api.github.com/users/Shopify/events{/privacy}","received_events_url":"https://api.github.com/users/Shopify/received_events","type":"Organization","site_admin":false},"repo":{"id":43315252,"name":"mobile-buy-sdk-android","full_name":"Shopify/mobile-buy-sdk-android","owner":{"login":"Shopify","id":8085,"avatar_url":"https://avatars.githubusercontent.com/u/8085?v=3","gravatar_id":"","url":"https://api.github.com/users/Shopify","html_url":"https://github.com/Shopify","followers_url":"https://api.github.com/users/Shopify/followers","following_url":"https://api.github.com/users/Shopify/following{/other_user}","gists_url":"https://api.github.com/users/Shopify/gists{/gist_id}","starred_url":"https://api.github.com/users/Shopify/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Shopify/subscriptions","organizations_url":"https://api.github.com/users/Shopify/orgs","repos_url":"https://api.github.com/users/Shopify/repos","events_url":"https://api.github.com/users/Shopify/events{/privacy}","received_events_url":"https://api.github.com/users/Shopify/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Shopify/mobile-buy-sdk-android","description":"Shopify’s Mobile Buy SDK makes it simple to sell physical products inside your mobile app. With a few lines of code, you can connect your app with the Shopify platform and let your users buy your products using their credit card.","fork":false,"url":"https://api.github.com/repos/Shopify/mobile-buy-sdk-android","forks_url":"https://api.github.com/repos/Shopify/mobile-buy-sdk-android/forks","keys_url":"https://api.github.com/repos/Shopify/mobile-buy-sdk-android/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Shopify/mobile-buy-sdk-android/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Shopify/mobile-buy-sdk-android/teams","hooks_url":"https://api.github.com/repos/Shopify/mobile-buy-sdk-android/hooks","issue_events_url":"https://api.github.com/repos/Shopify/mobile-buy-sdk-android/issues/events{/number}","events_url":"https://api.github.com/repos/Shopify/mobile-buy-sdk-android/events","assignees_url":"https://api.github.com/repos/Shopify/mobile-buy-sdk-android/assignees{/user}","branches_url":"https://api.github.com/repos/Shopify/mobile-buy-sdk-android/branches{/branch}","tags_url":"https://api.github.com/repos/Shopify/mobile-buy-sdk-android/tags","blobs_url":"https://api.github.com/repos/Shopify/mobile-buy-sdk-android/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Shopify/mobile-buy-sdk-android/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Shopify/mobile-buy-sdk-android/git/refs{/sha}","trees_url":"https://api.github.com/repos/Shopify/mobile-buy-sdk-android/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Shopify/mobile-buy-sdk-android/statuses/{sha}","languages_url":"https://api.github.com/repos/Shopify/mobile-buy-sdk-android/languages","stargazers_url":"https://api.github.com/repos/Shopify/mobile-buy-sdk-android/stargazers","contributors_url":"https://api.github.com/repos/Shopify/mobile-buy-sdk-android/contributors","subscribers_url":"https://api.github.com/repos/Shopify/mobile-buy-sdk-android/subscribers","subscription_url":"https://api.github.com/repos/Shopify/mobile-buy-sdk-android/subscription","commits_url":"https://api.github.com/repos/Shopify/mobile-buy-sdk-android/commits{/sha}","git_commits_url":"https://api.github.com/repos/Shopify/mobile-buy-sdk-android/git/commits{/sha}","comments_url":"https://api.github.com/repos/Shopify/mobile-buy-sdk-android/comments{/number}","issue_comment_url":"https://api.github.com/repos/Shopify/mobile-buy-sdk-android/issues/comments{/number}","contents_url":"https://api.github.com/repos/Shopify/mobile-buy-sdk-android/contents/{+path}","compare_url":"https://api.github.com/repos/Shopify/mobile-buy-sdk-android/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Shopify/mobile-buy-sdk-android/merges","archive_url":"https://api.github.com/repos/Shopify/mobile-buy-sdk-android/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Shopify/mobile-buy-sdk-android/downloads","issues_url":"https://api.github.com/repos/Shopify/mobile-buy-sdk-android/issues{/number}","pulls_url":"https://api.github.com/repos/Shopify/mobile-buy-sdk-android/pulls{/number}","milestones_url":"https://api.github.com/repos/Shopify/mobile-buy-sdk-android/milestones{/number}","notifications_url":"https://api.github.com/repos/Shopify/mobile-buy-sdk-android/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Shopify/mobile-buy-sdk-android/labels{/name}","releases_url":"https://api.github.com/repos/Shopify/mobile-buy-sdk-android/releases{/id}","deployments_url":"https://api.github.com/repos/Shopify/mobile-buy-sdk-android/deployments","created_at":"2015-09-28T17:19:37Z","updated_at":"2016-04-08T15:42:30Z","pushed_at":"2016-04-28T01:34:31Z","git_url":"git://github.com/Shopify/mobile-buy-sdk-android.git","ssh_url":"git@github.com:Shopify/mobile-buy-sdk-android.git","clone_url":"https://github.com/Shopify/mobile-buy-sdk-android.git","svn_url":"https://github.com/Shopify/mobile-buy-sdk-android","homepage":"","size":772,"stargazers_count":17,"watchers_count":17,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":11,"mirror_url":null,"open_issues_count":13,"forks":11,"open_issues":13,"watchers":17,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Shopify/mobile-buy-sdk-android/pulls/70"},"html":{"href":"https://github.com/Shopify/mobile-buy-sdk-android/pull/70"},"issue":{"href":"https://api.github.com/repos/Shopify/mobile-buy-sdk-android/issues/70"},"comments":{"href":"https://api.github.com/repos/Shopify/mobile-buy-sdk-android/issues/70/comments"},"review_comments":{"href":"https://api.github.com/repos/Shopify/mobile-buy-sdk-android/pulls/70/comments"},"review_comment":{"href":"https://api.github.com/repos/Shopify/mobile-buy-sdk-android/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Shopify/mobile-buy-sdk-android/pulls/70/commits"},"statuses":{"href":"https://api.github.com/repos/Shopify/mobile-buy-sdk-android/statuses/193e7d5ecc75ebeeed8be2589f5d462ea38e59c0"}}}}