{"action":"opened","number":131,"pull_request":{"url":"https://api.github.com/repos/Shopify/mobile-buy-sdk-ios/pulls/131","id":68093983,"html_url":"https://github.com/Shopify/mobile-buy-sdk-ios/pull/131","diff_url":"https://github.com/Shopify/mobile-buy-sdk-ios/pull/131.diff","patch_url":"https://github.com/Shopify/mobile-buy-sdk-ios/pull/131.patch","issue_url":"https://api.github.com/repos/Shopify/mobile-buy-sdk-ios/issues/131","number":131,"state":"open","locked":false,"title":"Convert to automatically generated models","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":"# Purpose\r\n\r\nThis updates the existing models to inherit from the generated models, which are themselves based on a new managed object model file. Bespoke model classes are simplified, providing only custom functionality and overridden behaviour.\r\n\r\nJSON serialization is now automated using configuration from the model and a standard mapping, using extensions added in earlier pull request.\r\n\r\nVarious convenience model extensions, formerly found in categories, have been moved into the model files themselves.\r\n\r\nAdditional changes have been made to the BUYObject class to ensure models are correctly initialized.\r\n\r\nThis continues from previous work in #122 and #120 \r\n----\r\ncc @dbart01 @gabrieloc @davidmuzi ","created_at":"2016-04-27T17:38:43Z","updated_at":"2016-04-27T17:38:43Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Shopify/mobile-buy-sdk-ios/pulls/131/commits","review_comments_url":"https://api.github.com/repos/Shopify/mobile-buy-sdk-ios/pulls/131/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/131/comments","statuses_url":"https://api.github.com/repos/Shopify/mobile-buy-sdk-ios/statuses/0c43f8994292d0f670cc2898a44b96bd7c668b98","head":{"label":"Shopify:task/generated-models","ref":"task/generated-models","sha":"0c43f8994292d0f670cc2898a44b96bd7c668b98","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-24T20:45:50Z","pushed_at":"2016-04-27T17:25:54Z","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":3653,"stargazers_count":51,"watchers_count":51,"language":"Objective-C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":20,"mirror_url":null,"open_issues_count":14,"forks":20,"open_issues":14,"watchers":51,"default_branch":"master"}},"base":{"label":"Shopify:integration/sdk-2.0","ref":"integration/sdk-2.0","sha":"949f3d1379edb5c988b09452360d5d411293222c","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-24T20:45:50Z","pushed_at":"2016-04-27T17:25:54Z","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":3653,"stargazers_count":51,"watchers_count":51,"language":"Objective-C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":20,"mirror_url":null,"open_issues_count":14,"forks":20,"open_issues":14,"watchers":51,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Shopify/mobile-buy-sdk-ios/pulls/131"},"html":{"href":"https://github.com/Shopify/mobile-buy-sdk-ios/pull/131"},"issue":{"href":"https://api.github.com/repos/Shopify/mobile-buy-sdk-ios/issues/131"},"comments":{"href":"https://api.github.com/repos/Shopify/mobile-buy-sdk-ios/issues/131/comments"},"review_comments":{"href":"https://api.github.com/repos/Shopify/mobile-buy-sdk-ios/pulls/131/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/131/commits"},"statuses":{"href":"https://api.github.com/repos/Shopify/mobile-buy-sdk-ios/statuses/0c43f8994292d0f670cc2898a44b96bd7c668b98"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":15,"additions":7704,"deletions":1386,"changed_files":158}}