{"action":"created","comment":{"url":"https://api.github.com/repos/pagarme/artis/pulls/comments/194118311","pull_request_review_id":127237479,"id":194118311,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDE5NDExODMxMQ==","diff_hunk":"@@ -278,16 +281,23 @@ const request = (data) => {\n const prepare = (apiData) => {\n   const { key, transaction } = apiData\n   const amount = propOr(0, 'amount', transaction)\n+  const cardId = path(['creditCard', 'cardId'], apiData)\n \n   const installments = pathOr({}, [\n     'paymentConfig',\n     'creditcard',\n     'installments',\n   ], transaction)\n \n+  const willGetInstallments = ifElse(","path":"src/utils/strategies/pagarme.js","position":50,"original_position":38,"commit_id":"0297a6f9615508d8705014c87426ed5f60bed93d","original_commit_id":"0297a6f9615508d8705014c87426ed5f60bed93d","user":{"login":"thiagommedeiros","id":19213244,"node_id":"MDQ6VXNlcjE5MjEzMjQ0","avatar_url":"https://avatars0.githubusercontent.com/u/19213244?v=4","gravatar_id":"","url":"https://api.github.com/users/thiagommedeiros","html_url":"https://github.com/thiagommedeiros","followers_url":"https://api.github.com/users/thiagommedeiros/followers","following_url":"https://api.github.com/users/thiagommedeiros/following{/other_user}","gists_url":"https://api.github.com/users/thiagommedeiros/gists{/gist_id}","starred_url":"https://api.github.com/users/thiagommedeiros/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thiagommedeiros/subscriptions","organizations_url":"https://api.github.com/users/thiagommedeiros/orgs","repos_url":"https://api.github.com/users/thiagommedeiros/repos","events_url":"https://api.github.com/users/thiagommedeiros/events{/privacy}","received_events_url":"https://api.github.com/users/thiagommedeiros/received_events","type":"User","site_admin":false},"body":"Não seria melhor `shouldGetInstallments`?","created_at":"2018-06-08T16:51:03Z","updated_at":"2018-06-08T16:51:54Z","html_url":"https://github.com/pagarme/artis/pull/241#discussion_r194118311","pull_request_url":"https://api.github.com/repos/pagarme/artis/pulls/241","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/pagarme/artis/pulls/comments/194118311"},"html":{"href":"https://github.com/pagarme/artis/pull/241#discussion_r194118311"},"pull_request":{"href":"https://api.github.com/repos/pagarme/artis/pulls/241"}}},"pull_request":{"url":"https://api.github.com/repos/pagarme/artis/pulls/241","id":193157126,"node_id":"MDExOlB1bGxSZXF1ZXN0MTkzMTU3MTI2","html_url":"https://github.com/pagarme/artis/pull/241","diff_url":"https://github.com/pagarme/artis/pull/241.diff","patch_url":"https://github.com/pagarme/artis/pull/241.patch","issue_url":"https://api.github.com/repos/pagarme/artis/issues/241","number":241,"state":"open","locked":false,"title":"One Click Buy: Add option","user":{"login":"allangrds","id":4103305,"node_id":"MDQ6VXNlcjQxMDMzMDU=","avatar_url":"https://avatars1.githubusercontent.com/u/4103305?v=4","gravatar_id":"","url":"https://api.github.com/users/allangrds","html_url":"https://github.com/allangrds","followers_url":"https://api.github.com/users/allangrds/followers","following_url":"https://api.github.com/users/allangrds/following{/other_user}","gists_url":"https://api.github.com/users/allangrds/gists{/gist_id}","starred_url":"https://api.github.com/users/allangrds/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/allangrds/subscriptions","organizations_url":"https://api.github.com/users/allangrds/orgs","repos_url":"https://api.github.com/users/allangrds/repos","events_url":"https://api.github.com/users/allangrds/events{/privacy}","received_events_url":"https://api.github.com/users/allangrds/received_events","type":"User","site_admin":false},"body":"## Description\r\nBefore test this PR, review that https://github.com/pagarme/artis/pull/240\r\n\r\nUse pagarme-core branch `add/create-card-with-ek`\r\n\r\n### How to test\r\nInsert param `cardId` inside `configs`.\r\n\r\nCloses https://github.com/pagarme/mercurio/issues/217\r\n<!--\r\nThings to cite on the PR description:\r\n\r\n- Why is the PR needed\r\n- What the PR does\r\n- What are possible side effects\r\n- Additional information (related github issues, links, etc)\r\n\r\n  Example: This PR implements feature \"x\" so we can solve our payments problem. This PR closes #98928312874 (github issue)\r\n-->\r\n\r\n## Your checklist for this pull request\r\n\r\n:rotating_light: Please review this items for a good pull request. :four_leaf_clover:\r\n\r\n1. I've read the project's [Contributing Guidelines](CONTRIBUTING.md)\r\n1. My commits are well written and follow [pagarme/git-style-guide](https://github.com/pagarme/git-style-guide)\r\n1. My changes are well covered by **tests** and **logs**\r\n1. I've updated the project docs (if needed)\r\n1. I fell safe about this implementation\r\n\r\nIn a good pull request, everything above is true :relaxed:\r\n","created_at":"2018-06-06T22:22:49Z","updated_at":"2018-06-08T16:51:54Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5c51dab22e0466fca0966f114c60603848d8d826","assignee":{"login":"allangrds","id":4103305,"node_id":"MDQ6VXNlcjQxMDMzMDU=","avatar_url":"https://avatars1.githubusercontent.com/u/4103305?v=4","gravatar_id":"","url":"https://api.github.com/users/allangrds","html_url":"https://github.com/allangrds","followers_url":"https://api.github.com/users/allangrds/followers","following_url":"https://api.github.com/users/allangrds/following{/other_user}","gists_url":"https://api.github.com/users/allangrds/gists{/gist_id}","starred_url":"https://api.github.com/users/allangrds/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/allangrds/subscriptions","organizations_url":"https://api.github.com/users/allangrds/orgs","repos_url":"https://api.github.com/users/allangrds/repos","events_url":"https://api.github.com/users/allangrds/events{/privacy}","received_events_url":"https://api.github.com/users/allangrds/received_events","type":"User","site_admin":false},"assignees":[{"login":"allangrds","id":4103305,"node_id":"MDQ6VXNlcjQxMDMzMDU=","avatar_url":"https://avatars1.githubusercontent.com/u/4103305?v=4","gravatar_id":"","url":"https://api.github.com/users/allangrds","html_url":"https://github.com/allangrds","followers_url":"https://api.github.com/users/allangrds/followers","following_url":"https://api.github.com/users/allangrds/following{/other_user}","gists_url":"https://api.github.com/users/allangrds/gists{/gist_id}","starred_url":"https://api.github.com/users/allangrds/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/allangrds/subscriptions","organizations_url":"https://api.github.com/users/allangrds/orgs","repos_url":"https://api.github.com/users/allangrds/repos","events_url":"https://api.github.com/users/allangrds/events{/privacy}","received_events_url":"https://api.github.com/users/allangrds/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":805580302,"node_id":"MDU6TGFiZWw4MDU1ODAzMDI=","url":"https://api.github.com/repos/pagarme/artis/labels/improvement","name":"improvement","color":"bfdadc","default":false},{"id":762485681,"node_id":"MDU6TGFiZWw3NjI0ODU2ODE=","url":"https://api.github.com/repos/pagarme/artis/labels/waiting%20review","name":"waiting review","color":"fbca04","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/pagarme/artis/pulls/241/commits","review_comments_url":"https://api.github.com/repos/pagarme/artis/pulls/241/comments","review_comment_url":"https://api.github.com/repos/pagarme/artis/pulls/comments{/number}","comments_url":"https://api.github.com/repos/pagarme/artis/issues/241/comments","statuses_url":"https://api.github.com/repos/pagarme/artis/statuses/0297a6f9615508d8705014c87426ed5f60bed93d","head":{"label":"pagarme:add/one-click-buy","ref":"add/one-click-buy","sha":"0297a6f9615508d8705014c87426ed5f60bed93d","user":{"login":"pagarme","id":3846050,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM4NDYwNTA=","avatar_url":"https://avatars2.githubusercontent.com/u/3846050?v=4","gravatar_id":"","url":"https://api.github.com/users/pagarme","html_url":"https://github.com/pagarme","followers_url":"https://api.github.com/users/pagarme/followers","following_url":"https://api.github.com/users/pagarme/following{/other_user}","gists_url":"https://api.github.com/users/pagarme/gists{/gist_id}","starred_url":"https://api.github.com/users/pagarme/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pagarme/subscriptions","organizations_url":"https://api.github.com/users/pagarme/orgs","repos_url":"https://api.github.com/users/pagarme/repos","events_url":"https://api.github.com/users/pagarme/events{/privacy}","received_events_url":"https://api.github.com/users/pagarme/received_events","type":"Organization","site_admin":false},"repo":{"id":104494408,"node_id":"MDEwOlJlcG9zaXRvcnkxMDQ0OTQ0MDg=","name":"artis","full_name":"pagarme/artis","owner":{"login":"pagarme","id":3846050,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM4NDYwNTA=","avatar_url":"https://avatars2.githubusercontent.com/u/3846050?v=4","gravatar_id":"","url":"https://api.github.com/users/pagarme","html_url":"https://github.com/pagarme","followers_url":"https://api.github.com/users/pagarme/followers","following_url":"https://api.github.com/users/pagarme/following{/other_user}","gists_url":"https://api.github.com/users/pagarme/gists{/gist_id}","starred_url":"https://api.github.com/users/pagarme/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pagarme/subscriptions","organizations_url":"https://api.github.com/users/pagarme/orgs","repos_url":"https://api.github.com/users/pagarme/repos","events_url":"https://api.github.com/users/pagarme/events{/privacy}","received_events_url":"https://api.github.com/users/pagarme/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/pagarme/artis","description":":credit_card: Projeto de Checkout desenvolvido em parceria entre MundiPagg e Pagar.me.","fork":false,"url":"https://api.github.com/repos/pagarme/artis","forks_url":"https://api.github.com/repos/pagarme/artis/forks","keys_url":"https://api.github.com/repos/pagarme/artis/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pagarme/artis/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pagarme/artis/teams","hooks_url":"https://api.github.com/repos/pagarme/artis/hooks","issue_events_url":"https://api.github.com/repos/pagarme/artis/issues/events{/number}","events_url":"https://api.github.com/repos/pagarme/artis/events","assignees_url":"https://api.github.com/repos/pagarme/artis/assignees{/user}","branches_url":"https://api.github.com/repos/pagarme/artis/branches{/branch}","tags_url":"https://api.github.com/repos/pagarme/artis/tags","blobs_url":"https://api.github.com/repos/pagarme/artis/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pagarme/artis/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pagarme/artis/git/refs{/sha}","trees_url":"https://api.github.com/repos/pagarme/artis/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pagarme/artis/statuses/{sha}","languages_url":"https://api.github.com/repos/pagarme/artis/languages","stargazers_url":"https://api.github.com/repos/pagarme/artis/stargazers","contributors_url":"https://api.github.com/repos/pagarme/artis/contributors","subscribers_url":"https://api.github.com/repos/pagarme/artis/subscribers","subscription_url":"https://api.github.com/repos/pagarme/artis/subscription","commits_url":"https://api.github.com/repos/pagarme/artis/commits{/sha}","git_commits_url":"https://api.github.com/repos/pagarme/artis/git/commits{/sha}","comments_url":"https://api.github.com/repos/pagarme/artis/comments{/number}","issue_comment_url":"https://api.github.com/repos/pagarme/artis/issues/comments{/number}","contents_url":"https://api.github.com/repos/pagarme/artis/contents/{+path}","compare_url":"https://api.github.com/repos/pagarme/artis/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pagarme/artis/merges","archive_url":"https://api.github.com/repos/pagarme/artis/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pagarme/artis/downloads","issues_url":"https://api.github.com/repos/pagarme/artis/issues{/number}","pulls_url":"https://api.github.com/repos/pagarme/artis/pulls{/number}","milestones_url":"https://api.github.com/repos/pagarme/artis/milestones{/number}","notifications_url":"https://api.github.com/repos/pagarme/artis/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pagarme/artis/labels{/name}","releases_url":"https://api.github.com/repos/pagarme/artis/releases{/id}","deployments_url":"https://api.github.com/repos/pagarme/artis/deployments","created_at":"2017-09-22T16:13:58Z","updated_at":"2018-05-29T21:56:22Z","pushed_at":"2018-06-06T22:24:54Z","git_url":"git://github.com/pagarme/artis.git","ssh_url":"git@github.com:pagarme/artis.git","clone_url":"https://github.com/pagarme/artis.git","svn_url":"https://github.com/pagarme/artis","homepage":"","size":3270,"stargazers_count":25,"watchers_count":25,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":8,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":1,"open_issues":8,"watchers":25,"default_branch":"master"}},"base":{"label":"pagarme:master","ref":"master","sha":"c13e5e6ee346fcbe1aafe30783b86f3cd2246228","user":{"login":"pagarme","id":3846050,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM4NDYwNTA=","avatar_url":"https://avatars2.githubusercontent.com/u/3846050?v=4","gravatar_id":"","url":"https://api.github.com/users/pagarme","html_url":"https://github.com/pagarme","followers_url":"https://api.github.com/users/pagarme/followers","following_url":"https://api.github.com/users/pagarme/following{/other_user}","gists_url":"https://api.github.com/users/pagarme/gists{/gist_id}","starred_url":"https://api.github.com/users/pagarme/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pagarme/subscriptions","organizations_url":"https://api.github.com/users/pagarme/orgs","repos_url":"https://api.github.com/users/pagarme/repos","events_url":"https://api.github.com/users/pagarme/events{/privacy}","received_events_url":"https://api.github.com/users/pagarme/received_events","type":"Organization","site_admin":false},"repo":{"id":104494408,"node_id":"MDEwOlJlcG9zaXRvcnkxMDQ0OTQ0MDg=","name":"artis","full_name":"pagarme/artis","owner":{"login":"pagarme","id":3846050,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM4NDYwNTA=","avatar_url":"https://avatars2.githubusercontent.com/u/3846050?v=4","gravatar_id":"","url":"https://api.github.com/users/pagarme","html_url":"https://github.com/pagarme","followers_url":"https://api.github.com/users/pagarme/followers","following_url":"https://api.github.com/users/pagarme/following{/other_user}","gists_url":"https://api.github.com/users/pagarme/gists{/gist_id}","starred_url":"https://api.github.com/users/pagarme/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pagarme/subscriptions","organizations_url":"https://api.github.com/users/pagarme/orgs","repos_url":"https://api.github.com/users/pagarme/repos","events_url":"https://api.github.com/users/pagarme/events{/privacy}","received_events_url":"https://api.github.com/users/pagarme/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/pagarme/artis","description":":credit_card: Projeto de Checkout desenvolvido em parceria entre MundiPagg e Pagar.me.","fork":false,"url":"https://api.github.com/repos/pagarme/artis","forks_url":"https://api.github.com/repos/pagarme/artis/forks","keys_url":"https://api.github.com/repos/pagarme/artis/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pagarme/artis/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pagarme/artis/teams","hooks_url":"https://api.github.com/repos/pagarme/artis/hooks","issue_events_url":"https://api.github.com/repos/pagarme/artis/issues/events{/number}","events_url":"https://api.github.com/repos/pagarme/artis/events","assignees_url":"https://api.github.com/repos/pagarme/artis/assignees{/user}","branches_url":"https://api.github.com/repos/pagarme/artis/branches{/branch}","tags_url":"https://api.github.com/repos/pagarme/artis/tags","blobs_url":"https://api.github.com/repos/pagarme/artis/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pagarme/artis/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pagarme/artis/git/refs{/sha}","trees_url":"https://api.github.com/repos/pagarme/artis/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pagarme/artis/statuses/{sha}","languages_url":"https://api.github.com/repos/pagarme/artis/languages","stargazers_url":"https://api.github.com/repos/pagarme/artis/stargazers","contributors_url":"https://api.github.com/repos/pagarme/artis/contributors","subscribers_url":"https://api.github.com/repos/pagarme/artis/subscribers","subscription_url":"https://api.github.com/repos/pagarme/artis/subscription","commits_url":"https://api.github.com/repos/pagarme/artis/commits{/sha}","git_commits_url":"https://api.github.com/repos/pagarme/artis/git/commits{/sha}","comments_url":"https://api.github.com/repos/pagarme/artis/comments{/number}","issue_comment_url":"https://api.github.com/repos/pagarme/artis/issues/comments{/number}","contents_url":"https://api.github.com/repos/pagarme/artis/contents/{+path}","compare_url":"https://api.github.com/repos/pagarme/artis/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pagarme/artis/merges","archive_url":"https://api.github.com/repos/pagarme/artis/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pagarme/artis/downloads","issues_url":"https://api.github.com/repos/pagarme/artis/issues{/number}","pulls_url":"https://api.github.com/repos/pagarme/artis/pulls{/number}","milestones_url":"https://api.github.com/repos/pagarme/artis/milestones{/number}","notifications_url":"https://api.github.com/repos/pagarme/artis/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pagarme/artis/labels{/name}","releases_url":"https://api.github.com/repos/pagarme/artis/releases{/id}","deployments_url":"https://api.github.com/repos/pagarme/artis/deployments","created_at":"2017-09-22T16:13:58Z","updated_at":"2018-05-29T21:56:22Z","pushed_at":"2018-06-06T22:24:54Z","git_url":"git://github.com/pagarme/artis.git","ssh_url":"git@github.com:pagarme/artis.git","clone_url":"https://github.com/pagarme/artis.git","svn_url":"https://github.com/pagarme/artis","homepage":"","size":3270,"stargazers_count":25,"watchers_count":25,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":8,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":1,"open_issues":8,"watchers":25,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/pagarme/artis/pulls/241"},"html":{"href":"https://github.com/pagarme/artis/pull/241"},"issue":{"href":"https://api.github.com/repos/pagarme/artis/issues/241"},"comments":{"href":"https://api.github.com/repos/pagarme/artis/issues/241/comments"},"review_comments":{"href":"https://api.github.com/repos/pagarme/artis/pulls/241/comments"},"review_comment":{"href":"https://api.github.com/repos/pagarme/artis/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/pagarme/artis/pulls/241/commits"},"statuses":{"href":"https://api.github.com/repos/pagarme/artis/statuses/0297a6f9615508d8705014c87426ed5f60bed93d"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"thiagommedeiros"}}