{"action":"created","comment":{"url":"https://api.github.com/repos/teamsnap/teamsnap-javascript-sdk/pulls/comments/31053426","id":31053426,"diff_hunk":"@@ -0,0 +1,18 @@\n+describe 'Payment Notes', ->\n+\n+  it 'should be able to load all payment notes for a team', (done) ->\n+    teamsnap.loadPaymentNotes team.id, (err, result) ->\n+      expect(err).to.be.null\n+      result.should.be.an('array')\n+      done()\n+\n+  it 'should be able to create a payment note', (done) ->\n+    paymentNote = teamsnap.createPaymentNote()\n+    paymentNote.teamId = team.id\n+    paymentNote.memberPaymentId = 1","path":"test/paymentNotes.coffee","position":12,"original_position":12,"commit_id":"353d40ecc9d576f50c753fd9c8e546b9d7ce6b40","original_commit_id":"353d40ecc9d576f50c753fd9c8e546b9d7ce6b40","user":{"login":"kristenboydstun","id":3690464,"avatar_url":"https://avatars.githubusercontent.com/u/3690464?v=3","gravatar_id":"","url":"https://api.github.com/users/kristenboydstun","html_url":"https://github.com/kristenboydstun","followers_url":"https://api.github.com/users/kristenboydstun/followers","following_url":"https://api.github.com/users/kristenboydstun/following{/other_user}","gists_url":"https://api.github.com/users/kristenboydstun/gists{/gist_id}","starred_url":"https://api.github.com/users/kristenboydstun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kristenboydstun/subscriptions","organizations_url":"https://api.github.com/users/kristenboydstun/orgs","repos_url":"https://api.github.com/users/kristenboydstun/repos","events_url":"https://api.github.com/users/kristenboydstun/events{/privacy}","received_events_url":"https://api.github.com/users/kristenboydstun/received_events","type":"User","site_admin":false},"body":"Does this mean member payment with id 1 needs to exist already? If so, where was it created?","created_at":"2015-05-26T16:38:18Z","updated_at":"2015-05-26T16:38:18Z","html_url":"https://github.com/teamsnap/teamsnap-javascript-sdk/pull/40#discussion_r31053426","pull_request_url":"https://api.github.com/repos/teamsnap/teamsnap-javascript-sdk/pulls/40","_links":{"self":{"href":"https://api.github.com/repos/teamsnap/teamsnap-javascript-sdk/pulls/comments/31053426"},"html":{"href":"https://github.com/teamsnap/teamsnap-javascript-sdk/pull/40#discussion_r31053426"},"pull_request":{"href":"https://api.github.com/repos/teamsnap/teamsnap-javascript-sdk/pulls/40"}}},"pull_request":{"url":"https://api.github.com/repos/teamsnap/teamsnap-javascript-sdk/pulls/40","id":36064996,"html_url":"https://github.com/teamsnap/teamsnap-javascript-sdk/pull/40","diff_url":"https://github.com/teamsnap/teamsnap-javascript-sdk/pull/40.diff","patch_url":"https://github.com/teamsnap/teamsnap-javascript-sdk/pull/40.patch","issue_url":"https://api.github.com/repos/teamsnap/teamsnap-javascript-sdk/issues/40","number":40,"state":"open","locked":false,"title":"Payments","user":{"login":"matthopson","id":1891789,"avatar_url":"https://avatars.githubusercontent.com/u/1891789?v=3","gravatar_id":"","url":"https://api.github.com/users/matthopson","html_url":"https://github.com/matthopson","followers_url":"https://api.github.com/users/matthopson/followers","following_url":"https://api.github.com/users/matthopson/following{/other_user}","gists_url":"https://api.github.com/users/matthopson/gists{/gist_id}","starred_url":"https://api.github.com/users/matthopson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matthopson/subscriptions","organizations_url":"https://api.github.com/users/matthopson/orgs","repos_url":"https://api.github.com/users/matthopson/repos","events_url":"https://api.github.com/users/matthopson/events{/privacy}","received_events_url":"https://api.github.com/users/matthopson/received_events","type":"User","site_admin":false},"body":"Add methods for new payments apiv3 endpoints.","created_at":"2015-05-22T20:13:14Z","updated_at":"2015-05-26T16:38:18Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5729ccffb3e8a78dbedbf4ec6effe98d4f55c854","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/teamsnap/teamsnap-javascript-sdk/pulls/40/commits","review_comments_url":"https://api.github.com/repos/teamsnap/teamsnap-javascript-sdk/pulls/40/comments","review_comment_url":"https://api.github.com/repos/teamsnap/teamsnap-javascript-sdk/pulls/comments{/number}","comments_url":"https://api.github.com/repos/teamsnap/teamsnap-javascript-sdk/issues/40/comments","statuses_url":"https://api.github.com/repos/teamsnap/teamsnap-javascript-sdk/statuses/353d40ecc9d576f50c753fd9c8e546b9d7ce6b40","head":{"label":"teamsnap:payments","ref":"payments","sha":"353d40ecc9d576f50c753fd9c8e546b9d7ce6b40","user":{"login":"teamsnap","id":69031,"avatar_url":"https://avatars.githubusercontent.com/u/69031?v=3","gravatar_id":"","url":"https://api.github.com/users/teamsnap","html_url":"https://github.com/teamsnap","followers_url":"https://api.github.com/users/teamsnap/followers","following_url":"https://api.github.com/users/teamsnap/following{/other_user}","gists_url":"https://api.github.com/users/teamsnap/gists{/gist_id}","starred_url":"https://api.github.com/users/teamsnap/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/teamsnap/subscriptions","organizations_url":"https://api.github.com/users/teamsnap/orgs","repos_url":"https://api.github.com/users/teamsnap/repos","events_url":"https://api.github.com/users/teamsnap/events{/privacy}","received_events_url":"https://api.github.com/users/teamsnap/received_events","type":"Organization","site_admin":false},"repo":{"id":20901458,"name":"teamsnap-javascript-sdk","full_name":"teamsnap/teamsnap-javascript-sdk","owner":{"login":"teamsnap","id":69031,"avatar_url":"https://avatars.githubusercontent.com/u/69031?v=3","gravatar_id":"","url":"https://api.github.com/users/teamsnap","html_url":"https://github.com/teamsnap","followers_url":"https://api.github.com/users/teamsnap/followers","following_url":"https://api.github.com/users/teamsnap/following{/other_user}","gists_url":"https://api.github.com/users/teamsnap/gists{/gist_id}","starred_url":"https://api.github.com/users/teamsnap/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/teamsnap/subscriptions","organizations_url":"https://api.github.com/users/teamsnap/orgs","repos_url":"https://api.github.com/users/teamsnap/repos","events_url":"https://api.github.com/users/teamsnap/events{/privacy}","received_events_url":"https://api.github.com/users/teamsnap/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/teamsnap/teamsnap-javascript-sdk","description":"Javascript SDK for TeamSnap's APIv3","fork":false,"url":"https://api.github.com/repos/teamsnap/teamsnap-javascript-sdk","forks_url":"https://api.github.com/repos/teamsnap/teamsnap-javascript-sdk/forks","keys_url":"https://api.github.com/repos/teamsnap/teamsnap-javascript-sdk/keys{/key_id}","collaborators_url":"https://api.github.com/repos/teamsnap/teamsnap-javascript-sdk/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/teamsnap/teamsnap-javascript-sdk/teams","hooks_url":"https://api.github.com/repos/teamsnap/teamsnap-javascript-sdk/hooks","issue_events_url":"https://api.github.com/repos/teamsnap/teamsnap-javascript-sdk/issues/events{/number}","events_url":"https://api.github.com/repos/teamsnap/teamsnap-javascript-sdk/events","assignees_url":"https://api.github.com/repos/teamsnap/teamsnap-javascript-sdk/assignees{/user}","branches_url":"https://api.github.com/repos/teamsnap/teamsnap-javascript-sdk/branches{/branch}","tags_url":"https://api.github.com/repos/teamsnap/teamsnap-javascript-sdk/tags","blobs_url":"https://api.github.com/repos/teamsnap/teamsnap-javascript-sdk/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/teamsnap/teamsnap-javascript-sdk/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/teamsnap/teamsnap-javascript-sdk/git/refs{/sha}","trees_url":"https://api.github.com/repos/teamsnap/teamsnap-javascript-sdk/git/trees{/sha}","statuses_url":"https://api.github.com/repos/teamsnap/teamsnap-javascript-sdk/statuses/{sha}","languages_url":"https://api.github.com/repos/teamsnap/teamsnap-javascript-sdk/languages","stargazers_url":"https://api.github.com/repos/teamsnap/teamsnap-javascript-sdk/stargazers","contributors_url":"https://api.github.com/repos/teamsnap/teamsnap-javascript-sdk/contributors","subscribers_url":"https://api.github.com/repos/teamsnap/teamsnap-javascript-sdk/subscribers","subscription_url":"https://api.github.com/repos/teamsnap/teamsnap-javascript-sdk/subscription","commits_url":"https://api.github.com/repos/teamsnap/teamsnap-javascript-sdk/commits{/sha}","git_commits_url":"https://api.github.com/repos/teamsnap/teamsnap-javascript-sdk/git/commits{/sha}","comments_url":"https://api.github.com/repos/teamsnap/teamsnap-javascript-sdk/comments{/number}","issue_comment_url":"https://api.github.com/repos/teamsnap/teamsnap-javascript-sdk/issues/comments{/number}","contents_url":"https://api.github.com/repos/teamsnap/teamsnap-javascript-sdk/contents/{+path}","compare_url":"https://api.github.com/repos/teamsnap/teamsnap-javascript-sdk/compare/{base}...{head}","merges_url":"https://api.github.com/repos/teamsnap/teamsnap-javascript-sdk/merges","archive_url":"https://api.github.com/repos/teamsnap/teamsnap-javascript-sdk/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/teamsnap/teamsnap-javascript-sdk/downloads","issues_url":"https://api.github.com/repos/teamsnap/teamsnap-javascript-sdk/issues{/number}","pulls_url":"https://api.github.com/repos/teamsnap/teamsnap-javascript-sdk/pulls{/number}","milestones_url":"https://api.github.com/repos/teamsnap/teamsnap-javascript-sdk/milestones{/number}","notifications_url":"https://api.github.com/repos/teamsnap/teamsnap-javascript-sdk/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/teamsnap/teamsnap-javascript-sdk/labels{/name}","releases_url":"https://api.github.com/repos/teamsnap/teamsnap-javascript-sdk/releases{/id}","created_at":"2014-06-16T21:28:29Z","updated_at":"2015-05-08T17:41:00Z","pushed_at":"2015-05-23T00:29:05Z","git_url":"git://github.com/teamsnap/teamsnap-javascript-sdk.git","ssh_url":"git@github.com:teamsnap/teamsnap-javascript-sdk.git","clone_url":"https://github.com/teamsnap/teamsnap-javascript-sdk.git","svn_url":"https://github.com/teamsnap/teamsnap-javascript-sdk","homepage":null,"size":1736,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":4,"forks":1,"open_issues":4,"watchers":1,"default_branch":"master"}},"base":{"label":"teamsnap:master","ref":"master","sha":"06e7ce9d41a7dc38b10ab3a80b99c7449c521dad","user":{"login":"teamsnap","id":69031,"avatar_url":"https://avatars.githubusercontent.com/u/69031?v=3","gravatar_id":"","url":"https://api.github.com/users/teamsnap","html_url":"https://github.com/teamsnap","followers_url":"https://api.github.com/users/teamsnap/followers","following_url":"https://api.github.com/users/teamsnap/following{/other_user}","gists_url":"https://api.github.com/users/teamsnap/gists{/gist_id}","starred_url":"https://api.github.com/users/teamsnap/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/teamsnap/subscriptions","organizations_url":"https://api.github.com/users/teamsnap/orgs","repos_url":"https://api.github.com/users/teamsnap/repos","events_url":"https://api.github.com/users/teamsnap/events{/privacy}","received_events_url":"https://api.github.com/users/teamsnap/received_events","type":"Organization","site_admin":false},"repo":{"id":20901458,"name":"teamsnap-javascript-sdk","full_name":"teamsnap/teamsnap-javascript-sdk","owner":{"login":"teamsnap","id":69031,"avatar_url":"https://avatars.githubusercontent.com/u/69031?v=3","gravatar_id":"","url":"https://api.github.com/users/teamsnap","html_url":"https://github.com/teamsnap","followers_url":"https://api.github.com/users/teamsnap/followers","following_url":"https://api.github.com/users/teamsnap/following{/other_user}","gists_url":"https://api.github.com/users/teamsnap/gists{/gist_id}","starred_url":"https://api.github.com/users/teamsnap/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/teamsnap/subscriptions","organizations_url":"https://api.github.com/users/teamsnap/orgs","repos_url":"https://api.github.com/users/teamsnap/repos","events_url":"https://api.github.com/users/teamsnap/events{/privacy}","received_events_url":"https://api.github.com/users/teamsnap/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/teamsnap/teamsnap-javascript-sdk","description":"Javascript SDK for TeamSnap's APIv3","fork":false,"url":"https://api.github.com/repos/teamsnap/teamsnap-javascript-sdk","forks_url":"https://api.github.com/repos/teamsnap/teamsnap-javascript-sdk/forks","keys_url":"https://api.github.com/repos/teamsnap/teamsnap-javascript-sdk/keys{/key_id}","collaborators_url":"https://api.github.com/repos/teamsnap/teamsnap-javascript-sdk/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/teamsnap/teamsnap-javascript-sdk/teams","hooks_url":"https://api.github.com/repos/teamsnap/teamsnap-javascript-sdk/hooks","issue_events_url":"https://api.github.com/repos/teamsnap/teamsnap-javascript-sdk/issues/events{/number}","events_url":"https://api.github.com/repos/teamsnap/teamsnap-javascript-sdk/events","assignees_url":"https://api.github.com/repos/teamsnap/teamsnap-javascript-sdk/assignees{/user}","branches_url":"https://api.github.com/repos/teamsnap/teamsnap-javascript-sdk/branches{/branch}","tags_url":"https://api.github.com/repos/teamsnap/teamsnap-javascript-sdk/tags","blobs_url":"https://api.github.com/repos/teamsnap/teamsnap-javascript-sdk/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/teamsnap/teamsnap-javascript-sdk/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/teamsnap/teamsnap-javascript-sdk/git/refs{/sha}","trees_url":"https://api.github.com/repos/teamsnap/teamsnap-javascript-sdk/git/trees{/sha}","statuses_url":"https://api.github.com/repos/teamsnap/teamsnap-javascript-sdk/statuses/{sha}","languages_url":"https://api.github.com/repos/teamsnap/teamsnap-javascript-sdk/languages","stargazers_url":"https://api.github.com/repos/teamsnap/teamsnap-javascript-sdk/stargazers","contributors_url":"https://api.github.com/repos/teamsnap/teamsnap-javascript-sdk/contributors","subscribers_url":"https://api.github.com/repos/teamsnap/teamsnap-javascript-sdk/subscribers","subscription_url":"https://api.github.com/repos/teamsnap/teamsnap-javascript-sdk/subscription","commits_url":"https://api.github.com/repos/teamsnap/teamsnap-javascript-sdk/commits{/sha}","git_commits_url":"https://api.github.com/repos/teamsnap/teamsnap-javascript-sdk/git/commits{/sha}","comments_url":"https://api.github.com/repos/teamsnap/teamsnap-javascript-sdk/comments{/number}","issue_comment_url":"https://api.github.com/repos/teamsnap/teamsnap-javascript-sdk/issues/comments{/number}","contents_url":"https://api.github.com/repos/teamsnap/teamsnap-javascript-sdk/contents/{+path}","compare_url":"https://api.github.com/repos/teamsnap/teamsnap-javascript-sdk/compare/{base}...{head}","merges_url":"https://api.github.com/repos/teamsnap/teamsnap-javascript-sdk/merges","archive_url":"https://api.github.com/repos/teamsnap/teamsnap-javascript-sdk/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/teamsnap/teamsnap-javascript-sdk/downloads","issues_url":"https://api.github.com/repos/teamsnap/teamsnap-javascript-sdk/issues{/number}","pulls_url":"https://api.github.com/repos/teamsnap/teamsnap-javascript-sdk/pulls{/number}","milestones_url":"https://api.github.com/repos/teamsnap/teamsnap-javascript-sdk/milestones{/number}","notifications_url":"https://api.github.com/repos/teamsnap/teamsnap-javascript-sdk/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/teamsnap/teamsnap-javascript-sdk/labels{/name}","releases_url":"https://api.github.com/repos/teamsnap/teamsnap-javascript-sdk/releases{/id}","created_at":"2014-06-16T21:28:29Z","updated_at":"2015-05-08T17:41:00Z","pushed_at":"2015-05-23T00:29:05Z","git_url":"git://github.com/teamsnap/teamsnap-javascript-sdk.git","ssh_url":"git@github.com:teamsnap/teamsnap-javascript-sdk.git","clone_url":"https://github.com/teamsnap/teamsnap-javascript-sdk.git","svn_url":"https://github.com/teamsnap/teamsnap-javascript-sdk","homepage":null,"size":1736,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":4,"forks":1,"open_issues":4,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/teamsnap/teamsnap-javascript-sdk/pulls/40"},"html":{"href":"https://github.com/teamsnap/teamsnap-javascript-sdk/pull/40"},"issue":{"href":"https://api.github.com/repos/teamsnap/teamsnap-javascript-sdk/issues/40"},"comments":{"href":"https://api.github.com/repos/teamsnap/teamsnap-javascript-sdk/issues/40/comments"},"review_comments":{"href":"https://api.github.com/repos/teamsnap/teamsnap-javascript-sdk/pulls/40/comments"},"review_comment":{"href":"https://api.github.com/repos/teamsnap/teamsnap-javascript-sdk/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/teamsnap/teamsnap-javascript-sdk/pulls/40/commits"},"statuses":{"href":"https://api.github.com/repos/teamsnap/teamsnap-javascript-sdk/statuses/353d40ecc9d576f50c753fd9c8e546b9d7ce6b40"}}}}