{"action":"opened","number":136,"pull_request":{"url":"https://api.github.com/repos/XeroAPI/Xero-Net/pulls/136","id":52012702,"html_url":"https://github.com/XeroAPI/Xero-Net/pull/136","diff_url":"https://github.com/XeroAPI/Xero-Net/pull/136.diff","patch_url":"https://github.com/XeroAPI/Xero-Net/pull/136.patch","issue_url":"https://api.github.com/repos/XeroAPI/Xero-Net/issues/136","number":136,"state":"open","locked":false,"title":"Added Paid and Voided statuses to PrepaymentStatus and remove Deleted…","user":{"login":"fnakashima","id":8720157,"avatar_url":"https://avatars.githubusercontent.com/u/8720157?v=3","gravatar_id":"","url":"https://api.github.com/users/fnakashima","html_url":"https://github.com/fnakashima","followers_url":"https://api.github.com/users/fnakashima/followers","following_url":"https://api.github.com/users/fnakashima/following{/other_user}","gists_url":"https://api.github.com/users/fnakashima/gists{/gist_id}","starred_url":"https://api.github.com/users/fnakashima/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fnakashima/subscriptions","organizations_url":"https://api.github.com/users/fnakashima/orgs","repos_url":"https://api.github.com/users/fnakashima/repos","events_url":"https://api.github.com/users/fnakashima/events{/privacy}","received_events_url":"https://api.github.com/users/fnakashima/received_events","type":"User","site_admin":false},"body":"According to Xero online document, there are three types of statuses for Prepayment API.\r\nhttp://developer.xero.com/documentation/api/types/#PrepaymentStatuses\r\n* AUTHORISED\r\n* PAID\r\n* VOIDED\r\n\r\nHowever, enum PrepaymentStatus in Xero-Net has got only two statuses as below.\r\n```C#\r\n    public enum PrepaymentStatus\r\n    {\r\n        [EnumMember(Value = \"AUTHORISED\")]\r\n        Authorised,\r\n        [EnumMember(Value = \"DELETED\")]\r\n        Deleted\r\n    }\r\n```\r\nTherefore, VOIDED status goes to Authorised (Default enum value) as there is no matched status.\r\n\r\nThis should be like this.\r\n```C#\r\n    public enum PrepaymentStatus\r\n    {\r\n        [EnumMember(Value = \"AUTHORISED\")]\r\n        Authorised,\r\n        [EnumMember(Value = \"PAID\")]\r\n        Paid,\r\n        [EnumMember(Value = \"VOIDED\")]\r\n        Voided\r\n    }\r\n```\r\nI have already checked it with the following test code and it works fine.\r\nI can see all the statuses with this change as expected.\r\n```C#\r\n            var prepayments = _api.Prepayments.Find().ToList();\r\n            foreach (var prepayment in prepayments)\r\n            {\r\n                Console.WriteLine(\"Id:\" + prepayment.Id);\r\n                Console.WriteLine(\"Date:\" + prepayment.Date);\r\n                Console.WriteLine(\"Total:\" + prepayment.Total);\r\n                Console.WriteLine(\"Status:\" + prepayment.Status);\r\n                Console.WriteLine(\"Type:\" + prepayment.Type);\r\n            }\r\n```\r\n\r\nThanks.","created_at":"2015-11-27T16:55:46Z","updated_at":"2015-11-27T16:55:46Z","closed_at":null,"merged_at":null,"merge_commit_sha":"02e3fb8980a7d178b955cdb9c956d00b58185c89","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/XeroAPI/Xero-Net/pulls/136/commits","review_comments_url":"https://api.github.com/repos/XeroAPI/Xero-Net/pulls/136/comments","review_comment_url":"https://api.github.com/repos/XeroAPI/Xero-Net/pulls/comments{/number}","comments_url":"https://api.github.com/repos/XeroAPI/Xero-Net/issues/136/comments","statuses_url":"https://api.github.com/repos/XeroAPI/Xero-Net/statuses/62ebfddf78dac048e81fa3038973811c8f130f95","head":{"label":"fnakashima:Skwile/Prepayments","ref":"Skwile/Prepayments","sha":"62ebfddf78dac048e81fa3038973811c8f130f95","user":{"login":"fnakashima","id":8720157,"avatar_url":"https://avatars.githubusercontent.com/u/8720157?v=3","gravatar_id":"","url":"https://api.github.com/users/fnakashima","html_url":"https://github.com/fnakashima","followers_url":"https://api.github.com/users/fnakashima/followers","following_url":"https://api.github.com/users/fnakashima/following{/other_user}","gists_url":"https://api.github.com/users/fnakashima/gists{/gist_id}","starred_url":"https://api.github.com/users/fnakashima/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fnakashima/subscriptions","organizations_url":"https://api.github.com/users/fnakashima/orgs","repos_url":"https://api.github.com/users/fnakashima/repos","events_url":"https://api.github.com/users/fnakashima/events{/privacy}","received_events_url":"https://api.github.com/users/fnakashima/received_events","type":"User","site_admin":false},"repo":{"id":46048161,"name":"Xero-Net","full_name":"fnakashima/Xero-Net","owner":{"login":"fnakashima","id":8720157,"avatar_url":"https://avatars.githubusercontent.com/u/8720157?v=3","gravatar_id":"","url":"https://api.github.com/users/fnakashima","html_url":"https://github.com/fnakashima","followers_url":"https://api.github.com/users/fnakashima/followers","following_url":"https://api.github.com/users/fnakashima/following{/other_user}","gists_url":"https://api.github.com/users/fnakashima/gists{/gist_id}","starred_url":"https://api.github.com/users/fnakashima/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fnakashima/subscriptions","organizations_url":"https://api.github.com/users/fnakashima/orgs","repos_url":"https://api.github.com/users/fnakashima/repos","events_url":"https://api.github.com/users/fnakashima/events{/privacy}","received_events_url":"https://api.github.com/users/fnakashima/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/fnakashima/Xero-Net","description":"A skinny wrapper of the Xero API. Supports Payroll, Accounting & Files","fork":true,"url":"https://api.github.com/repos/fnakashima/Xero-Net","forks_url":"https://api.github.com/repos/fnakashima/Xero-Net/forks","keys_url":"https://api.github.com/repos/fnakashima/Xero-Net/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fnakashima/Xero-Net/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fnakashima/Xero-Net/teams","hooks_url":"https://api.github.com/repos/fnakashima/Xero-Net/hooks","issue_events_url":"https://api.github.com/repos/fnakashima/Xero-Net/issues/events{/number}","events_url":"https://api.github.com/repos/fnakashima/Xero-Net/events","assignees_url":"https://api.github.com/repos/fnakashima/Xero-Net/assignees{/user}","branches_url":"https://api.github.com/repos/fnakashima/Xero-Net/branches{/branch}","tags_url":"https://api.github.com/repos/fnakashima/Xero-Net/tags","blobs_url":"https://api.github.com/repos/fnakashima/Xero-Net/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fnakashima/Xero-Net/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fnakashima/Xero-Net/git/refs{/sha}","trees_url":"https://api.github.com/repos/fnakashima/Xero-Net/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fnakashima/Xero-Net/statuses/{sha}","languages_url":"https://api.github.com/repos/fnakashima/Xero-Net/languages","stargazers_url":"https://api.github.com/repos/fnakashima/Xero-Net/stargazers","contributors_url":"https://api.github.com/repos/fnakashima/Xero-Net/contributors","subscribers_url":"https://api.github.com/repos/fnakashima/Xero-Net/subscribers","subscription_url":"https://api.github.com/repos/fnakashima/Xero-Net/subscription","commits_url":"https://api.github.com/repos/fnakashima/Xero-Net/commits{/sha}","git_commits_url":"https://api.github.com/repos/fnakashima/Xero-Net/git/commits{/sha}","comments_url":"https://api.github.com/repos/fnakashima/Xero-Net/comments{/number}","issue_comment_url":"https://api.github.com/repos/fnakashima/Xero-Net/issues/comments{/number}","contents_url":"https://api.github.com/repos/fnakashima/Xero-Net/contents/{+path}","compare_url":"https://api.github.com/repos/fnakashima/Xero-Net/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fnakashima/Xero-Net/merges","archive_url":"https://api.github.com/repos/fnakashima/Xero-Net/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fnakashima/Xero-Net/downloads","issues_url":"https://api.github.com/repos/fnakashima/Xero-Net/issues{/number}","pulls_url":"https://api.github.com/repos/fnakashima/Xero-Net/pulls{/number}","milestones_url":"https://api.github.com/repos/fnakashima/Xero-Net/milestones{/number}","notifications_url":"https://api.github.com/repos/fnakashima/Xero-Net/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fnakashima/Xero-Net/labels{/name}","releases_url":"https://api.github.com/repos/fnakashima/Xero-Net/releases{/id}","created_at":"2015-11-12T11:20:18Z","updated_at":"2015-11-12T11:20:20Z","pushed_at":"2015-11-27T16:44:09Z","git_url":"git://github.com/fnakashima/Xero-Net.git","ssh_url":"git@github.com:fnakashima/Xero-Net.git","clone_url":"https://github.com/fnakashima/Xero-Net.git","svn_url":"https://github.com/fnakashima/Xero-Net","homepage":"http://developer.xero.com/","size":5370,"stargazers_count":0,"watchers_count":0,"language":"C#","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"XeroAPI:master","ref":"master","sha":"8f0f4329a45fe8201ca4c2245499adf9bb29acfc","user":{"login":"XeroAPI","id":242786,"avatar_url":"https://avatars.githubusercontent.com/u/242786?v=3","gravatar_id":"","url":"https://api.github.com/users/XeroAPI","html_url":"https://github.com/XeroAPI","followers_url":"https://api.github.com/users/XeroAPI/followers","following_url":"https://api.github.com/users/XeroAPI/following{/other_user}","gists_url":"https://api.github.com/users/XeroAPI/gists{/gist_id}","starred_url":"https://api.github.com/users/XeroAPI/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/XeroAPI/subscriptions","organizations_url":"https://api.github.com/users/XeroAPI/orgs","repos_url":"https://api.github.com/users/XeroAPI/repos","events_url":"https://api.github.com/users/XeroAPI/events{/privacy}","received_events_url":"https://api.github.com/users/XeroAPI/received_events","type":"Organization","site_admin":false},"repo":{"id":21447418,"name":"Xero-Net","full_name":"XeroAPI/Xero-Net","owner":{"login":"XeroAPI","id":242786,"avatar_url":"https://avatars.githubusercontent.com/u/242786?v=3","gravatar_id":"","url":"https://api.github.com/users/XeroAPI","html_url":"https://github.com/XeroAPI","followers_url":"https://api.github.com/users/XeroAPI/followers","following_url":"https://api.github.com/users/XeroAPI/following{/other_user}","gists_url":"https://api.github.com/users/XeroAPI/gists{/gist_id}","starred_url":"https://api.github.com/users/XeroAPI/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/XeroAPI/subscriptions","organizations_url":"https://api.github.com/users/XeroAPI/orgs","repos_url":"https://api.github.com/users/XeroAPI/repos","events_url":"https://api.github.com/users/XeroAPI/events{/privacy}","received_events_url":"https://api.github.com/users/XeroAPI/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/XeroAPI/Xero-Net","description":"A skinny wrapper of the Xero API. Supports Payroll, Accounting & Files","fork":false,"url":"https://api.github.com/repos/XeroAPI/Xero-Net","forks_url":"https://api.github.com/repos/XeroAPI/Xero-Net/forks","keys_url":"https://api.github.com/repos/XeroAPI/Xero-Net/keys{/key_id}","collaborators_url":"https://api.github.com/repos/XeroAPI/Xero-Net/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/XeroAPI/Xero-Net/teams","hooks_url":"https://api.github.com/repos/XeroAPI/Xero-Net/hooks","issue_events_url":"https://api.github.com/repos/XeroAPI/Xero-Net/issues/events{/number}","events_url":"https://api.github.com/repos/XeroAPI/Xero-Net/events","assignees_url":"https://api.github.com/repos/XeroAPI/Xero-Net/assignees{/user}","branches_url":"https://api.github.com/repos/XeroAPI/Xero-Net/branches{/branch}","tags_url":"https://api.github.com/repos/XeroAPI/Xero-Net/tags","blobs_url":"https://api.github.com/repos/XeroAPI/Xero-Net/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/XeroAPI/Xero-Net/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/XeroAPI/Xero-Net/git/refs{/sha}","trees_url":"https://api.github.com/repos/XeroAPI/Xero-Net/git/trees{/sha}","statuses_url":"https://api.github.com/repos/XeroAPI/Xero-Net/statuses/{sha}","languages_url":"https://api.github.com/repos/XeroAPI/Xero-Net/languages","stargazers_url":"https://api.github.com/repos/XeroAPI/Xero-Net/stargazers","contributors_url":"https://api.github.com/repos/XeroAPI/Xero-Net/contributors","subscribers_url":"https://api.github.com/repos/XeroAPI/Xero-Net/subscribers","subscription_url":"https://api.github.com/repos/XeroAPI/Xero-Net/subscription","commits_url":"https://api.github.com/repos/XeroAPI/Xero-Net/commits{/sha}","git_commits_url":"https://api.github.com/repos/XeroAPI/Xero-Net/git/commits{/sha}","comments_url":"https://api.github.com/repos/XeroAPI/Xero-Net/comments{/number}","issue_comment_url":"https://api.github.com/repos/XeroAPI/Xero-Net/issues/comments{/number}","contents_url":"https://api.github.com/repos/XeroAPI/Xero-Net/contents/{+path}","compare_url":"https://api.github.com/repos/XeroAPI/Xero-Net/compare/{base}...{head}","merges_url":"https://api.github.com/repos/XeroAPI/Xero-Net/merges","archive_url":"https://api.github.com/repos/XeroAPI/Xero-Net/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/XeroAPI/Xero-Net/downloads","issues_url":"https://api.github.com/repos/XeroAPI/Xero-Net/issues{/number}","pulls_url":"https://api.github.com/repos/XeroAPI/Xero-Net/pulls{/number}","milestones_url":"https://api.github.com/repos/XeroAPI/Xero-Net/milestones{/number}","notifications_url":"https://api.github.com/repos/XeroAPI/Xero-Net/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/XeroAPI/Xero-Net/labels{/name}","releases_url":"https://api.github.com/repos/XeroAPI/Xero-Net/releases{/id}","created_at":"2014-07-03T02:33:40Z","updated_at":"2015-11-27T07:22:54Z","pushed_at":"2015-11-27T16:55:46Z","git_url":"git://github.com/XeroAPI/Xero-Net.git","ssh_url":"git@github.com:XeroAPI/Xero-Net.git","clone_url":"https://github.com/XeroAPI/Xero-Net.git","svn_url":"https://github.com/XeroAPI/Xero-Net","homepage":"http://developer.xero.com/","size":5205,"stargazers_count":40,"watchers_count":40,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":64,"mirror_url":null,"open_issues_count":13,"forks":64,"open_issues":13,"watchers":40,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/XeroAPI/Xero-Net/pulls/136"},"html":{"href":"https://github.com/XeroAPI/Xero-Net/pull/136"},"issue":{"href":"https://api.github.com/repos/XeroAPI/Xero-Net/issues/136"},"comments":{"href":"https://api.github.com/repos/XeroAPI/Xero-Net/issues/136/comments"},"review_comments":{"href":"https://api.github.com/repos/XeroAPI/Xero-Net/pulls/136/comments"},"review_comment":{"href":"https://api.github.com/repos/XeroAPI/Xero-Net/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/XeroAPI/Xero-Net/pulls/136/commits"},"statuses":{"href":"https://api.github.com/repos/XeroAPI/Xero-Net/statuses/62ebfddf78dac048e81fa3038973811c8f130f95"}},"merged":false,"mergeable":true,"mergeable_state":"clean","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":4,"deletions":2,"changed_files":1}}