{"action":"created","comment":{"url":"https://api.github.com/repos/Shopify/mobile-buy-sdk-ios/pulls/comments/61781696","id":61781696,"diff_hunk":"@@ -0,0 +1,69 @@\n+//\n+//  NSArray+BUYAdditions.h\n+//  Mobile Buy SDK\n+//\n+//  Created by Shopify.\n+//  Copyright (c) 2015 Shopify Inc. All rights reserved.\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+#import <Foundation/Foundation.h>\n+\n+typedef id (^BUYObjectMap) (id);\n+\n+@interface NSArray (BUYAdditions)","path":"Mobile Buy SDK/Mobile Buy SDK/Utils/NSArray+BUYAdditions.h","position":31,"original_position":31,"commit_id":"0c38a914ed4be0da2350ebac320d4420a847729a","original_commit_id":"0c38a914ed4be0da2350ebac320d4420a847729a","user":{"login":"bgulanowski","id":186680,"avatar_url":"https://avatars.githubusercontent.com/u/186680?v=3","gravatar_id":"","url":"https://api.github.com/users/bgulanowski","html_url":"https://github.com/bgulanowski","followers_url":"https://api.github.com/users/bgulanowski/followers","following_url":"https://api.github.com/users/bgulanowski/following{/other_user}","gists_url":"https://api.github.com/users/bgulanowski/gists{/gist_id}","starred_url":"https://api.github.com/users/bgulanowski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bgulanowski/subscriptions","organizations_url":"https://api.github.com/users/bgulanowski/orgs","repos_url":"https://api.github.com/users/bgulanowski/repos","events_url":"https://api.github.com/users/bgulanowski/events{/privacy}","received_events_url":"https://api.github.com/users/bgulanowski/received_events","type":"User","site_admin":false},"body":"I don't think we need this category here. I can't find any use of the methods in this category in the other added code (although there is an `#import` for it…). If we can not do it here, that would be better.","created_at":"2016-05-02T18:36:27Z","updated_at":"2016-05-02T18:36:27Z","html_url":"https://github.com/Shopify/mobile-buy-sdk-ios/pull/133#discussion_r61781696","pull_request_url":"https://api.github.com/repos/Shopify/mobile-buy-sdk-ios/pulls/133","_links":{"self":{"href":"https://api.github.com/repos/Shopify/mobile-buy-sdk-ios/pulls/comments/61781696"},"html":{"href":"https://github.com/Shopify/mobile-buy-sdk-ios/pull/133#discussion_r61781696"},"pull_request":{"href":"https://api.github.com/repos/Shopify/mobile-buy-sdk-ios/pulls/133"}}},"pull_request":{"url":"https://api.github.com/repos/Shopify/mobile-buy-sdk-ios/pulls/133","id":68410894,"html_url":"https://github.com/Shopify/mobile-buy-sdk-ios/pull/133","diff_url":"https://github.com/Shopify/mobile-buy-sdk-ios/pull/133.diff","patch_url":"https://github.com/Shopify/mobile-buy-sdk-ios/pull/133.patch","issue_url":"https://api.github.com/repos/Shopify/mobile-buy-sdk-ios/issues/133","number":133,"state":"open","locked":false,"title":"Support for Customer API","user":{"login":"dbart01","id":5244861,"avatar_url":"https://avatars.githubusercontent.com/u/5244861?v=3","gravatar_id":"","url":"https://api.github.com/users/dbart01","html_url":"https://github.com/dbart01","followers_url":"https://api.github.com/users/dbart01/followers","following_url":"https://api.github.com/users/dbart01/following{/other_user}","gists_url":"https://api.github.com/users/dbart01/gists{/gist_id}","starred_url":"https://api.github.com/users/dbart01/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dbart01/subscriptions","organizations_url":"https://api.github.com/users/dbart01/orgs","repos_url":"https://api.github.com/users/dbart01/repos","events_url":"https://api.github.com/users/dbart01/events{/privacy}","received_events_url":"https://api.github.com/users/dbart01/received_events","type":"User","site_admin":false},"body":"#### What this does\r\n- Adds `BUYCustomer`\r\n- Adds `BUYAccountCredentials`\r\n- Adds customer API endpoints\r\n- Adds customer API tests\r\n- Converts `BUYError` to non-`NSError` object\r\n\r\nFixes #126 \r\n\r\n@bgulanowski @davidmuzi @gabrieloc ","created_at":"2016-04-29T18:07:08Z","updated_at":"2016-05-02T18:36:27Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f8206daf902cefda9f30575838ab29ceca65743f","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Shopify/mobile-buy-sdk-ios/pulls/133/commits","review_comments_url":"https://api.github.com/repos/Shopify/mobile-buy-sdk-ios/pulls/133/comments","review_comment_url":"https://api.github.com/repos/Shopify/mobile-buy-sdk-ios/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Shopify/mobile-buy-sdk-ios/issues/133/comments","statuses_url":"https://api.github.com/repos/Shopify/mobile-buy-sdk-ios/statuses/0c38a914ed4be0da2350ebac320d4420a847729a","head":{"label":"Shopify:feature/126-customer-api","ref":"feature/126-customer-api","sha":"0c38a914ed4be0da2350ebac320d4420a847729a","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":36382861,"name":"mobile-buy-sdk-ios","full_name":"Shopify/mobile-buy-sdk-ios","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-ios","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 Apple Pay or their credit card.","fork":false,"url":"https://api.github.com/repos/Shopify/mobile-buy-sdk-ios","forks_url":"https://api.github.com/repos/Shopify/mobile-buy-sdk-ios/forks","keys_url":"https://api.github.com/repos/Shopify/mobile-buy-sdk-ios/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Shopify/mobile-buy-sdk-ios/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Shopify/mobile-buy-sdk-ios/teams","hooks_url":"https://api.github.com/repos/Shopify/mobile-buy-sdk-ios/hooks","issue_events_url":"https://api.github.com/repos/Shopify/mobile-buy-sdk-ios/issues/events{/number}","events_url":"https://api.github.com/repos/Shopify/mobile-buy-sdk-ios/events","assignees_url":"https://api.github.com/repos/Shopify/mobile-buy-sdk-ios/assignees{/user}","branches_url":"https://api.github.com/repos/Shopify/mobile-buy-sdk-ios/branches{/branch}","tags_url":"https://api.github.com/repos/Shopify/mobile-buy-sdk-ios/tags","blobs_url":"https://api.github.com/repos/Shopify/mobile-buy-sdk-ios/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Shopify/mobile-buy-sdk-ios/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Shopify/mobile-buy-sdk-ios/git/refs{/sha}","trees_url":"https://api.github.com/repos/Shopify/mobile-buy-sdk-ios/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Shopify/mobile-buy-sdk-ios/statuses/{sha}","languages_url":"https://api.github.com/repos/Shopify/mobile-buy-sdk-ios/languages","stargazers_url":"https://api.github.com/repos/Shopify/mobile-buy-sdk-ios/stargazers","contributors_url":"https://api.github.com/repos/Shopify/mobile-buy-sdk-ios/contributors","subscribers_url":"https://api.github.com/repos/Shopify/mobile-buy-sdk-ios/subscribers","subscription_url":"https://api.github.com/repos/Shopify/mobile-buy-sdk-ios/subscription","commits_url":"https://api.github.com/repos/Shopify/mobile-buy-sdk-ios/commits{/sha}","git_commits_url":"https://api.github.com/repos/Shopify/mobile-buy-sdk-ios/git/commits{/sha}","comments_url":"https://api.github.com/repos/Shopify/mobile-buy-sdk-ios/comments{/number}","issue_comment_url":"https://api.github.com/repos/Shopify/mobile-buy-sdk-ios/issues/comments{/number}","contents_url":"https://api.github.com/repos/Shopify/mobile-buy-sdk-ios/contents/{+path}","compare_url":"https://api.github.com/repos/Shopify/mobile-buy-sdk-ios/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Shopify/mobile-buy-sdk-ios/merges","archive_url":"https://api.github.com/repos/Shopify/mobile-buy-sdk-ios/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Shopify/mobile-buy-sdk-ios/downloads","issues_url":"https://api.github.com/repos/Shopify/mobile-buy-sdk-ios/issues{/number}","pulls_url":"https://api.github.com/repos/Shopify/mobile-buy-sdk-ios/pulls{/number}","milestones_url":"https://api.github.com/repos/Shopify/mobile-buy-sdk-ios/milestones{/number}","notifications_url":"https://api.github.com/repos/Shopify/mobile-buy-sdk-ios/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Shopify/mobile-buy-sdk-ios/labels{/name}","releases_url":"https://api.github.com/repos/Shopify/mobile-buy-sdk-ios/releases{/id}","deployments_url":"https://api.github.com/repos/Shopify/mobile-buy-sdk-ios/deployments","created_at":"2015-05-27T17:12:56Z","updated_at":"2016-04-27T20:22:51Z","pushed_at":"2016-05-02T18:12:09Z","git_url":"git://github.com/Shopify/mobile-buy-sdk-ios.git","ssh_url":"git@github.com:Shopify/mobile-buy-sdk-ios.git","clone_url":"https://github.com/Shopify/mobile-buy-sdk-ios.git","svn_url":"https://github.com/Shopify/mobile-buy-sdk-ios","homepage":"","size":3673,"stargazers_count":52,"watchers_count":52,"language":"Objective-C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":21,"mirror_url":null,"open_issues_count":17,"forks":21,"open_issues":17,"watchers":52,"default_branch":"master"}},"base":{"label":"Shopify:develop","ref":"develop","sha":"abe6045a0705417deeb34248cde22d81834944b0","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":36382861,"name":"mobile-buy-sdk-ios","full_name":"Shopify/mobile-buy-sdk-ios","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-ios","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 Apple Pay or their credit card.","fork":false,"url":"https://api.github.com/repos/Shopify/mobile-buy-sdk-ios","forks_url":"https://api.github.com/repos/Shopify/mobile-buy-sdk-ios/forks","keys_url":"https://api.github.com/repos/Shopify/mobile-buy-sdk-ios/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Shopify/mobile-buy-sdk-ios/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Shopify/mobile-buy-sdk-ios/teams","hooks_url":"https://api.github.com/repos/Shopify/mobile-buy-sdk-ios/hooks","issue_events_url":"https://api.github.com/repos/Shopify/mobile-buy-sdk-ios/issues/events{/number}","events_url":"https://api.github.com/repos/Shopify/mobile-buy-sdk-ios/events","assignees_url":"https://api.github.com/repos/Shopify/mobile-buy-sdk-ios/assignees{/user}","branches_url":"https://api.github.com/repos/Shopify/mobile-buy-sdk-ios/branches{/branch}","tags_url":"https://api.github.com/repos/Shopify/mobile-buy-sdk-ios/tags","blobs_url":"https://api.github.com/repos/Shopify/mobile-buy-sdk-ios/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Shopify/mobile-buy-sdk-ios/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Shopify/mobile-buy-sdk-ios/git/refs{/sha}","trees_url":"https://api.github.com/repos/Shopify/mobile-buy-sdk-ios/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Shopify/mobile-buy-sdk-ios/statuses/{sha}","languages_url":"https://api.github.com/repos/Shopify/mobile-buy-sdk-ios/languages","stargazers_url":"https://api.github.com/repos/Shopify/mobile-buy-sdk-ios/stargazers","contributors_url":"https://api.github.com/repos/Shopify/mobile-buy-sdk-ios/contributors","subscribers_url":"https://api.github.com/repos/Shopify/mobile-buy-sdk-ios/subscribers","subscription_url":"https://api.github.com/repos/Shopify/mobile-buy-sdk-ios/subscription","commits_url":"https://api.github.com/repos/Shopify/mobile-buy-sdk-ios/commits{/sha}","git_commits_url":"https://api.github.com/repos/Shopify/mobile-buy-sdk-ios/git/commits{/sha}","comments_url":"https://api.github.com/repos/Shopify/mobile-buy-sdk-ios/comments{/number}","issue_comment_url":"https://api.github.com/repos/Shopify/mobile-buy-sdk-ios/issues/comments{/number}","contents_url":"https://api.github.com/repos/Shopify/mobile-buy-sdk-ios/contents/{+path}","compare_url":"https://api.github.com/repos/Shopify/mobile-buy-sdk-ios/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Shopify/mobile-buy-sdk-ios/merges","archive_url":"https://api.github.com/repos/Shopify/mobile-buy-sdk-ios/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Shopify/mobile-buy-sdk-ios/downloads","issues_url":"https://api.github.com/repos/Shopify/mobile-buy-sdk-ios/issues{/number}","pulls_url":"https://api.github.com/repos/Shopify/mobile-buy-sdk-ios/pulls{/number}","milestones_url":"https://api.github.com/repos/Shopify/mobile-buy-sdk-ios/milestones{/number}","notifications_url":"https://api.github.com/repos/Shopify/mobile-buy-sdk-ios/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Shopify/mobile-buy-sdk-ios/labels{/name}","releases_url":"https://api.github.com/repos/Shopify/mobile-buy-sdk-ios/releases{/id}","deployments_url":"https://api.github.com/repos/Shopify/mobile-buy-sdk-ios/deployments","created_at":"2015-05-27T17:12:56Z","updated_at":"2016-04-27T20:22:51Z","pushed_at":"2016-05-02T18:12:09Z","git_url":"git://github.com/Shopify/mobile-buy-sdk-ios.git","ssh_url":"git@github.com:Shopify/mobile-buy-sdk-ios.git","clone_url":"https://github.com/Shopify/mobile-buy-sdk-ios.git","svn_url":"https://github.com/Shopify/mobile-buy-sdk-ios","homepage":"","size":3673,"stargazers_count":52,"watchers_count":52,"language":"Objective-C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":21,"mirror_url":null,"open_issues_count":17,"forks":21,"open_issues":17,"watchers":52,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Shopify/mobile-buy-sdk-ios/pulls/133"},"html":{"href":"https://github.com/Shopify/mobile-buy-sdk-ios/pull/133"},"issue":{"href":"https://api.github.com/repos/Shopify/mobile-buy-sdk-ios/issues/133"},"comments":{"href":"https://api.github.com/repos/Shopify/mobile-buy-sdk-ios/issues/133/comments"},"review_comments":{"href":"https://api.github.com/repos/Shopify/mobile-buy-sdk-ios/pulls/133/comments"},"review_comment":{"href":"https://api.github.com/repos/Shopify/mobile-buy-sdk-ios/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Shopify/mobile-buy-sdk-ios/pulls/133/commits"},"statuses":{"href":"https://api.github.com/repos/Shopify/mobile-buy-sdk-ios/statuses/0c38a914ed4be0da2350ebac320d4420a847729a"}}}}