{"action":"created","comment":{"url":"https://api.github.com/repos/alfagen/aml-engine/pulls/comments/241732061","pull_request_review_id":185079063,"id":241732061,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI0MTczMjA2MQ==","diff_hunk":"@@ -0,0 +1,9 @@\n+module AML::CardValidation\n+  extend ActiveSupport::Concern\n+\n+  included do \n+    validates :card_brand, presence: true\n+    validates :card_bin, presence: true, length: 4..8\n+    validates :card_suffix, presence: true, length: 2..4","path":"app/models/concerns/aml/card_validation.rb","position":7,"original_position":7,"commit_id":"b1016f2fd5a2e0ea5e112523663cb3f4d709dceb","original_commit_id":"b1016f2fd5a2e0ea5e112523663cb3f4d709dceb","user":{"login":"ValentinAndreev","id":19556071,"node_id":"MDQ6VXNlcjE5NTU2MDcx","avatar_url":"https://avatars2.githubusercontent.com/u/19556071?v=4","gravatar_id":"","url":"https://api.github.com/users/ValentinAndreev","html_url":"https://github.com/ValentinAndreev","followers_url":"https://api.github.com/users/ValentinAndreev/followers","following_url":"https://api.github.com/users/ValentinAndreev/following{/other_user}","gists_url":"https://api.github.com/users/ValentinAndreev/gists{/gist_id}","starred_url":"https://api.github.com/users/ValentinAndreev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ValentinAndreev/subscriptions","organizations_url":"https://api.github.com/users/ValentinAndreev/orgs","repos_url":"https://api.github.com/users/ValentinAndreev/repos","events_url":"https://api.github.com/users/ValentinAndreev/events{/privacy}","received_events_url":"https://api.github.com/users/ValentinAndreev/received_events","type":"User","site_admin":false},"body":"Может регулярное выражение для номера карт написать, назвать, чтобы ясно было что это и в валидации использовать?","created_at":"2018-12-14T11:58:38Z","updated_at":"2018-12-14T11:58:38Z","html_url":"https://github.com/alfagen/aml-engine/pull/138#discussion_r241732061","pull_request_url":"https://api.github.com/repos/alfagen/aml-engine/pulls/138","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/alfagen/aml-engine/pulls/comments/241732061"},"html":{"href":"https://github.com/alfagen/aml-engine/pull/138#discussion_r241732061"},"pull_request":{"href":"https://api.github.com/repos/alfagen/aml-engine/pulls/138"}},"in_reply_to_id":241729509},"pull_request":{"url":"https://api.github.com/repos/alfagen/aml-engine/pulls/138","id":238649033,"node_id":"MDExOlB1bGxSZXF1ZXN0MjM4NjQ5MDMz","html_url":"https://github.com/alfagen/aml-engine/pull/138","diff_url":"https://github.com/alfagen/aml-engine/pull/138.diff","patch_url":"https://github.com/alfagen/aml-engine/pull/138.patch","issue_url":"https://api.github.com/repos/alfagen/aml-engine/issues/138","number":138,"state":"closed","locked":false,"title":"[#162601223] изменение валидации номера карт","user":{"login":"ValentinAndreev","id":19556071,"node_id":"MDQ6VXNlcjE5NTU2MDcx","avatar_url":"https://avatars2.githubusercontent.com/u/19556071?v=4","gravatar_id":"","url":"https://api.github.com/users/ValentinAndreev","html_url":"https://github.com/ValentinAndreev","followers_url":"https://api.github.com/users/ValentinAndreev/followers","following_url":"https://api.github.com/users/ValentinAndreev/following{/other_user}","gists_url":"https://api.github.com/users/ValentinAndreev/gists{/gist_id}","starred_url":"https://api.github.com/users/ValentinAndreev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ValentinAndreev/subscriptions","organizations_url":"https://api.github.com/users/ValentinAndreev/orgs","repos_url":"https://api.github.com/users/ValentinAndreev/repos","events_url":"https://api.github.com/users/ValentinAndreev/events{/privacy}","received_events_url":"https://api.github.com/users/ValentinAndreev/received_events","type":"User","site_admin":false},"body":"Существующие карты остаются валидными.","created_at":"2018-12-14T08:50:20Z","updated_at":"2018-12-14T11:58:38Z","closed_at":"2018-12-14T11:49:17Z","merged_at":"2018-12-14T11:49:17Z","merge_commit_sha":"4b79d716dc558f5d3f3e42db73758b8693b7dbc7","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/alfagen/aml-engine/pulls/138/commits","review_comments_url":"https://api.github.com/repos/alfagen/aml-engine/pulls/138/comments","review_comment_url":"https://api.github.com/repos/alfagen/aml-engine/pulls/comments{/number}","comments_url":"https://api.github.com/repos/alfagen/aml-engine/issues/138/comments","statuses_url":"https://api.github.com/repos/alfagen/aml-engine/statuses/b1016f2fd5a2e0ea5e112523663cb3f4d709dceb","head":{"label":"alfagen:fix/payment_card-validation","ref":"fix/payment_card-validation","sha":"b1016f2fd5a2e0ea5e112523663cb3f4d709dceb","user":{"login":"alfagen","id":36159568,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM2MTU5NTY4","avatar_url":"https://avatars2.githubusercontent.com/u/36159568?v=4","gravatar_id":"","url":"https://api.github.com/users/alfagen","html_url":"https://github.com/alfagen","followers_url":"https://api.github.com/users/alfagen/followers","following_url":"https://api.github.com/users/alfagen/following{/other_user}","gists_url":"https://api.github.com/users/alfagen/gists{/gist_id}","starred_url":"https://api.github.com/users/alfagen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alfagen/subscriptions","organizations_url":"https://api.github.com/users/alfagen/orgs","repos_url":"https://api.github.com/users/alfagen/repos","events_url":"https://api.github.com/users/alfagen/events{/privacy}","received_events_url":"https://api.github.com/users/alfagen/received_events","type":"Organization","site_admin":false},"repo":{"id":146639556,"node_id":"MDEwOlJlcG9zaXRvcnkxNDY2Mzk1NTY=","name":"aml-engine","full_name":"alfagen/aml-engine","private":false,"owner":{"login":"alfagen","id":36159568,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM2MTU5NTY4","avatar_url":"https://avatars2.githubusercontent.com/u/36159568?v=4","gravatar_id":"","url":"https://api.github.com/users/alfagen","html_url":"https://github.com/alfagen","followers_url":"https://api.github.com/users/alfagen/followers","following_url":"https://api.github.com/users/alfagen/following{/other_user}","gists_url":"https://api.github.com/users/alfagen/gists{/gist_id}","starred_url":"https://api.github.com/users/alfagen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alfagen/subscriptions","organizations_url":"https://api.github.com/users/alfagen/orgs","repos_url":"https://api.github.com/users/alfagen/repos","events_url":"https://api.github.com/users/alfagen/events{/privacy}","received_events_url":"https://api.github.com/users/alfagen/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/alfagen/aml-engine","description":"AML Engine","fork":false,"url":"https://api.github.com/repos/alfagen/aml-engine","forks_url":"https://api.github.com/repos/alfagen/aml-engine/forks","keys_url":"https://api.github.com/repos/alfagen/aml-engine/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alfagen/aml-engine/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alfagen/aml-engine/teams","hooks_url":"https://api.github.com/repos/alfagen/aml-engine/hooks","issue_events_url":"https://api.github.com/repos/alfagen/aml-engine/issues/events{/number}","events_url":"https://api.github.com/repos/alfagen/aml-engine/events","assignees_url":"https://api.github.com/repos/alfagen/aml-engine/assignees{/user}","branches_url":"https://api.github.com/repos/alfagen/aml-engine/branches{/branch}","tags_url":"https://api.github.com/repos/alfagen/aml-engine/tags","blobs_url":"https://api.github.com/repos/alfagen/aml-engine/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alfagen/aml-engine/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alfagen/aml-engine/git/refs{/sha}","trees_url":"https://api.github.com/repos/alfagen/aml-engine/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alfagen/aml-engine/statuses/{sha}","languages_url":"https://api.github.com/repos/alfagen/aml-engine/languages","stargazers_url":"https://api.github.com/repos/alfagen/aml-engine/stargazers","contributors_url":"https://api.github.com/repos/alfagen/aml-engine/contributors","subscribers_url":"https://api.github.com/repos/alfagen/aml-engine/subscribers","subscription_url":"https://api.github.com/repos/alfagen/aml-engine/subscription","commits_url":"https://api.github.com/repos/alfagen/aml-engine/commits{/sha}","git_commits_url":"https://api.github.com/repos/alfagen/aml-engine/git/commits{/sha}","comments_url":"https://api.github.com/repos/alfagen/aml-engine/comments{/number}","issue_comment_url":"https://api.github.com/repos/alfagen/aml-engine/issues/comments{/number}","contents_url":"https://api.github.com/repos/alfagen/aml-engine/contents/{+path}","compare_url":"https://api.github.com/repos/alfagen/aml-engine/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alfagen/aml-engine/merges","archive_url":"https://api.github.com/repos/alfagen/aml-engine/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alfagen/aml-engine/downloads","issues_url":"https://api.github.com/repos/alfagen/aml-engine/issues{/number}","pulls_url":"https://api.github.com/repos/alfagen/aml-engine/pulls{/number}","milestones_url":"https://api.github.com/repos/alfagen/aml-engine/milestones{/number}","notifications_url":"https://api.github.com/repos/alfagen/aml-engine/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alfagen/aml-engine/labels{/name}","releases_url":"https://api.github.com/repos/alfagen/aml-engine/releases{/id}","deployments_url":"https://api.github.com/repos/alfagen/aml-engine/deployments","created_at":"2018-08-29T18:07:54Z","updated_at":"2018-12-14T11:58:30Z","pushed_at":"2018-12-14T11:58:29Z","git_url":"git://github.com/alfagen/aml-engine.git","ssh_url":"git@github.com:alfagen/aml-engine.git","clone_url":"https://github.com/alfagen/aml-engine.git","svn_url":"https://github.com/alfagen/aml-engine","homepage":null,"size":587,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":1,"default_branch":"master"}},"base":{"label":"alfagen:master","ref":"master","sha":"b94926ac0b017ef5810209de7fe278fbbf5d4d01","user":{"login":"alfagen","id":36159568,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM2MTU5NTY4","avatar_url":"https://avatars2.githubusercontent.com/u/36159568?v=4","gravatar_id":"","url":"https://api.github.com/users/alfagen","html_url":"https://github.com/alfagen","followers_url":"https://api.github.com/users/alfagen/followers","following_url":"https://api.github.com/users/alfagen/following{/other_user}","gists_url":"https://api.github.com/users/alfagen/gists{/gist_id}","starred_url":"https://api.github.com/users/alfagen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alfagen/subscriptions","organizations_url":"https://api.github.com/users/alfagen/orgs","repos_url":"https://api.github.com/users/alfagen/repos","events_url":"https://api.github.com/users/alfagen/events{/privacy}","received_events_url":"https://api.github.com/users/alfagen/received_events","type":"Organization","site_admin":false},"repo":{"id":146639556,"node_id":"MDEwOlJlcG9zaXRvcnkxNDY2Mzk1NTY=","name":"aml-engine","full_name":"alfagen/aml-engine","private":false,"owner":{"login":"alfagen","id":36159568,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM2MTU5NTY4","avatar_url":"https://avatars2.githubusercontent.com/u/36159568?v=4","gravatar_id":"","url":"https://api.github.com/users/alfagen","html_url":"https://github.com/alfagen","followers_url":"https://api.github.com/users/alfagen/followers","following_url":"https://api.github.com/users/alfagen/following{/other_user}","gists_url":"https://api.github.com/users/alfagen/gists{/gist_id}","starred_url":"https://api.github.com/users/alfagen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alfagen/subscriptions","organizations_url":"https://api.github.com/users/alfagen/orgs","repos_url":"https://api.github.com/users/alfagen/repos","events_url":"https://api.github.com/users/alfagen/events{/privacy}","received_events_url":"https://api.github.com/users/alfagen/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/alfagen/aml-engine","description":"AML Engine","fork":false,"url":"https://api.github.com/repos/alfagen/aml-engine","forks_url":"https://api.github.com/repos/alfagen/aml-engine/forks","keys_url":"https://api.github.com/repos/alfagen/aml-engine/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alfagen/aml-engine/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alfagen/aml-engine/teams","hooks_url":"https://api.github.com/repos/alfagen/aml-engine/hooks","issue_events_url":"https://api.github.com/repos/alfagen/aml-engine/issues/events{/number}","events_url":"https://api.github.com/repos/alfagen/aml-engine/events","assignees_url":"https://api.github.com/repos/alfagen/aml-engine/assignees{/user}","branches_url":"https://api.github.com/repos/alfagen/aml-engine/branches{/branch}","tags_url":"https://api.github.com/repos/alfagen/aml-engine/tags","blobs_url":"https://api.github.com/repos/alfagen/aml-engine/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alfagen/aml-engine/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alfagen/aml-engine/git/refs{/sha}","trees_url":"https://api.github.com/repos/alfagen/aml-engine/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alfagen/aml-engine/statuses/{sha}","languages_url":"https://api.github.com/repos/alfagen/aml-engine/languages","stargazers_url":"https://api.github.com/repos/alfagen/aml-engine/stargazers","contributors_url":"https://api.github.com/repos/alfagen/aml-engine/contributors","subscribers_url":"https://api.github.com/repos/alfagen/aml-engine/subscribers","subscription_url":"https://api.github.com/repos/alfagen/aml-engine/subscription","commits_url":"https://api.github.com/repos/alfagen/aml-engine/commits{/sha}","git_commits_url":"https://api.github.com/repos/alfagen/aml-engine/git/commits{/sha}","comments_url":"https://api.github.com/repos/alfagen/aml-engine/comments{/number}","issue_comment_url":"https://api.github.com/repos/alfagen/aml-engine/issues/comments{/number}","contents_url":"https://api.github.com/repos/alfagen/aml-engine/contents/{+path}","compare_url":"https://api.github.com/repos/alfagen/aml-engine/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alfagen/aml-engine/merges","archive_url":"https://api.github.com/repos/alfagen/aml-engine/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alfagen/aml-engine/downloads","issues_url":"https://api.github.com/repos/alfagen/aml-engine/issues{/number}","pulls_url":"https://api.github.com/repos/alfagen/aml-engine/pulls{/number}","milestones_url":"https://api.github.com/repos/alfagen/aml-engine/milestones{/number}","notifications_url":"https://api.github.com/repos/alfagen/aml-engine/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alfagen/aml-engine/labels{/name}","releases_url":"https://api.github.com/repos/alfagen/aml-engine/releases{/id}","deployments_url":"https://api.github.com/repos/alfagen/aml-engine/deployments","created_at":"2018-08-29T18:07:54Z","updated_at":"2018-12-14T11:58:30Z","pushed_at":"2018-12-14T11:58:29Z","git_url":"git://github.com/alfagen/aml-engine.git","ssh_url":"git@github.com:alfagen/aml-engine.git","clone_url":"https://github.com/alfagen/aml-engine.git","svn_url":"https://github.com/alfagen/aml-engine","homepage":null,"size":587,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/alfagen/aml-engine/pulls/138"},"html":{"href":"https://github.com/alfagen/aml-engine/pull/138"},"issue":{"href":"https://api.github.com/repos/alfagen/aml-engine/issues/138"},"comments":{"href":"https://api.github.com/repos/alfagen/aml-engine/issues/138/comments"},"review_comments":{"href":"https://api.github.com/repos/alfagen/aml-engine/pulls/138/comments"},"review_comment":{"href":"https://api.github.com/repos/alfagen/aml-engine/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/alfagen/aml-engine/pulls/138/commits"},"statuses":{"href":"https://api.github.com/repos/alfagen/aml-engine/statuses/b1016f2fd5a2e0ea5e112523663cb3f4d709dceb"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"ValentinAndreev"}}