{"action":"created","comment":{"url":"https://api.github.com/repos/lykkecloud/MarginTrading.AccountsManagement/pulls/comments/243737556","pull_request_review_id":187590593,"id":243737556,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI0MzczNzU1Ng==","diff_hunk":"@@ -0,0 +1,180 @@\n+using System.Linq;\n+using System.Threading.Tasks;\n+using JetBrains.Annotations;\n+using Lykke.Common.Chaos;\n+using Lykke.Cqrs;\n+using MarginTrading.AccountsManagement.Contracts.Events;\n+using MarginTrading.AccountsManagement.InternalModels;\n+using MarginTrading.AccountsManagement.Repositories;\n+using MarginTrading.AccountsManagement.Settings;\n+using MarginTrading.AccountsManagement.Workflow.GiveTemporaryCapital.Commands;\n+using MarginTrading.AccountsManagement.Workflow.GiveTemporaryCapital.Events;\n+using MarginTrading.AccountsManagement.Workflow.RevokeTemporaryCapital.Commands;\n+using MarginTrading.AccountsManagement.Workflow.RevokeTemporaryCapital.Events;\n+using MarginTrading.AccountsManagement.Workflow.UpdateBalance.Commands;\n+using Microsoft.Extensions.Internal;\n+\n+namespace MarginTrading.AccountsManagement.Workflow.RevokeTemporaryCapital\n+{\n+    internal class RevokeTemporaryCapitalSaga\n+    {\n+        internal const string OperationName = \"RevokeTemporaryCapital\";\n+        private readonly CqrsContextNamesSettings _contextNames;\n+        private readonly ISystemClock _systemClock;\n+        private readonly IOperationExecutionInfoRepository _executionInfoRepository;\n+        private readonly IChaosKitty _chaosKitty;\n+\n+        public RevokeTemporaryCapitalSaga(\n+            CqrsContextNamesSettings contextNames,\n+            ISystemClock systemClock,\n+            IOperationExecutionInfoRepository executionInfoRepository,\n+            IChaosKitty chaosKitty)\n+        {\n+            _contextNames = contextNames;\n+            _systemClock = systemClock;\n+            _executionInfoRepository = executionInfoRepository;\n+            _chaosKitty = chaosKitty;\n+        }\n+        \n+        /// <summary>\n+        /// Temporary capital is removed from account, start account balance update\n+        /// </summary>\n+        /// <param name=\"e\"></param>\n+        /// <param name=\"sender\"></param>\n+        /// <returns></returns>\n+        [UsedImplicitly]\n+        public async Task Handle(RevokeTemporaryCapitalStartedInternalEvent e, ICommandSender sender)\n+        {\n+            var executionInfo = await _executionInfoRepository.GetAsync<RevokeTemporaryCapitalData>(\n+                OperationName,\n+                e.OperationId\n+            );\n+\n+            if (executionInfo == null)\n+            {\n+                return;\n+            }\n+\n+            if (executionInfo.Data.SwitchState(TemporaryCapitalState.Initiated, TemporaryCapitalState.Started))\n+            {\n+                executionInfo.Data.RevokedTemporaryCapital = e.RevokedTemporaryCapital;\n+                \n+                sender.SendCommand(\n+                    new UpdateBalanceInternalCommand(\n+                        operationId: e.OperationId,\n+                        accountId: executionInfo.Data.AccountId,\n+                        amountDelta: - executionInfo.Data.RevokedTemporaryCapital.Sum(x => x.Amount),\n+                        comment: \"Revoke temporary capital\",\n+                        auditLog: executionInfo.Data.AuditLog,\n+                        source: OperationName,\n+                        changeReasonType: AccountBalanceChangeReasonType.TemporaryCashAdjustment,\n+                        eventSourceId: executionInfo.Data.EventSourceId,\n+                        assetPairId: string.Empty,\n+                        tradingDay: _systemClock.UtcNow.UtcDateTime),\n+                    _contextNames.AccountsManagement);   \n+\n+                _chaosKitty.Meow(\n+                    $\"{nameof(RevokeTemporaryCapitalStartedInternalEvent)}: \" +\n+                    \"Save_OperationExecutionInfo:\" +\n+                    $\"{e.OperationId}\");\n+                \n+                await _executionInfoRepository.Save(executionInfo);\n+            }\n+        }\n+        \n+        /// <summary>\n+        /// The balance has changed => finish the operation\n+        /// </summary>\n+        [UsedImplicitly]\n+        private async Task Handle(AccountChangedEvent e, ICommandSender sender)\n+        {\n+            if (e.Source != OperationName)\n+                return;\n+\n+            var executionInfo = await _executionInfoRepository.GetAsync<RevokeTemporaryCapitalData>(OperationName, e.BalanceChange.Id);\n+\n+            if (executionInfo == null)\n+                return;\n+\n+            if (executionInfo.Data.SwitchState(TemporaryCapitalState.Started, TemporaryCapitalState.ChargedOnAccount))\n+            {\n+                sender.SendCommand(\n+                    new FinishRevokeTemporaryCapitalInternalCommand(\n+                        operationId: e.BalanceChange.Id,\n+                        eventTimestamp: _systemClock.UtcNow.UtcDateTime,\n+                        isSuccess: true,\n+                        failReason: null),\n+                    _contextNames.AccountsManagement);\n+                \n+                _chaosKitty.Meow($\"{nameof(AccountChangedEvent)}: \" +\n+                                 \"Save_OperationExecutionInfo:\" + e.BalanceChange.Id);\n+                \n+                await _executionInfoRepository.Save(executionInfo);\n+            }\n+        }\n+        \n+        /// <summary>\n+        /// Failed to change account balance => fail the operation\n+        /// </summary>\n+        [UsedImplicitly]\n+        private async Task Handle(AccountBalanceChangeFailedEvent e, ICommandSender sender)\n+        {\n+            if (e.Source != OperationName)\n+                return;\n+            \n+            var executionInfo = await _executionInfoRepository.GetAsync<RevokeTemporaryCapitalData>(OperationName, e.OperationId);\n+\n+            if (executionInfo == null)\n+                return;\n+            \n+            if (executionInfo.Data.SwitchState(TemporaryCapitalState.Started, TemporaryCapitalState.Failing))\n+            {\n+                executionInfo.Data.FailReason = e.Reason;\n+                sender.SendCommand(\n+                    new FinishRevokeTemporaryCapitalInternalCommand(\n+                        operationId: e.OperationId,\n+                        eventTimestamp: _systemClock.UtcNow.UtcDateTime,\n+                        isSuccess: false,\n+                        failReason: e.Reason),\n+                    _contextNames.AccountsManagement);\n+                \n+                _chaosKitty.Meow($\"{nameof(AccountBalanceChangeFailedEvent)}: \" +\n+                                 \"Save_OperationExecutionInfo:\" + e.OperationId);\n+                \n+                await _executionInfoRepository.Save(executionInfo);\n+            }\n+        }\n+\n+        /// <summary>\n+        /// Operation succeeded\n+        /// </summary>\n+        [UsedImplicitly]\n+        private async Task Handle(RevokeTemporaryCapitalSucceededEvent e, ICommandSender sender)\n+        {\n+            var executionInfo = await _executionInfoRepository.GetAsync<RevokeTemporaryCapitalData>(OperationName, e.OperationId);\n+\n+            if (executionInfo != null && executionInfo.Data.SwitchState(TemporaryCapitalState.ChargedOnAccount, \n+                    TemporaryCapitalState.Succeded))\n+            {\n+                await _executionInfoRepository.Save(executionInfo);\n+            }\n+        }\n+\n+        /// <summary>\n+        /// Operation failed\n+        /// </summary>\n+        [UsedImplicitly]\n+        private async Task Handle(RevokeTemporaryCapitalFailedEvent e, ICommandSender sender)\n+        {\n+            var executionInfo = await _executionInfoRepository.GetAsync<RevokeTemporaryCapitalData>(OperationName, e.OperationId);\n+\n+            if (executionInfo != null && executionInfo.Data.SwitchState(TemporaryCapitalState.Initiated, ","path":"src/MarginTrading.AccountsManagement/Workflow/RevokeTemporaryCapital/RevokeTemporaryCapitalSaga.cs","position":171,"original_position":171,"commit_id":"9191c059db98cffb458da86e17c8f9fe12382807","original_commit_id":"9191c059db98cffb458da86e17c8f9fe12382807","user":{"login":"andrey-anokhin","id":18243836,"node_id":"MDQ6VXNlcjE4MjQzODM2","avatar_url":"https://avatars1.githubusercontent.com/u/18243836?v=4","gravatar_id":"","url":"https://api.github.com/users/andrey-anokhin","html_url":"https://github.com/andrey-anokhin","followers_url":"https://api.github.com/users/andrey-anokhin/followers","following_url":"https://api.github.com/users/andrey-anokhin/following{/other_user}","gists_url":"https://api.github.com/users/andrey-anokhin/gists{/gist_id}","starred_url":"https://api.github.com/users/andrey-anokhin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrey-anokhin/subscriptions","organizations_url":"https://api.github.com/users/andrey-anokhin/orgs","repos_url":"https://api.github.com/users/andrey-anokhin/repos","events_url":"https://api.github.com/users/andrey-anokhin/events{/privacy}","received_events_url":"https://api.github.com/users/andrey-anokhin/received_events","type":"User","site_admin":false},"body":"Failing state is missing","created_at":"2018-12-22T14:06:17Z","updated_at":"2018-12-22T14:07:06Z","html_url":"https://github.com/lykkecloud/MarginTrading.AccountsManagement/pull/55#discussion_r243737556","pull_request_url":"https://api.github.com/repos/lykkecloud/MarginTrading.AccountsManagement/pulls/55","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/lykkecloud/MarginTrading.AccountsManagement/pulls/comments/243737556"},"html":{"href":"https://github.com/lykkecloud/MarginTrading.AccountsManagement/pull/55#discussion_r243737556"},"pull_request":{"href":"https://api.github.com/repos/lykkecloud/MarginTrading.AccountsManagement/pulls/55"}}},"pull_request":{"url":"https://api.github.com/repos/lykkecloud/MarginTrading.AccountsManagement/pulls/55","id":239898329,"node_id":"MDExOlB1bGxSZXF1ZXN0MjM5ODk4MzI5","html_url":"https://github.com/lykkecloud/MarginTrading.AccountsManagement/pull/55","diff_url":"https://github.com/lykkecloud/MarginTrading.AccountsManagement/pull/55.diff","patch_url":"https://github.com/lykkecloud/MarginTrading.AccountsManagement/pull/55.patch","issue_url":"https://api.github.com/repos/lykkecloud/MarginTrading.AccountsManagement/issues/55","number":55,"state":"open","locked":false,"title":"Feature mtc 297 temporary capital","user":{"login":"GSailen","id":3401283,"node_id":"MDQ6VXNlcjM0MDEyODM=","avatar_url":"https://avatars2.githubusercontent.com/u/3401283?v=4","gravatar_id":"","url":"https://api.github.com/users/GSailen","html_url":"https://github.com/GSailen","followers_url":"https://api.github.com/users/GSailen/followers","following_url":"https://api.github.com/users/GSailen/following{/other_user}","gists_url":"https://api.github.com/users/GSailen/gists{/gist_id}","starred_url":"https://api.github.com/users/GSailen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GSailen/subscriptions","organizations_url":"https://api.github.com/users/GSailen/orgs","repos_url":"https://api.github.com/users/GSailen/repos","events_url":"https://api.github.com/users/GSailen/events{/privacy}","received_events_url":"https://api.github.com/users/GSailen/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-12-19T16:30:17Z","updated_at":"2018-12-22T14:07:06Z","closed_at":null,"merged_at":null,"merge_commit_sha":"33c461029099fd9192e68fce0cb99f552c4202cc","assignee":null,"assignees":[],"requested_reviewers":[{"login":"InKolev","id":6628205,"node_id":"MDQ6VXNlcjY2MjgyMDU=","avatar_url":"https://avatars1.githubusercontent.com/u/6628205?v=4","gravatar_id":"","url":"https://api.github.com/users/InKolev","html_url":"https://github.com/InKolev","followers_url":"https://api.github.com/users/InKolev/followers","following_url":"https://api.github.com/users/InKolev/following{/other_user}","gists_url":"https://api.github.com/users/InKolev/gists{/gist_id}","starred_url":"https://api.github.com/users/InKolev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/InKolev/subscriptions","organizations_url":"https://api.github.com/users/InKolev/orgs","repos_url":"https://api.github.com/users/InKolev/repos","events_url":"https://api.github.com/users/InKolev/events{/privacy}","received_events_url":"https://api.github.com/users/InKolev/received_events","type":"User","site_admin":false},{"login":"rodrigueseder","id":15186050,"node_id":"MDQ6VXNlcjE1MTg2MDUw","avatar_url":"https://avatars3.githubusercontent.com/u/15186050?v=4","gravatar_id":"","url":"https://api.github.com/users/rodrigueseder","html_url":"https://github.com/rodrigueseder","followers_url":"https://api.github.com/users/rodrigueseder/followers","following_url":"https://api.github.com/users/rodrigueseder/following{/other_user}","gists_url":"https://api.github.com/users/rodrigueseder/gists{/gist_id}","starred_url":"https://api.github.com/users/rodrigueseder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rodrigueseder/subscriptions","organizations_url":"https://api.github.com/users/rodrigueseder/orgs","repos_url":"https://api.github.com/users/rodrigueseder/repos","events_url":"https://api.github.com/users/rodrigueseder/events{/privacy}","received_events_url":"https://api.github.com/users/rodrigueseder/received_events","type":"User","site_admin":false},{"login":"SosoTughushi","id":19908097,"node_id":"MDQ6VXNlcjE5OTA4MDk3","avatar_url":"https://avatars1.githubusercontent.com/u/19908097?v=4","gravatar_id":"","url":"https://api.github.com/users/SosoTughushi","html_url":"https://github.com/SosoTughushi","followers_url":"https://api.github.com/users/SosoTughushi/followers","following_url":"https://api.github.com/users/SosoTughushi/following{/other_user}","gists_url":"https://api.github.com/users/SosoTughushi/gists{/gist_id}","starred_url":"https://api.github.com/users/SosoTughushi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SosoTughushi/subscriptions","organizations_url":"https://api.github.com/users/SosoTughushi/orgs","repos_url":"https://api.github.com/users/SosoTughushi/repos","events_url":"https://api.github.com/users/SosoTughushi/events{/privacy}","received_events_url":"https://api.github.com/users/SosoTughushi/received_events","type":"User","site_admin":false},{"login":"benoitbousquet-lkk","id":38524163,"node_id":"MDQ6VXNlcjM4NTI0MTYz","avatar_url":"https://avatars0.githubusercontent.com/u/38524163?v=4","gravatar_id":"","url":"https://api.github.com/users/benoitbousquet-lkk","html_url":"https://github.com/benoitbousquet-lkk","followers_url":"https://api.github.com/users/benoitbousquet-lkk/followers","following_url":"https://api.github.com/users/benoitbousquet-lkk/following{/other_user}","gists_url":"https://api.github.com/users/benoitbousquet-lkk/gists{/gist_id}","starred_url":"https://api.github.com/users/benoitbousquet-lkk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benoitbousquet-lkk/subscriptions","organizations_url":"https://api.github.com/users/benoitbousquet-lkk/orgs","repos_url":"https://api.github.com/users/benoitbousquet-lkk/repos","events_url":"https://api.github.com/users/benoitbousquet-lkk/events{/privacy}","received_events_url":"https://api.github.com/users/benoitbousquet-lkk/received_events","type":"User","site_admin":false},{"login":"dafigerdjikova","id":43367065,"node_id":"MDQ6VXNlcjQzMzY3MDY1","avatar_url":"https://avatars3.githubusercontent.com/u/43367065?v=4","gravatar_id":"","url":"https://api.github.com/users/dafigerdjikova","html_url":"https://github.com/dafigerdjikova","followers_url":"https://api.github.com/users/dafigerdjikova/followers","following_url":"https://api.github.com/users/dafigerdjikova/following{/other_user}","gists_url":"https://api.github.com/users/dafigerdjikova/gists{/gist_id}","starred_url":"https://api.github.com/users/dafigerdjikova/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dafigerdjikova/subscriptions","organizations_url":"https://api.github.com/users/dafigerdjikova/orgs","repos_url":"https://api.github.com/users/dafigerdjikova/repos","events_url":"https://api.github.com/users/dafigerdjikova/events{/privacy}","received_events_url":"https://api.github.com/users/dafigerdjikova/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/lykkecloud/MarginTrading.AccountsManagement/pulls/55/commits","review_comments_url":"https://api.github.com/repos/lykkecloud/MarginTrading.AccountsManagement/pulls/55/comments","review_comment_url":"https://api.github.com/repos/lykkecloud/MarginTrading.AccountsManagement/pulls/comments{/number}","comments_url":"https://api.github.com/repos/lykkecloud/MarginTrading.AccountsManagement/issues/55/comments","statuses_url":"https://api.github.com/repos/lykkecloud/MarginTrading.AccountsManagement/statuses/9191c059db98cffb458da86e17c8f9fe12382807","head":{"label":"lykkecloud:feature_MTC-297-Temporary-Capital","ref":"feature_MTC-297-Temporary-Capital","sha":"9191c059db98cffb458da86e17c8f9fe12382807","user":{"login":"lykkecloud","id":37992979,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM3OTkyOTc5","avatar_url":"https://avatars1.githubusercontent.com/u/37992979?v=4","gravatar_id":"","url":"https://api.github.com/users/lykkecloud","html_url":"https://github.com/lykkecloud","followers_url":"https://api.github.com/users/lykkecloud/followers","following_url":"https://api.github.com/users/lykkecloud/following{/other_user}","gists_url":"https://api.github.com/users/lykkecloud/gists{/gist_id}","starred_url":"https://api.github.com/users/lykkecloud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lykkecloud/subscriptions","organizations_url":"https://api.github.com/users/lykkecloud/orgs","repos_url":"https://api.github.com/users/lykkecloud/repos","events_url":"https://api.github.com/users/lykkecloud/events{/privacy}","received_events_url":"https://api.github.com/users/lykkecloud/received_events","type":"Organization","site_admin":false},"repo":{"id":129370794,"node_id":"MDEwOlJlcG9zaXRvcnkxMjkzNzA3OTQ=","name":"MarginTrading.AccountsManagement","full_name":"lykkecloud/MarginTrading.AccountsManagement","private":false,"owner":{"login":"lykkecloud","id":37992979,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM3OTkyOTc5","avatar_url":"https://avatars1.githubusercontent.com/u/37992979?v=4","gravatar_id":"","url":"https://api.github.com/users/lykkecloud","html_url":"https://github.com/lykkecloud","followers_url":"https://api.github.com/users/lykkecloud/followers","following_url":"https://api.github.com/users/lykkecloud/following{/other_user}","gists_url":"https://api.github.com/users/lykkecloud/gists{/gist_id}","starred_url":"https://api.github.com/users/lykkecloud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lykkecloud/subscriptions","organizations_url":"https://api.github.com/users/lykkecloud/orgs","repos_url":"https://api.github.com/users/lykkecloud/repos","events_url":"https://api.github.com/users/lykkecloud/events{/privacy}","received_events_url":"https://api.github.com/users/lykkecloud/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/lykkecloud/MarginTrading.AccountsManagement","description":null,"fork":false,"url":"https://api.github.com/repos/lykkecloud/MarginTrading.AccountsManagement","forks_url":"https://api.github.com/repos/lykkecloud/MarginTrading.AccountsManagement/forks","keys_url":"https://api.github.com/repos/lykkecloud/MarginTrading.AccountsManagement/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lykkecloud/MarginTrading.AccountsManagement/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lykkecloud/MarginTrading.AccountsManagement/teams","hooks_url":"https://api.github.com/repos/lykkecloud/MarginTrading.AccountsManagement/hooks","issue_events_url":"https://api.github.com/repos/lykkecloud/MarginTrading.AccountsManagement/issues/events{/number}","events_url":"https://api.github.com/repos/lykkecloud/MarginTrading.AccountsManagement/events","assignees_url":"https://api.github.com/repos/lykkecloud/MarginTrading.AccountsManagement/assignees{/user}","branches_url":"https://api.github.com/repos/lykkecloud/MarginTrading.AccountsManagement/branches{/branch}","tags_url":"https://api.github.com/repos/lykkecloud/MarginTrading.AccountsManagement/tags","blobs_url":"https://api.github.com/repos/lykkecloud/MarginTrading.AccountsManagement/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lykkecloud/MarginTrading.AccountsManagement/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lykkecloud/MarginTrading.AccountsManagement/git/refs{/sha}","trees_url":"https://api.github.com/repos/lykkecloud/MarginTrading.AccountsManagement/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lykkecloud/MarginTrading.AccountsManagement/statuses/{sha}","languages_url":"https://api.github.com/repos/lykkecloud/MarginTrading.AccountsManagement/languages","stargazers_url":"https://api.github.com/repos/lykkecloud/MarginTrading.AccountsManagement/stargazers","contributors_url":"https://api.github.com/repos/lykkecloud/MarginTrading.AccountsManagement/contributors","subscribers_url":"https://api.github.com/repos/lykkecloud/MarginTrading.AccountsManagement/subscribers","subscription_url":"https://api.github.com/repos/lykkecloud/MarginTrading.AccountsManagement/subscription","commits_url":"https://api.github.com/repos/lykkecloud/MarginTrading.AccountsManagement/commits{/sha}","git_commits_url":"https://api.github.com/repos/lykkecloud/MarginTrading.AccountsManagement/git/commits{/sha}","comments_url":"https://api.github.com/repos/lykkecloud/MarginTrading.AccountsManagement/comments{/number}","issue_comment_url":"https://api.github.com/repos/lykkecloud/MarginTrading.AccountsManagement/issues/comments{/number}","contents_url":"https://api.github.com/repos/lykkecloud/MarginTrading.AccountsManagement/contents/{+path}","compare_url":"https://api.github.com/repos/lykkecloud/MarginTrading.AccountsManagement/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lykkecloud/MarginTrading.AccountsManagement/merges","archive_url":"https://api.github.com/repos/lykkecloud/MarginTrading.AccountsManagement/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lykkecloud/MarginTrading.AccountsManagement/downloads","issues_url":"https://api.github.com/repos/lykkecloud/MarginTrading.AccountsManagement/issues{/number}","pulls_url":"https://api.github.com/repos/lykkecloud/MarginTrading.AccountsManagement/pulls{/number}","milestones_url":"https://api.github.com/repos/lykkecloud/MarginTrading.AccountsManagement/milestones{/number}","notifications_url":"https://api.github.com/repos/lykkecloud/MarginTrading.AccountsManagement/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lykkecloud/MarginTrading.AccountsManagement/labels{/name}","releases_url":"https://api.github.com/repos/lykkecloud/MarginTrading.AccountsManagement/releases{/id}","deployments_url":"https://api.github.com/repos/lykkecloud/MarginTrading.AccountsManagement/deployments","created_at":"2018-04-13T08:11:52Z","updated_at":"2018-12-17T16:12:21Z","pushed_at":"2018-12-20T18:58:43Z","git_url":"git://github.com/lykkecloud/MarginTrading.AccountsManagement.git","ssh_url":"git@github.com:lykkecloud/MarginTrading.AccountsManagement.git","clone_url":"https://github.com/lykkecloud/MarginTrading.AccountsManagement.git","svn_url":"https://github.com/lykkecloud/MarginTrading.AccountsManagement","homepage":null,"size":597,"stargazers_count":0,"watchers_count":0,"language":"C#","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":2,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"lykkecloud:master","ref":"master","sha":"59b831099f9e768e9bb254bbf43098b4877e3e58","user":{"login":"lykkecloud","id":37992979,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM3OTkyOTc5","avatar_url":"https://avatars1.githubusercontent.com/u/37992979?v=4","gravatar_id":"","url":"https://api.github.com/users/lykkecloud","html_url":"https://github.com/lykkecloud","followers_url":"https://api.github.com/users/lykkecloud/followers","following_url":"https://api.github.com/users/lykkecloud/following{/other_user}","gists_url":"https://api.github.com/users/lykkecloud/gists{/gist_id}","starred_url":"https://api.github.com/users/lykkecloud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lykkecloud/subscriptions","organizations_url":"https://api.github.com/users/lykkecloud/orgs","repos_url":"https://api.github.com/users/lykkecloud/repos","events_url":"https://api.github.com/users/lykkecloud/events{/privacy}","received_events_url":"https://api.github.com/users/lykkecloud/received_events","type":"Organization","site_admin":false},"repo":{"id":129370794,"node_id":"MDEwOlJlcG9zaXRvcnkxMjkzNzA3OTQ=","name":"MarginTrading.AccountsManagement","full_name":"lykkecloud/MarginTrading.AccountsManagement","private":false,"owner":{"login":"lykkecloud","id":37992979,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM3OTkyOTc5","avatar_url":"https://avatars1.githubusercontent.com/u/37992979?v=4","gravatar_id":"","url":"https://api.github.com/users/lykkecloud","html_url":"https://github.com/lykkecloud","followers_url":"https://api.github.com/users/lykkecloud/followers","following_url":"https://api.github.com/users/lykkecloud/following{/other_user}","gists_url":"https://api.github.com/users/lykkecloud/gists{/gist_id}","starred_url":"https://api.github.com/users/lykkecloud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lykkecloud/subscriptions","organizations_url":"https://api.github.com/users/lykkecloud/orgs","repos_url":"https://api.github.com/users/lykkecloud/repos","events_url":"https://api.github.com/users/lykkecloud/events{/privacy}","received_events_url":"https://api.github.com/users/lykkecloud/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/lykkecloud/MarginTrading.AccountsManagement","description":null,"fork":false,"url":"https://api.github.com/repos/lykkecloud/MarginTrading.AccountsManagement","forks_url":"https://api.github.com/repos/lykkecloud/MarginTrading.AccountsManagement/forks","keys_url":"https://api.github.com/repos/lykkecloud/MarginTrading.AccountsManagement/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lykkecloud/MarginTrading.AccountsManagement/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lykkecloud/MarginTrading.AccountsManagement/teams","hooks_url":"https://api.github.com/repos/lykkecloud/MarginTrading.AccountsManagement/hooks","issue_events_url":"https://api.github.com/repos/lykkecloud/MarginTrading.AccountsManagement/issues/events{/number}","events_url":"https://api.github.com/repos/lykkecloud/MarginTrading.AccountsManagement/events","assignees_url":"https://api.github.com/repos/lykkecloud/MarginTrading.AccountsManagement/assignees{/user}","branches_url":"https://api.github.com/repos/lykkecloud/MarginTrading.AccountsManagement/branches{/branch}","tags_url":"https://api.github.com/repos/lykkecloud/MarginTrading.AccountsManagement/tags","blobs_url":"https://api.github.com/repos/lykkecloud/MarginTrading.AccountsManagement/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lykkecloud/MarginTrading.AccountsManagement/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lykkecloud/MarginTrading.AccountsManagement/git/refs{/sha}","trees_url":"https://api.github.com/repos/lykkecloud/MarginTrading.AccountsManagement/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lykkecloud/MarginTrading.AccountsManagement/statuses/{sha}","languages_url":"https://api.github.com/repos/lykkecloud/MarginTrading.AccountsManagement/languages","stargazers_url":"https://api.github.com/repos/lykkecloud/MarginTrading.AccountsManagement/stargazers","contributors_url":"https://api.github.com/repos/lykkecloud/MarginTrading.AccountsManagement/contributors","subscribers_url":"https://api.github.com/repos/lykkecloud/MarginTrading.AccountsManagement/subscribers","subscription_url":"https://api.github.com/repos/lykkecloud/MarginTrading.AccountsManagement/subscription","commits_url":"https://api.github.com/repos/lykkecloud/MarginTrading.AccountsManagement/commits{/sha}","git_commits_url":"https://api.github.com/repos/lykkecloud/MarginTrading.AccountsManagement/git/commits{/sha}","comments_url":"https://api.github.com/repos/lykkecloud/MarginTrading.AccountsManagement/comments{/number}","issue_comment_url":"https://api.github.com/repos/lykkecloud/MarginTrading.AccountsManagement/issues/comments{/number}","contents_url":"https://api.github.com/repos/lykkecloud/MarginTrading.AccountsManagement/contents/{+path}","compare_url":"https://api.github.com/repos/lykkecloud/MarginTrading.AccountsManagement/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lykkecloud/MarginTrading.AccountsManagement/merges","archive_url":"https://api.github.com/repos/lykkecloud/MarginTrading.AccountsManagement/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lykkecloud/MarginTrading.AccountsManagement/downloads","issues_url":"https://api.github.com/repos/lykkecloud/MarginTrading.AccountsManagement/issues{/number}","pulls_url":"https://api.github.com/repos/lykkecloud/MarginTrading.AccountsManagement/pulls{/number}","milestones_url":"https://api.github.com/repos/lykkecloud/MarginTrading.AccountsManagement/milestones{/number}","notifications_url":"https://api.github.com/repos/lykkecloud/MarginTrading.AccountsManagement/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lykkecloud/MarginTrading.AccountsManagement/labels{/name}","releases_url":"https://api.github.com/repos/lykkecloud/MarginTrading.AccountsManagement/releases{/id}","deployments_url":"https://api.github.com/repos/lykkecloud/MarginTrading.AccountsManagement/deployments","created_at":"2018-04-13T08:11:52Z","updated_at":"2018-12-17T16:12:21Z","pushed_at":"2018-12-20T18:58:43Z","git_url":"git://github.com/lykkecloud/MarginTrading.AccountsManagement.git","ssh_url":"git@github.com:lykkecloud/MarginTrading.AccountsManagement.git","clone_url":"https://github.com/lykkecloud/MarginTrading.AccountsManagement.git","svn_url":"https://github.com/lykkecloud/MarginTrading.AccountsManagement","homepage":null,"size":597,"stargazers_count":0,"watchers_count":0,"language":"C#","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":2,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/lykkecloud/MarginTrading.AccountsManagement/pulls/55"},"html":{"href":"https://github.com/lykkecloud/MarginTrading.AccountsManagement/pull/55"},"issue":{"href":"https://api.github.com/repos/lykkecloud/MarginTrading.AccountsManagement/issues/55"},"comments":{"href":"https://api.github.com/repos/lykkecloud/MarginTrading.AccountsManagement/issues/55/comments"},"review_comments":{"href":"https://api.github.com/repos/lykkecloud/MarginTrading.AccountsManagement/pulls/55/comments"},"review_comment":{"href":"https://api.github.com/repos/lykkecloud/MarginTrading.AccountsManagement/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/lykkecloud/MarginTrading.AccountsManagement/pulls/55/commits"},"statuses":{"href":"https://api.github.com/repos/lykkecloud/MarginTrading.AccountsManagement/statuses/9191c059db98cffb458da86e17c8f9fe12382807"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"andrey-anokhin"}}