{"action":"created","comment":{"url":"https://api.github.com/repos/spryker-eco/heidelpay/pulls/comments/237056860","pull_request_review_id":179261342,"id":237056860,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzNzA1Njg2MA==","diff_hunk":"@@ -0,0 +1,80 @@\n+import Component from 'ShopUi/models/component';\n+\n+interface IFormElements extends HTMLFormElement{\n+    input?: HTMLInputElement,\n+    select?: HTMLSelectElement,\n+    textarea?: HTMLTextAreaElement\n+}\n+\n+export default class RegistrationNew extends Component {\n+    protected paymentIframe: HTMLIFrameElement;\n+    protected paymentIframeSrc: string;\n+    protected paymentStepForm: HTMLFormElement;\n+    protected paymentStepFormElements: Array<IFormElements>;\n+    protected paymentFormSelections: Array<HTMLInputElement>;\n+    protected paymentName: string = 'heidelpayCreditCardSecure';\n+    protected creditCardPaymentOptionSelectors: Array<HTMLInputElement>;\n+    protected serializeData: object;\n+\n+    protected readyCallback(): void {\n+        this.paymentIframe = <HTMLIFrameElement>this.querySelector(`#${this.jsName}`);\n+        this.paymentIframeSrc = this.getDomainFromUrl;\n+        this.paymentStepForm = <HTMLFormElement>document.getElementById(this.paretnFormId);\n+        this.paymentStepFormElements = <IFormElements[]>Array.from(this.paymentStepForm.querySelectorAll('input, select, textarea'));\n+        this.creditCardPaymentOptionSelectors = <HTMLInputElement[]>Array.from(this.paymentStepForm.querySelectorAll(`input[name=\"${this.paymentInputName}\"`));\n+        this.paymentFormSelections = <HTMLInputElement[]>Array.from(this.paymentStepForm.querySelectorAll(`input[name=\"${this.paymentTogglerName}\"]`));\n+        this.paymentFrameFormSubmit();\n+    }\n+\n+    protected serializeIframeForm(): object {\n+        this.serializeData = {};\n+        this.paymentStepFormElements.forEach(element => {\n+            if (element.name) {\n+                this.serializeData[element.name] = element.value;\n+            }\n+        });\n+        return this.serializeData;\n+    }\n+\n+    protected isCreditCardNewRegistrationActive(): boolean {\n+        let response = false;\n+        this.paymentFormSelections.forEach(formSelection => {\n+            this.creditCardPaymentOptionSelectors.forEach(creditCardSelector => {\n+                if(formSelection.value === this.paymentName &&\n+                    creditCardSelector.value === this.name) {\n+                    response = true;\n+                }\n+            })\n+        });\n+        return response;","path":"src/SprykerEco/Yves/Heidelpay/Theme/default/components/molecules/new-registration/new-registration.ts","position":49,"original_position":49,"commit_id":"570c1e94c2b1715ce4350f112e9e6df2d2245d45","original_commit_id":"570c1e94c2b1715ce4350f112e9e6df2d2245d45","user":{"login":"tolerants","id":4608661,"node_id":"MDQ6VXNlcjQ2MDg2NjE=","avatar_url":"https://avatars0.githubusercontent.com/u/4608661?v=4","gravatar_id":"","url":"https://api.github.com/users/tolerants","html_url":"https://github.com/tolerants","followers_url":"https://api.github.com/users/tolerants/followers","following_url":"https://api.github.com/users/tolerants/following{/other_user}","gists_url":"https://api.github.com/users/tolerants/gists{/gist_id}","starred_url":"https://api.github.com/users/tolerants/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tolerants/subscriptions","organizations_url":"https://api.github.com/users/tolerants/orgs","repos_url":"https://api.github.com/users/tolerants/repos","events_url":"https://api.github.com/users/tolerants/events{/privacy}","received_events_url":"https://api.github.com/users/tolerants/received_events","type":"User","site_admin":false},"body":"And here `return false`.","created_at":"2018-11-28T12:11:08Z","updated_at":"2018-11-28T12:41:59Z","html_url":"https://github.com/spryker-eco/heidelpay/pull/19#discussion_r237056860","pull_request_url":"https://api.github.com/repos/spryker-eco/heidelpay/pulls/19","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/spryker-eco/heidelpay/pulls/comments/237056860"},"html":{"href":"https://github.com/spryker-eco/heidelpay/pull/19#discussion_r237056860"},"pull_request":{"href":"https://api.github.com/repos/spryker-eco/heidelpay/pulls/19"}}},"pull_request":{"url":"https://api.github.com/repos/spryker-eco/heidelpay/pulls/19","id":232995175,"node_id":"MDExOlB1bGxSZXF1ZXN0MjMyOTk1MTc1","html_url":"https://github.com/spryker-eco/heidelpay/pull/19","diff_url":"https://github.com/spryker-eco/heidelpay/pull/19.diff","patch_url":"https://github.com/spryker-eco/heidelpay/pull/19.patch","issue_url":"https://api.github.com/repos/spryker-eco/heidelpay/issues/19","number":19,"state":"open","locked":false,"title":"ECO-2255 FE module integration","user":{"login":"sergeirybalko","id":13710613,"node_id":"MDQ6VXNlcjEzNzEwNjEz","avatar_url":"https://avatars3.githubusercontent.com/u/13710613?v=4","gravatar_id":"","url":"https://api.github.com/users/sergeirybalko","html_url":"https://github.com/sergeirybalko","followers_url":"https://api.github.com/users/sergeirybalko/followers","following_url":"https://api.github.com/users/sergeirybalko/following{/other_user}","gists_url":"https://api.github.com/users/sergeirybalko/gists{/gist_id}","starred_url":"https://api.github.com/users/sergeirybalko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sergeirybalko/subscriptions","organizations_url":"https://api.github.com/users/sergeirybalko/orgs","repos_url":"https://api.github.com/users/sergeirybalko/repos","events_url":"https://api.github.com/users/sergeirybalko/events{/privacy}","received_events_url":"https://api.github.com/users/sergeirybalko/received_events","type":"User","site_admin":false},"body":"TICKET: https://spryker.atlassian.net/browse/ECO-2255","created_at":"2018-11-22T14:20:18Z","updated_at":"2018-11-28T12:41:58Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c878f344542fa7a8c2b92dffcac01698188a4f45","assignee":null,"assignees":[],"requested_reviewers":[{"login":"aleksey-kotsuba","id":35109862,"node_id":"MDQ6VXNlcjM1MTA5ODYy","avatar_url":"https://avatars1.githubusercontent.com/u/35109862?v=4","gravatar_id":"","url":"https://api.github.com/users/aleksey-kotsuba","html_url":"https://github.com/aleksey-kotsuba","followers_url":"https://api.github.com/users/aleksey-kotsuba/followers","following_url":"https://api.github.com/users/aleksey-kotsuba/following{/other_user}","gists_url":"https://api.github.com/users/aleksey-kotsuba/gists{/gist_id}","starred_url":"https://api.github.com/users/aleksey-kotsuba/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aleksey-kotsuba/subscriptions","organizations_url":"https://api.github.com/users/aleksey-kotsuba/orgs","repos_url":"https://api.github.com/users/aleksey-kotsuba/repos","events_url":"https://api.github.com/users/aleksey-kotsuba/events{/privacy}","received_events_url":"https://api.github.com/users/aleksey-kotsuba/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/spryker-eco/heidelpay/pulls/19/commits","review_comments_url":"https://api.github.com/repos/spryker-eco/heidelpay/pulls/19/comments","review_comment_url":"https://api.github.com/repos/spryker-eco/heidelpay/pulls/comments{/number}","comments_url":"https://api.github.com/repos/spryker-eco/heidelpay/issues/19/comments","statuses_url":"https://api.github.com/repos/spryker-eco/heidelpay/statuses/570c1e94c2b1715ce4350f112e9e6df2d2245d45","head":{"label":"spryker-eco:feature/eco-2252-heidelpay/eco-2255-fe-module-integration","ref":"feature/eco-2252-heidelpay/eco-2255-fe-module-integration","sha":"570c1e94c2b1715ce4350f112e9e6df2d2245d45","user":{"login":"spryker-eco","id":25103059,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI1MTAzMDU5","avatar_url":"https://avatars2.githubusercontent.com/u/25103059?v=4","gravatar_id":"","url":"https://api.github.com/users/spryker-eco","html_url":"https://github.com/spryker-eco","followers_url":"https://api.github.com/users/spryker-eco/followers","following_url":"https://api.github.com/users/spryker-eco/following{/other_user}","gists_url":"https://api.github.com/users/spryker-eco/gists{/gist_id}","starred_url":"https://api.github.com/users/spryker-eco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spryker-eco/subscriptions","organizations_url":"https://api.github.com/users/spryker-eco/orgs","repos_url":"https://api.github.com/users/spryker-eco/repos","events_url":"https://api.github.com/users/spryker-eco/events{/privacy}","received_events_url":"https://api.github.com/users/spryker-eco/received_events","type":"Organization","site_admin":false},"repo":{"id":90969944,"node_id":"MDEwOlJlcG9zaXRvcnk5MDk2OTk0NA==","name":"heidelpay","full_name":"spryker-eco/heidelpay","private":false,"owner":{"login":"spryker-eco","id":25103059,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI1MTAzMDU5","avatar_url":"https://avatars2.githubusercontent.com/u/25103059?v=4","gravatar_id":"","url":"https://api.github.com/users/spryker-eco","html_url":"https://github.com/spryker-eco","followers_url":"https://api.github.com/users/spryker-eco/followers","following_url":"https://api.github.com/users/spryker-eco/following{/other_user}","gists_url":"https://api.github.com/users/spryker-eco/gists{/gist_id}","starred_url":"https://api.github.com/users/spryker-eco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spryker-eco/subscriptions","organizations_url":"https://api.github.com/users/spryker-eco/orgs","repos_url":"https://api.github.com/users/spryker-eco/repos","events_url":"https://api.github.com/users/spryker-eco/events{/privacy}","received_events_url":"https://api.github.com/users/spryker-eco/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/spryker-eco/heidelpay","description":null,"fork":false,"url":"https://api.github.com/repos/spryker-eco/heidelpay","forks_url":"https://api.github.com/repos/spryker-eco/heidelpay/forks","keys_url":"https://api.github.com/repos/spryker-eco/heidelpay/keys{/key_id}","collaborators_url":"https://api.github.com/repos/spryker-eco/heidelpay/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/spryker-eco/heidelpay/teams","hooks_url":"https://api.github.com/repos/spryker-eco/heidelpay/hooks","issue_events_url":"https://api.github.com/repos/spryker-eco/heidelpay/issues/events{/number}","events_url":"https://api.github.com/repos/spryker-eco/heidelpay/events","assignees_url":"https://api.github.com/repos/spryker-eco/heidelpay/assignees{/user}","branches_url":"https://api.github.com/repos/spryker-eco/heidelpay/branches{/branch}","tags_url":"https://api.github.com/repos/spryker-eco/heidelpay/tags","blobs_url":"https://api.github.com/repos/spryker-eco/heidelpay/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/spryker-eco/heidelpay/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/spryker-eco/heidelpay/git/refs{/sha}","trees_url":"https://api.github.com/repos/spryker-eco/heidelpay/git/trees{/sha}","statuses_url":"https://api.github.com/repos/spryker-eco/heidelpay/statuses/{sha}","languages_url":"https://api.github.com/repos/spryker-eco/heidelpay/languages","stargazers_url":"https://api.github.com/repos/spryker-eco/heidelpay/stargazers","contributors_url":"https://api.github.com/repos/spryker-eco/heidelpay/contributors","subscribers_url":"https://api.github.com/repos/spryker-eco/heidelpay/subscribers","subscription_url":"https://api.github.com/repos/spryker-eco/heidelpay/subscription","commits_url":"https://api.github.com/repos/spryker-eco/heidelpay/commits{/sha}","git_commits_url":"https://api.github.com/repos/spryker-eco/heidelpay/git/commits{/sha}","comments_url":"https://api.github.com/repos/spryker-eco/heidelpay/comments{/number}","issue_comment_url":"https://api.github.com/repos/spryker-eco/heidelpay/issues/comments{/number}","contents_url":"https://api.github.com/repos/spryker-eco/heidelpay/contents/{+path}","compare_url":"https://api.github.com/repos/spryker-eco/heidelpay/compare/{base}...{head}","merges_url":"https://api.github.com/repos/spryker-eco/heidelpay/merges","archive_url":"https://api.github.com/repos/spryker-eco/heidelpay/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/spryker-eco/heidelpay/downloads","issues_url":"https://api.github.com/repos/spryker-eco/heidelpay/issues{/number}","pulls_url":"https://api.github.com/repos/spryker-eco/heidelpay/pulls{/number}","milestones_url":"https://api.github.com/repos/spryker-eco/heidelpay/milestones{/number}","notifications_url":"https://api.github.com/repos/spryker-eco/heidelpay/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/spryker-eco/heidelpay/labels{/name}","releases_url":"https://api.github.com/repos/spryker-eco/heidelpay/releases{/id}","deployments_url":"https://api.github.com/repos/spryker-eco/heidelpay/deployments","created_at":"2017-05-11T11:04:19Z","updated_at":"2018-11-13T13:37:04Z","pushed_at":"2018-11-27T14:49:45Z","git_url":"git://github.com/spryker-eco/heidelpay.git","ssh_url":"git@github.com:spryker-eco/heidelpay.git","clone_url":"https://github.com/spryker-eco/heidelpay.git","svn_url":"https://github.com/spryker-eco/heidelpay","homepage":null,"size":1013,"stargazers_count":3,"watchers_count":3,"language":"PHP","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"archived":false,"open_issues_count":3,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":5,"open_issues":3,"watchers":3,"default_branch":"master"}},"base":{"label":"spryker-eco:feature/eco-2252-heidelpay-upgradeuto-suite-compatibility","ref":"feature/eco-2252-heidelpay-upgradeuto-suite-compatibility","sha":"5f9d070634e50a8b69695ea066a98f521d5b87ce","user":{"login":"spryker-eco","id":25103059,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI1MTAzMDU5","avatar_url":"https://avatars2.githubusercontent.com/u/25103059?v=4","gravatar_id":"","url":"https://api.github.com/users/spryker-eco","html_url":"https://github.com/spryker-eco","followers_url":"https://api.github.com/users/spryker-eco/followers","following_url":"https://api.github.com/users/spryker-eco/following{/other_user}","gists_url":"https://api.github.com/users/spryker-eco/gists{/gist_id}","starred_url":"https://api.github.com/users/spryker-eco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spryker-eco/subscriptions","organizations_url":"https://api.github.com/users/spryker-eco/orgs","repos_url":"https://api.github.com/users/spryker-eco/repos","events_url":"https://api.github.com/users/spryker-eco/events{/privacy}","received_events_url":"https://api.github.com/users/spryker-eco/received_events","type":"Organization","site_admin":false},"repo":{"id":90969944,"node_id":"MDEwOlJlcG9zaXRvcnk5MDk2OTk0NA==","name":"heidelpay","full_name":"spryker-eco/heidelpay","private":false,"owner":{"login":"spryker-eco","id":25103059,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI1MTAzMDU5","avatar_url":"https://avatars2.githubusercontent.com/u/25103059?v=4","gravatar_id":"","url":"https://api.github.com/users/spryker-eco","html_url":"https://github.com/spryker-eco","followers_url":"https://api.github.com/users/spryker-eco/followers","following_url":"https://api.github.com/users/spryker-eco/following{/other_user}","gists_url":"https://api.github.com/users/spryker-eco/gists{/gist_id}","starred_url":"https://api.github.com/users/spryker-eco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spryker-eco/subscriptions","organizations_url":"https://api.github.com/users/spryker-eco/orgs","repos_url":"https://api.github.com/users/spryker-eco/repos","events_url":"https://api.github.com/users/spryker-eco/events{/privacy}","received_events_url":"https://api.github.com/users/spryker-eco/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/spryker-eco/heidelpay","description":null,"fork":false,"url":"https://api.github.com/repos/spryker-eco/heidelpay","forks_url":"https://api.github.com/repos/spryker-eco/heidelpay/forks","keys_url":"https://api.github.com/repos/spryker-eco/heidelpay/keys{/key_id}","collaborators_url":"https://api.github.com/repos/spryker-eco/heidelpay/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/spryker-eco/heidelpay/teams","hooks_url":"https://api.github.com/repos/spryker-eco/heidelpay/hooks","issue_events_url":"https://api.github.com/repos/spryker-eco/heidelpay/issues/events{/number}","events_url":"https://api.github.com/repos/spryker-eco/heidelpay/events","assignees_url":"https://api.github.com/repos/spryker-eco/heidelpay/assignees{/user}","branches_url":"https://api.github.com/repos/spryker-eco/heidelpay/branches{/branch}","tags_url":"https://api.github.com/repos/spryker-eco/heidelpay/tags","blobs_url":"https://api.github.com/repos/spryker-eco/heidelpay/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/spryker-eco/heidelpay/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/spryker-eco/heidelpay/git/refs{/sha}","trees_url":"https://api.github.com/repos/spryker-eco/heidelpay/git/trees{/sha}","statuses_url":"https://api.github.com/repos/spryker-eco/heidelpay/statuses/{sha}","languages_url":"https://api.github.com/repos/spryker-eco/heidelpay/languages","stargazers_url":"https://api.github.com/repos/spryker-eco/heidelpay/stargazers","contributors_url":"https://api.github.com/repos/spryker-eco/heidelpay/contributors","subscribers_url":"https://api.github.com/repos/spryker-eco/heidelpay/subscribers","subscription_url":"https://api.github.com/repos/spryker-eco/heidelpay/subscription","commits_url":"https://api.github.com/repos/spryker-eco/heidelpay/commits{/sha}","git_commits_url":"https://api.github.com/repos/spryker-eco/heidelpay/git/commits{/sha}","comments_url":"https://api.github.com/repos/spryker-eco/heidelpay/comments{/number}","issue_comment_url":"https://api.github.com/repos/spryker-eco/heidelpay/issues/comments{/number}","contents_url":"https://api.github.com/repos/spryker-eco/heidelpay/contents/{+path}","compare_url":"https://api.github.com/repos/spryker-eco/heidelpay/compare/{base}...{head}","merges_url":"https://api.github.com/repos/spryker-eco/heidelpay/merges","archive_url":"https://api.github.com/repos/spryker-eco/heidelpay/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/spryker-eco/heidelpay/downloads","issues_url":"https://api.github.com/repos/spryker-eco/heidelpay/issues{/number}","pulls_url":"https://api.github.com/repos/spryker-eco/heidelpay/pulls{/number}","milestones_url":"https://api.github.com/repos/spryker-eco/heidelpay/milestones{/number}","notifications_url":"https://api.github.com/repos/spryker-eco/heidelpay/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/spryker-eco/heidelpay/labels{/name}","releases_url":"https://api.github.com/repos/spryker-eco/heidelpay/releases{/id}","deployments_url":"https://api.github.com/repos/spryker-eco/heidelpay/deployments","created_at":"2017-05-11T11:04:19Z","updated_at":"2018-11-13T13:37:04Z","pushed_at":"2018-11-27T14:49:45Z","git_url":"git://github.com/spryker-eco/heidelpay.git","ssh_url":"git@github.com:spryker-eco/heidelpay.git","clone_url":"https://github.com/spryker-eco/heidelpay.git","svn_url":"https://github.com/spryker-eco/heidelpay","homepage":null,"size":1013,"stargazers_count":3,"watchers_count":3,"language":"PHP","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"archived":false,"open_issues_count":3,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":5,"open_issues":3,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/spryker-eco/heidelpay/pulls/19"},"html":{"href":"https://github.com/spryker-eco/heidelpay/pull/19"},"issue":{"href":"https://api.github.com/repos/spryker-eco/heidelpay/issues/19"},"comments":{"href":"https://api.github.com/repos/spryker-eco/heidelpay/issues/19/comments"},"review_comments":{"href":"https://api.github.com/repos/spryker-eco/heidelpay/pulls/19/comments"},"review_comment":{"href":"https://api.github.com/repos/spryker-eco/heidelpay/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/spryker-eco/heidelpay/pulls/19/commits"},"statuses":{"href":"https://api.github.com/repos/spryker-eco/heidelpay/statuses/570c1e94c2b1715ce4350f112e9e6df2d2245d45"}},"author_association":"NONE"}}
{"actor":{"display_login":"tolerants"}}