payload: {"action":"created","comment":{"url":"https://api.github.com/repos/hyperledger/aries-framework-go/pulls/comments/327316802","pull_request_review_id":292037796,"id":327316802,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDMyNzMxNjgwMg==","diff_hunk":"@@ -48,18 +49,39 @@ func New(ctx provider) (*Client, error) {\n }\n \n // CreateInvitation create invitation\n-func (c *Client) CreateInvitation() (*InvitationRequest, error) {\n+func (c *Client) CreateInvitation() (*didexchange.Invitation, error) {\n \tverKey, err := c.wallet.CreateKey()\n \tif err != nil {\n \t\treturn nil, fmt.Errorf(\"failed CreateSigningKey: %w\", err)\n \t}\n \n-\treturn &InvitationRequest{Invitation: &didexchange.Invitation{\n+\treturn &didexchange.Invitation{\n \t\tID:              uuid.New().String(),\n \t\tLabel:           \"agent\", // TODO pass label as argument\n \t\tRecipientKeys:   []string{verKey},\n \t\tServiceEndpoint: c.inboundTransportEndpoint,\n-\t}}, nil\n+\t\tType:            didexchange.ConnectionInvite,\n+\t}, nil\n+}\n+\n+// HandleInvitation handle incoming invitation\n+func (c *Client) HandleInvitation(payload []byte) error {","path":"pkg/client/didexchange/client.go","position":31,"original_position":31,"commit_id":"235726b6c4658a02b710d885918d190b281db974","original_commit_id":"235726b6c4658a02b710d885918d190b281db974","user":{"login":"troyronda","id":1906596,"node_id":"MDQ6VXNlcjE5MDY1OTY=","avatar_url":"https://avatars1.githubusercontent.com/u/1906596?v=4","gravatar_id":"","url":"https://api.github.com/users/troyronda","html_url":"https://github.com/troyronda","followers_url":"https://api.github.com/users/troyronda/followers","following_url":"https://api.github.com/users/troyronda/following{/other_user}","gists_url":"https://api.github.com/users/troyronda/gists{/gist_id}","starred_url":"https://api.github.com/users/troyronda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/troyronda/subscriptions","organizations_url":"https://api.github.com/users/troyronda/orgs","repos_url":"https://api.github.com/users/troyronda/repos","events_url":"https://api.github.com/users/troyronda/events{/privacy}","received_events_url":"https://api.github.com/users/troyronda/received_events","type":"User","site_admin":false},"body":"I generally tend to think struct.","created_at":"2019-09-23T20:35:28Z","updated_at":"2019-09-23T20:35:28Z","html_url":"https://github.com/hyperledger/aries-framework-go/pull/320#discussion_r327316802","pull_request_url":"https://api.github.com/repos/hyperledger/aries-framework-go/pulls/320","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/hyperledger/aries-framework-go/pulls/comments/327316802"},"html":{"href":"https://github.com/hyperledger/aries-framework-go/pull/320#discussion_r327316802"},"pull_request":{"href":"https://api.github.com/repos/hyperledger/aries-framework-go/pulls/320"}},"in_reply_to_id":327314439},"pull_request":{"url":"https://api.github.com/repos/hyperledger/aries-framework-go/pulls/320","id":320428081,"node_id":"MDExOlB1bGxSZXF1ZXN0MzIwNDI4MDgx","html_url":"https://github.com/hyperledger/aries-framework-go/pull/320","diff_url":"https://github.com/hyperledger/aries-framework-go/pull/320.diff","patch_url":"https://github.com/hyperledger/aries-framework-go/pull/320.patch","issue_url":"https://api.github.com/repos/hyperledger/aries-framework-go/issues/320","number":320,"state":"open","locked":false,"title":"feat: DID Exchange Client - HandleInvitation()","user":{"login":"fqutishat","id":19859799,"node_id":"MDQ6VXNlcjE5ODU5Nzk5","avatar_url":"https://avatars1.githubusercontent.com/u/19859799?v=4","gravatar_id":"","url":"https://api.github.com/users/fqutishat","html_url":"https://github.com/fqutishat","followers_url":"https://api.github.com/users/fqutishat/followers","following_url":"https://api.github.com/users/fqutishat/following{/other_user}","gists_url":"https://api.github.com/users/fqutishat/gists{/gist_id}","starred_url":"https://api.github.com/users/fqutishat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fqutishat/subscriptions","organizations_url":"https://api.github.com/users/fqutishat/orgs","repos_url":"https://api.github.com/users/fqutishat/repos","events_url":"https://api.github.com/users/fqutishat/events{/privacy}","received_events_url":"https://api.github.com/users/fqutishat/received_events","type":"User","site_admin":false},"body":"- Add HandleInvitation method\r\n\r\ncloses #277\r\n\r\nSigned-off-by: Firas Qutishat <firas.qutishat@securekey.com>\r\n","created_at":"2019-09-23T18:43:54Z","updated_at":"2019-09-23T20:35:28Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6122a85b50a78c9bd1439fcbc12fb7f39ded8057","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/hyperledger/aries-framework-go/pulls/320/commits","review_comments_url":"https://api.github.com/repos/hyperledger/aries-framework-go/pulls/320/comments","review_comment_url":"https://api.github.com/repos/hyperledger/aries-framework-go/pulls/comments{/number}","comments_url":"https://api.github.com/repos/hyperledger/aries-framework-go/issues/320/comments","statuses_url":"https://api.github.com/repos/hyperledger/aries-framework-go/statuses/235726b6c4658a02b710d885918d190b281db974","head":{"label":"fqutishat:277","ref":"277","sha":"235726b6c4658a02b710d885918d190b281db974","user":{"login":"fqutishat","id":19859799,"node_id":"MDQ6VXNlcjE5ODU5Nzk5","avatar_url":"https://avatars1.githubusercontent.com/u/19859799?v=4","gravatar_id":"","url":"https://api.github.com/users/fqutishat","html_url":"https://github.com/fqutishat","followers_url":"https://api.github.com/users/fqutishat/followers","following_url":"https://api.github.com/users/fqutishat/following{/other_user}","gists_url":"https://api.github.com/users/fqutishat/gists{/gist_id}","starred_url":"https://api.github.com/users/fqutishat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fqutishat/subscriptions","organizations_url":"https://api.github.com/users/fqutishat/orgs","repos_url":"https://api.github.com/users/fqutishat/repos","events_url":"https://api.github.com/users/fqutishat/events{/privacy}","received_events_url":"https://api.github.com/users/fqutishat/received_events","type":"User","site_admin":false},"repo":{"id":197205675,"node_id":"MDEwOlJlcG9zaXRvcnkxOTcyMDU2NzU=","name":"aries-framework-go","full_name":"fqutishat/aries-framework-go","private":false,"owner":{"login":"fqutishat","id":19859799,"node_id":"MDQ6VXNlcjE5ODU5Nzk5","avatar_url":"https://avatars1.githubusercontent.com/u/19859799?v=4","gravatar_id":"","url":"https://api.github.com/users/fqutishat","html_url":"https://github.com/fqutishat","followers_url":"https://api.github.com/users/fqutishat/followers","following_url":"https://api.github.com/users/fqutishat/following{/other_user}","gists_url":"https://api.github.com/users/fqutishat/gists{/gist_id}","starred_url":"https://api.github.com/users/fqutishat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fqutishat/subscriptions","organizations_url":"https://api.github.com/users/fqutishat/orgs","repos_url":"https://api.github.com/users/fqutishat/repos","events_url":"https://api.github.com/users/fqutishat/events{/privacy}","received_events_url":"https://api.github.com/users/fqutishat/received_events","type":"User","site_admin":false},"html_url":"https://github.com/fqutishat/aries-framework-go","description":"Hyperledger Aries Framework Go provides packages for building Agent / DIDComm services","fork":true,"url":"https://api.github.com/repos/fqutishat/aries-framework-go","forks_url":"https://api.github.com/repos/fqutishat/aries-framework-go/forks","keys_url":"https://api.github.com/repos/fqutishat/aries-framework-go/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fqutishat/aries-framework-go/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fqutishat/aries-framework-go/teams","hooks_url":"https://api.github.com/repos/fqutishat/aries-framework-go/hooks","issue_events_url":"https://api.github.com/repos/fqutishat/aries-framework-go/issues/events{/number}","events_url":"https://api.github.com/repos/fqutishat/aries-framework-go/events","assignees_url":"https://api.github.com/repos/fqutishat/aries-framework-go/assignees{/user}","branches_url":"https://api.github.com/repos/fqutishat/aries-framework-go/branches{/branch}","tags_url":"https://api.github.com/repos/fqutishat/aries-framework-go/tags","blobs_url":"https://api.github.com/repos/fqutishat/aries-framework-go/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fqutishat/aries-framework-go/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fqutishat/aries-framework-go/git/refs{/sha}","trees_url":"https://api.github.com/repos/fqutishat/aries-framework-go/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fqutishat/aries-framework-go/statuses/{sha}","languages_url":"https://api.github.com/repos/fqutishat/aries-framework-go/languages","stargazers_url":"https://api.github.com/repos/fqutishat/aries-framework-go/stargazers","contributors_url":"https://api.github.com/repos/fqutishat/aries-framework-go/contributors","subscribers_url":"https://api.github.com/repos/fqutishat/aries-framework-go/subscribers","subscription_url":"https://api.github.com/repos/fqutishat/aries-framework-go/subscription","commits_url":"https://api.github.com/repos/fqutishat/aries-framework-go/commits{/sha}","git_commits_url":"https://api.github.com/repos/fqutishat/aries-framework-go/git/commits{/sha}","comments_url":"https://api.github.com/repos/fqutishat/aries-framework-go/comments{/number}","issue_comment_url":"https://api.github.com/repos/fqutishat/aries-framework-go/issues/comments{/number}","contents_url":"https://api.github.com/repos/fqutishat/aries-framework-go/contents/{+path}","compare_url":"https://api.github.com/repos/fqutishat/aries-framework-go/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fqutishat/aries-framework-go/merges","archive_url":"https://api.github.com/repos/fqutishat/aries-framework-go/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fqutishat/aries-framework-go/downloads","issues_url":"https://api.github.com/repos/fqutishat/aries-framework-go/issues{/number}","pulls_url":"https://api.github.com/repos/fqutishat/aries-framework-go/pulls{/number}","milestones_url":"https://api.github.com/repos/fqutishat/aries-framework-go/milestones{/number}","notifications_url":"https://api.github.com/repos/fqutishat/aries-framework-go/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fqutishat/aries-framework-go/labels{/name}","releases_url":"https://api.github.com/repos/fqutishat/aries-framework-go/releases{/id}","deployments_url":"https://api.github.com/repos/fqutishat/aries-framework-go/deployments","created_at":"2019-07-16T14:04:18Z","updated_at":"2019-08-23T16:56:15Z","pushed_at":"2019-09-23T20:23:10Z","git_url":"git://github.com/fqutishat/aries-framework-go.git","ssh_url":"git@github.com:fqutishat/aries-framework-go.git","clone_url":"https://github.com/fqutishat/aries-framework-go.git","svn_url":"https://github.com/fqutishat/aries-framework-go","homepage":"https://wiki.hyperledger.org/display/ARIES/aries-framework-go","size":504,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":0,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"hyperledger:master","ref":"master","sha":"4c08ce08442a57cd9fa2f40152f1269a9a9b91cd","user":{"login":"hyperledger","id":7657900,"node_id":"MDEyOk9yZ2FuaXphdGlvbjc2NTc5MDA=","avatar_url":"https://avatars2.githubusercontent.com/u/7657900?v=4","gravatar_id":"","url":"https://api.github.com/users/hyperledger","html_url":"https://github.com/hyperledger","followers_url":"https://api.github.com/users/hyperledger/followers","following_url":"https://api.github.com/users/hyperledger/following{/other_user}","gists_url":"https://api.github.com/users/hyperledger/gists{/gist_id}","starred_url":"https://api.github.com/users/hyperledger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hyperledger/subscriptions","organizations_url":"https://api.github.com/users/hyperledger/orgs","repos_url":"https://api.github.com/users/hyperledger/repos","events_url":"https://api.github.com/users/hyperledger/events{/privacy}","received_events_url":"https://api.github.com/users/hyperledger/received_events","type":"Organization","site_admin":false},"repo":{"id":196081240,"node_id":"MDEwOlJlcG9zaXRvcnkxOTYwODEyNDA=","name":"aries-framework-go","full_name":"hyperledger/aries-framework-go","private":false,"owner":{"login":"hyperledger","id":7657900,"node_id":"MDEyOk9yZ2FuaXphdGlvbjc2NTc5MDA=","avatar_url":"https://avatars2.githubusercontent.com/u/7657900?v=4","gravatar_id":"","url":"https://api.github.com/users/hyperledger","html_url":"https://github.com/hyperledger","followers_url":"https://api.github.com/users/hyperledger/followers","following_url":"https://api.github.com/users/hyperledger/following{/other_user}","gists_url":"https://api.github.com/users/hyperledger/gists{/gist_id}","starred_url":"https://api.github.com/users/hyperledger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hyperledger/subscriptions","organizations_url":"https://api.github.com/users/hyperledger/orgs","repos_url":"https://api.github.com/users/hyperledger/repos","events_url":"https://api.github.com/users/hyperledger/events{/privacy}","received_events_url":"https://api.github.com/users/hyperledger/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/hyperledger/aries-framework-go","description":"Hyperledger Aries Framework Go provides packages for building Agent / DIDComm services","fork":false,"url":"https://api.github.com/repos/hyperledger/aries-framework-go","forks_url":"https://api.github.com/repos/hyperledger/aries-framework-go/forks","keys_url":"https://api.github.com/repos/hyperledger/aries-framework-go/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hyperledger/aries-framework-go/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hyperledger/aries-framework-go/teams","hooks_url":"https://api.github.com/repos/hyperledger/aries-framework-go/hooks","issue_events_url":"https://api.github.com/repos/hyperledger/aries-framework-go/issues/events{/number}","events_url":"https://api.github.com/repos/hyperledger/aries-framework-go/events","assignees_url":"https://api.github.com/repos/hyperledger/aries-framework-go/assignees{/user}","branches_url":"https://api.github.com/repos/hyperledger/aries-framework-go/branches{/branch}","tags_url":"https://api.github.com/repos/hyperledger/aries-framework-go/tags","blobs_url":"https://api.github.com/repos/hyperledger/aries-framework-go/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hyperledger/aries-framework-go/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hyperledger/aries-framework-go/git/refs{/sha}","trees_url":"https://api.github.com/repos/hyperledger/aries-framework-go/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hyperledger/aries-framework-go/statuses/{sha}","languages_url":"https://api.github.com/repos/hyperledger/aries-framework-go/languages","stargazers_url":"https://api.github.com/repos/hyperledger/aries-framework-go/stargazers","contributors_url":"https://api.github.com/repos/hyperledger/aries-framework-go/contributors","subscribers_url":"https://api.github.com/repos/hyperledger/aries-framework-go/subscribers","subscription_url":"https://api.github.com/repos/hyperledger/aries-framework-go/subscription","commits_url":"https://api.github.com/repos/hyperledger/aries-framework-go/commits{/sha}","git_commits_url":"https://api.github.com/repos/hyperledger/aries-framework-go/git/commits{/sha}","comments_url":"https://api.github.com/repos/hyperledger/aries-framework-go/comments{/number}","issue_comment_url":"https://api.github.com/repos/hyperledger/aries-framework-go/issues/comments{/number}","contents_url":"https://api.github.com/repos/hyperledger/aries-framework-go/contents/{+path}","compare_url":"https://api.github.com/repos/hyperledger/aries-framework-go/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hyperledger/aries-framework-go/merges","archive_url":"https://api.github.com/repos/hyperledger/aries-framework-go/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hyperledger/aries-framework-go/downloads","issues_url":"https://api.github.com/repos/hyperledger/aries-framework-go/issues{/number}","pulls_url":"https://api.github.com/repos/hyperledger/aries-framework-go/pulls{/number}","milestones_url":"https://api.github.com/repos/hyperledger/aries-framework-go/milestones{/number}","notifications_url":"https://api.github.com/repos/hyperledger/aries-framework-go/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hyperledger/aries-framework-go/labels{/name}","releases_url":"https://api.github.com/repos/hyperledger/aries-framework-go/releases{/id}","deployments_url":"https://api.github.com/repos/hyperledger/aries-framework-go/deployments","created_at":"2019-07-09T20:45:08Z","updated_at":"2019-09-23T20:02:42Z","pushed_at":"2019-09-23T20:30:37Z","git_url":"git://github.com/hyperledger/aries-framework-go.git","ssh_url":"git@github.com:hyperledger/aries-framework-go.git","clone_url":"https://github.com/hyperledger/aries-framework-go.git","svn_url":"https://github.com/hyperledger/aries-framework-go","homepage":"https://wiki.hyperledger.org/display/ARIES/aries-framework-go","size":498,"stargazers_count":22,"watchers_count":22,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":16,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":110,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":16,"open_issues":110,"watchers":22,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/hyperledger/aries-framework-go/pulls/320"},"html":{"href":"https://github.com/hyperledger/aries-framework-go/pull/320"},"issue":{"href":"https://api.github.com/repos/hyperledger/aries-framework-go/issues/320"},"comments":{"href":"https://api.github.com/repos/hyperledger/aries-framework-go/issues/320/comments"},"review_comments":{"href":"https://api.github.com/repos/hyperledger/aries-framework-go/pulls/320/comments"},"review_comment":{"href":"https://api.github.com/repos/hyperledger/aries-framework-go/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/hyperledger/aries-framework-go/pulls/320/commits"},"statuses":{"href":"https://api.github.com/repos/hyperledger/aries-framework-go/statuses/235726b6c4658a02b710d885918d190b281db974"}},"author_association":"CONTRIBUTOR"}}
other: {"actor":{"display_login":"troyronda"}}