{"action":"opened","number":37,"pull_request":{"url":"https://api.github.com/repos/singer-io/tap-xero/pulls/37","id":175381435,"html_url":"https://github.com/singer-io/tap-xero/pull/37","diff_url":"https://github.com/singer-io/tap-xero/pull/37.diff","patch_url":"https://github.com/singer-io/tap-xero/pull/37.patch","issue_url":"https://api.github.com/repos/singer-io/tap-xero/issues/37","number":37,"state":"open","locked":false,"title":"Fix formatting of overpayments and prepayments","user":{"login":"b-ryan","id":1183997,"avatar_url":"https://avatars1.githubusercontent.com/u/1183997?v=4","gravatar_id":"","url":"https://api.github.com/users/b-ryan","html_url":"https://github.com/b-ryan","followers_url":"https://api.github.com/users/b-ryan/followers","following_url":"https://api.github.com/users/b-ryan/following{/other_user}","gists_url":"https://api.github.com/users/b-ryan/gists{/gist_id}","starred_url":"https://api.github.com/users/b-ryan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/b-ryan/subscriptions","organizations_url":"https://api.github.com/users/b-ryan/orgs","repos_url":"https://api.github.com/users/b-ryan/repos","events_url":"https://api.github.com/users/b-ryan/events{/privacy}","received_events_url":"https://api.github.com/users/b-ryan/received_events","type":"User","site_admin":false},"body":"These streams, like credit notes and payments, have some crazy nesting.\r\nEarly in the tap development we decided to strip out invoices when they\r\nget very nested, because otherwise the schemas will be recursive or have\r\na significant amount of duplication. This change strips out those nested\r\nfields like the other streams.\r\n\r\nFixes #32\r\n\r\nI did not have a way to test the prepayments stream. I cannot find a way\r\nto make a prepayment - it looks like you have to first connect a bank\r\naccount. I did, however, make a sample overpayment and confirm the\r\nschema matches it.","created_at":"2018-03-15T21:17:03Z","updated_at":"2018-03-15T21:17:03Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/singer-io/tap-xero/pulls/37/commits","review_comments_url":"https://api.github.com/repos/singer-io/tap-xero/pulls/37/comments","review_comment_url":"https://api.github.com/repos/singer-io/tap-xero/pulls/comments{/number}","comments_url":"https://api.github.com/repos/singer-io/tap-xero/issues/37/comments","statuses_url":"https://api.github.com/repos/singer-io/tap-xero/statuses/a8dcb84094df88a7fd303b71ade3b56213a61b28","head":{"label":"singer-io:fix-overpayments","ref":"fix-overpayments","sha":"a8dcb84094df88a7fd303b71ade3b56213a61b28","user":{"login":"singer-io","id":25538203,"avatar_url":"https://avatars0.githubusercontent.com/u/25538203?v=4","gravatar_id":"","url":"https://api.github.com/users/singer-io","html_url":"https://github.com/singer-io","followers_url":"https://api.github.com/users/singer-io/followers","following_url":"https://api.github.com/users/singer-io/following{/other_user}","gists_url":"https://api.github.com/users/singer-io/gists{/gist_id}","starred_url":"https://api.github.com/users/singer-io/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/singer-io/subscriptions","organizations_url":"https://api.github.com/users/singer-io/orgs","repos_url":"https://api.github.com/users/singer-io/repos","events_url":"https://api.github.com/users/singer-io/events{/privacy}","received_events_url":"https://api.github.com/users/singer-io/received_events","type":"Organization","site_admin":false},"repo":{"id":99173081,"name":"tap-xero","full_name":"singer-io/tap-xero","owner":{"login":"singer-io","id":25538203,"avatar_url":"https://avatars0.githubusercontent.com/u/25538203?v=4","gravatar_id":"","url":"https://api.github.com/users/singer-io","html_url":"https://github.com/singer-io","followers_url":"https://api.github.com/users/singer-io/followers","following_url":"https://api.github.com/users/singer-io/following{/other_user}","gists_url":"https://api.github.com/users/singer-io/gists{/gist_id}","starred_url":"https://api.github.com/users/singer-io/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/singer-io/subscriptions","organizations_url":"https://api.github.com/users/singer-io/orgs","repos_url":"https://api.github.com/users/singer-io/repos","events_url":"https://api.github.com/users/singer-io/events{/privacy}","received_events_url":"https://api.github.com/users/singer-io/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/singer-io/tap-xero","description":"A Singer.io tap for extracting data from the Xero API.","fork":false,"url":"https://api.github.com/repos/singer-io/tap-xero","forks_url":"https://api.github.com/repos/singer-io/tap-xero/forks","keys_url":"https://api.github.com/repos/singer-io/tap-xero/keys{/key_id}","collaborators_url":"https://api.github.com/repos/singer-io/tap-xero/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/singer-io/tap-xero/teams","hooks_url":"https://api.github.com/repos/singer-io/tap-xero/hooks","issue_events_url":"https://api.github.com/repos/singer-io/tap-xero/issues/events{/number}","events_url":"https://api.github.com/repos/singer-io/tap-xero/events","assignees_url":"https://api.github.com/repos/singer-io/tap-xero/assignees{/user}","branches_url":"https://api.github.com/repos/singer-io/tap-xero/branches{/branch}","tags_url":"https://api.github.com/repos/singer-io/tap-xero/tags","blobs_url":"https://api.github.com/repos/singer-io/tap-xero/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/singer-io/tap-xero/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/singer-io/tap-xero/git/refs{/sha}","trees_url":"https://api.github.com/repos/singer-io/tap-xero/git/trees{/sha}","statuses_url":"https://api.github.com/repos/singer-io/tap-xero/statuses/{sha}","languages_url":"https://api.github.com/repos/singer-io/tap-xero/languages","stargazers_url":"https://api.github.com/repos/singer-io/tap-xero/stargazers","contributors_url":"https://api.github.com/repos/singer-io/tap-xero/contributors","subscribers_url":"https://api.github.com/repos/singer-io/tap-xero/subscribers","subscription_url":"https://api.github.com/repos/singer-io/tap-xero/subscription","commits_url":"https://api.github.com/repos/singer-io/tap-xero/commits{/sha}","git_commits_url":"https://api.github.com/repos/singer-io/tap-xero/git/commits{/sha}","comments_url":"https://api.github.com/repos/singer-io/tap-xero/comments{/number}","issue_comment_url":"https://api.github.com/repos/singer-io/tap-xero/issues/comments{/number}","contents_url":"https://api.github.com/repos/singer-io/tap-xero/contents/{+path}","compare_url":"https://api.github.com/repos/singer-io/tap-xero/compare/{base}...{head}","merges_url":"https://api.github.com/repos/singer-io/tap-xero/merges","archive_url":"https://api.github.com/repos/singer-io/tap-xero/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/singer-io/tap-xero/downloads","issues_url":"https://api.github.com/repos/singer-io/tap-xero/issues{/number}","pulls_url":"https://api.github.com/repos/singer-io/tap-xero/pulls{/number}","milestones_url":"https://api.github.com/repos/singer-io/tap-xero/milestones{/number}","notifications_url":"https://api.github.com/repos/singer-io/tap-xero/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/singer-io/tap-xero/labels{/name}","releases_url":"https://api.github.com/repos/singer-io/tap-xero/releases{/id}","deployments_url":"https://api.github.com/repos/singer-io/tap-xero/deployments","created_at":"2017-08-03T00:34:03Z","updated_at":"2018-03-13T21:13:54Z","pushed_at":"2018-03-15T21:16:36Z","git_url":"git://github.com/singer-io/tap-xero.git","ssh_url":"git@github.com:singer-io/tap-xero.git","clone_url":"https://github.com/singer-io/tap-xero.git","svn_url":"https://github.com/singer-io/tap-xero","homepage":null,"size":106,"stargazers_count":3,"watchers_count":3,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":5,"license":{"key":"agpl-3.0","name":"GNU Affero General Public License v3.0","spdx_id":"AGPL-3.0","url":"https://api.github.com/licenses/agpl-3.0"},"forks":1,"open_issues":5,"watchers":3,"default_branch":"master"}},"base":{"label":"singer-io:master","ref":"master","sha":"20690c73d0ba2044eabe7d245b24f5044ade57c6","user":{"login":"singer-io","id":25538203,"avatar_url":"https://avatars0.githubusercontent.com/u/25538203?v=4","gravatar_id":"","url":"https://api.github.com/users/singer-io","html_url":"https://github.com/singer-io","followers_url":"https://api.github.com/users/singer-io/followers","following_url":"https://api.github.com/users/singer-io/following{/other_user}","gists_url":"https://api.github.com/users/singer-io/gists{/gist_id}","starred_url":"https://api.github.com/users/singer-io/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/singer-io/subscriptions","organizations_url":"https://api.github.com/users/singer-io/orgs","repos_url":"https://api.github.com/users/singer-io/repos","events_url":"https://api.github.com/users/singer-io/events{/privacy}","received_events_url":"https://api.github.com/users/singer-io/received_events","type":"Organization","site_admin":false},"repo":{"id":99173081,"name":"tap-xero","full_name":"singer-io/tap-xero","owner":{"login":"singer-io","id":25538203,"avatar_url":"https://avatars0.githubusercontent.com/u/25538203?v=4","gravatar_id":"","url":"https://api.github.com/users/singer-io","html_url":"https://github.com/singer-io","followers_url":"https://api.github.com/users/singer-io/followers","following_url":"https://api.github.com/users/singer-io/following{/other_user}","gists_url":"https://api.github.com/users/singer-io/gists{/gist_id}","starred_url":"https://api.github.com/users/singer-io/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/singer-io/subscriptions","organizations_url":"https://api.github.com/users/singer-io/orgs","repos_url":"https://api.github.com/users/singer-io/repos","events_url":"https://api.github.com/users/singer-io/events{/privacy}","received_events_url":"https://api.github.com/users/singer-io/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/singer-io/tap-xero","description":"A Singer.io tap for extracting data from the Xero API.","fork":false,"url":"https://api.github.com/repos/singer-io/tap-xero","forks_url":"https://api.github.com/repos/singer-io/tap-xero/forks","keys_url":"https://api.github.com/repos/singer-io/tap-xero/keys{/key_id}","collaborators_url":"https://api.github.com/repos/singer-io/tap-xero/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/singer-io/tap-xero/teams","hooks_url":"https://api.github.com/repos/singer-io/tap-xero/hooks","issue_events_url":"https://api.github.com/repos/singer-io/tap-xero/issues/events{/number}","events_url":"https://api.github.com/repos/singer-io/tap-xero/events","assignees_url":"https://api.github.com/repos/singer-io/tap-xero/assignees{/user}","branches_url":"https://api.github.com/repos/singer-io/tap-xero/branches{/branch}","tags_url":"https://api.github.com/repos/singer-io/tap-xero/tags","blobs_url":"https://api.github.com/repos/singer-io/tap-xero/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/singer-io/tap-xero/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/singer-io/tap-xero/git/refs{/sha}","trees_url":"https://api.github.com/repos/singer-io/tap-xero/git/trees{/sha}","statuses_url":"https://api.github.com/repos/singer-io/tap-xero/statuses/{sha}","languages_url":"https://api.github.com/repos/singer-io/tap-xero/languages","stargazers_url":"https://api.github.com/repos/singer-io/tap-xero/stargazers","contributors_url":"https://api.github.com/repos/singer-io/tap-xero/contributors","subscribers_url":"https://api.github.com/repos/singer-io/tap-xero/subscribers","subscription_url":"https://api.github.com/repos/singer-io/tap-xero/subscription","commits_url":"https://api.github.com/repos/singer-io/tap-xero/commits{/sha}","git_commits_url":"https://api.github.com/repos/singer-io/tap-xero/git/commits{/sha}","comments_url":"https://api.github.com/repos/singer-io/tap-xero/comments{/number}","issue_comment_url":"https://api.github.com/repos/singer-io/tap-xero/issues/comments{/number}","contents_url":"https://api.github.com/repos/singer-io/tap-xero/contents/{+path}","compare_url":"https://api.github.com/repos/singer-io/tap-xero/compare/{base}...{head}","merges_url":"https://api.github.com/repos/singer-io/tap-xero/merges","archive_url":"https://api.github.com/repos/singer-io/tap-xero/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/singer-io/tap-xero/downloads","issues_url":"https://api.github.com/repos/singer-io/tap-xero/issues{/number}","pulls_url":"https://api.github.com/repos/singer-io/tap-xero/pulls{/number}","milestones_url":"https://api.github.com/repos/singer-io/tap-xero/milestones{/number}","notifications_url":"https://api.github.com/repos/singer-io/tap-xero/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/singer-io/tap-xero/labels{/name}","releases_url":"https://api.github.com/repos/singer-io/tap-xero/releases{/id}","deployments_url":"https://api.github.com/repos/singer-io/tap-xero/deployments","created_at":"2017-08-03T00:34:03Z","updated_at":"2018-03-13T21:13:54Z","pushed_at":"2018-03-15T21:16:36Z","git_url":"git://github.com/singer-io/tap-xero.git","ssh_url":"git@github.com:singer-io/tap-xero.git","clone_url":"https://github.com/singer-io/tap-xero.git","svn_url":"https://github.com/singer-io/tap-xero","homepage":null,"size":106,"stargazers_count":3,"watchers_count":3,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":5,"license":{"key":"agpl-3.0","name":"GNU Affero General Public License v3.0","spdx_id":"AGPL-3.0","url":"https://api.github.com/licenses/agpl-3.0"},"forks":1,"open_issues":5,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/singer-io/tap-xero/pulls/37"},"html":{"href":"https://github.com/singer-io/tap-xero/pull/37"},"issue":{"href":"https://api.github.com/repos/singer-io/tap-xero/issues/37"},"comments":{"href":"https://api.github.com/repos/singer-io/tap-xero/issues/37/comments"},"review_comments":{"href":"https://api.github.com/repos/singer-io/tap-xero/pulls/37/comments"},"review_comment":{"href":"https://api.github.com/repos/singer-io/tap-xero/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/singer-io/tap-xero/pulls/37/commits"},"statuses":{"href":"https://api.github.com/repos/singer-io/tap-xero/statuses/a8dcb84094df88a7fd303b71ade3b56213a61b28"}},"author_association":"COLLABORATOR","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":1,"additions":13,"deletions":2,"changed_files":3}}
{"actor":{"display_login":"b-ryan"}}