{"action":"created","comment":{"url":"https://api.github.com/repos/pelotontech/Peloton-EPP-.Net-4.5-SDK/pulls/comments/58234255","id":58234255,"diff_hunk":"@@ -0,0 +1,152 @@\n+﻿using System;\n+using System.Collections.Generic;\n+using System.ComponentModel.DataAnnotations;\n+using System.Diagnostics.CodeAnalysis;\n+using System.Linq;\n+using System.Threading.Tasks;\n+using PelotonEppSdk.Classes;\n+using PelotonEppSdk.Enums;\n+using PelotonEppSdk.Interfaces;\n+\n+namespace PelotonEppSdk.Models\n+{\n+    public class CreditCardRequest : RequestBase, ICreditCardCreateRequest, ICreditCardDeleteRequest, ICreditCardUpdateRequest\n+    {\n+        public string OrderNumber { get; set; }\n+        public string CardOwner { get; set; }\n+\n+        public CreditCardNumber CardNumber { get; set; }\n+\n+        public string CardType => CardNumber?.CardName;\n+        public string ExpiryMonth { get; set; }\n+        public string ExpiryYear { get; set; }\n+        public string CardSecurityCode { get; set; }\n+        public decimal? CardLast4Digits => CardNumber?.Last4Digits;\n+        public string MaskedCardDigits => CardNumber?.Masked;\n+\n+        public IEnumerable<Reference> References { get; set; }\n+\n+        public string BillingName { get; set; }\n+        public string BillingPhone { get; set; }\n+        public string BillingEmail { get; set; }\n+        public Address BillingAddress { get; set; }\n+\n+        public bool Verify { get; set; }\n+\n+        public async Task<Response> PostAsync()\n+        {\n+            var client = new PelotonClient();\n+            var request = (credit_card_request) this;\n+            var result = await client.PostAsync<credit_card_response>(request, ApiTarget.CreditCards);\n+            return (CreditCardResponse) result;\n+        }\n+\n+        public async Task<Response> PutAsync()\n+        {\n+            var client = new PelotonClient();\n+            var request = (credit_card_request) this;\n+            var result = await client.PutAsync<credit_card_response>(request, ApiTarget.CreditCards);","path":"PelotonEppSdk/Models/CreditCardRequest.cs","position":48,"original_position":48,"commit_id":"2c90f1a9d5b1d62fca3989f6b71401aa080e0d46","original_commit_id":"2c90f1a9d5b1d62fca3989f6b71401aa080e0d46","user":{"login":"nothinhappened","id":6402707,"avatar_url":"https://avatars.githubusercontent.com/u/6402707?v=3","gravatar_id":"","url":"https://api.github.com/users/nothinhappened","html_url":"https://github.com/nothinhappened","followers_url":"https://api.github.com/users/nothinhappened/followers","following_url":"https://api.github.com/users/nothinhappened/following{/other_user}","gists_url":"https://api.github.com/users/nothinhappened/gists{/gist_id}","starred_url":"https://api.github.com/users/nothinhappened/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nothinhappened/subscriptions","organizations_url":"https://api.github.com/users/nothinhappened/orgs","repos_url":"https://api.github.com/users/nothinhappened/repos","events_url":"https://api.github.com/users/nothinhappened/events{/privacy}","received_events_url":"https://api.github.com/users/nothinhappened/received_events","type":"User","site_admin":false},"body":".ConfigureAwait(false)","created_at":"2016-04-01T16:57:04Z","updated_at":"2016-04-01T16:57:04Z","html_url":"https://github.com/pelotontech/Peloton-EPP-.Net-4.5-SDK/pull/1#discussion_r58234255","pull_request_url":"https://api.github.com/repos/pelotontech/Peloton-EPP-.Net-4.5-SDK/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/pelotontech/Peloton-EPP-.Net-4.5-SDK/pulls/comments/58234255"},"html":{"href":"https://github.com/pelotontech/Peloton-EPP-.Net-4.5-SDK/pull/1#discussion_r58234255"},"pull_request":{"href":"https://api.github.com/repos/pelotontech/Peloton-EPP-.Net-4.5-SDK/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/pelotontech/Peloton-EPP-.Net-4.5-SDK/pulls/1","id":64283070,"html_url":"https://github.com/pelotontech/Peloton-EPP-.Net-4.5-SDK/pull/1","diff_url":"https://github.com/pelotontech/Peloton-EPP-.Net-4.5-SDK/pull/1.diff","patch_url":"https://github.com/pelotontech/Peloton-EPP-.Net-4.5-SDK/pull/1.patch","issue_url":"https://api.github.com/repos/pelotontech/Peloton-EPP-.Net-4.5-SDK/issues/1","number":1,"state":"open","locked":false,"title":"5782 credit card methods & fixes for bank account requests & refactoring request objects","user":{"login":"fraserd","id":8631308,"avatar_url":"https://avatars.githubusercontent.com/u/8631308?v=3","gravatar_id":"","url":"https://api.github.com/users/fraserd","html_url":"https://github.com/fraserd","followers_url":"https://api.github.com/users/fraserd/followers","following_url":"https://api.github.com/users/fraserd/following{/other_user}","gists_url":"https://api.github.com/users/fraserd/gists{/gist_id}","starred_url":"https://api.github.com/users/fraserd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fraserd/subscriptions","organizations_url":"https://api.github.com/users/fraserd/orgs","repos_url":"https://api.github.com/users/fraserd/repos","events_url":"https://api.github.com/users/fraserd/events{/privacy}","received_events_url":"https://api.github.com/users/fraserd/received_events","type":"User","site_admin":false},"body":"@nothinhappened , @cattiwill , @dandersonpeloton : Please review these changes and give your +1 or -1 in a comment.\r\n\r\nI will merge/make changes once all reviewers have had an opportunity to give feedback.\r\n\r\nThanks!","created_at":"2016-03-28T02:19:38Z","updated_at":"2016-04-01T16:57:04Z","closed_at":null,"merged_at":null,"merge_commit_sha":"cb254367f2e8e049492f3d017cd0e88075149330","assignee":{"login":"fraserd","id":8631308,"avatar_url":"https://avatars.githubusercontent.com/u/8631308?v=3","gravatar_id":"","url":"https://api.github.com/users/fraserd","html_url":"https://github.com/fraserd","followers_url":"https://api.github.com/users/fraserd/followers","following_url":"https://api.github.com/users/fraserd/following{/other_user}","gists_url":"https://api.github.com/users/fraserd/gists{/gist_id}","starred_url":"https://api.github.com/users/fraserd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fraserd/subscriptions","organizations_url":"https://api.github.com/users/fraserd/orgs","repos_url":"https://api.github.com/users/fraserd/repos","events_url":"https://api.github.com/users/fraserd/events{/privacy}","received_events_url":"https://api.github.com/users/fraserd/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/pelotontech/Peloton-EPP-.Net-4.5-SDK/pulls/1/commits","review_comments_url":"https://api.github.com/repos/pelotontech/Peloton-EPP-.Net-4.5-SDK/pulls/1/comments","review_comment_url":"https://api.github.com/repos/pelotontech/Peloton-EPP-.Net-4.5-SDK/pulls/comments{/number}","comments_url":"https://api.github.com/repos/pelotontech/Peloton-EPP-.Net-4.5-SDK/issues/1/comments","statuses_url":"https://api.github.com/repos/pelotontech/Peloton-EPP-.Net-4.5-SDK/statuses/2c90f1a9d5b1d62fca3989f6b71401aa080e0d46","head":{"label":"pelotontech:5782-credit-card-methods","ref":"5782-credit-card-methods","sha":"2c90f1a9d5b1d62fca3989f6b71401aa080e0d46","user":{"login":"pelotontech","id":10235565,"avatar_url":"https://avatars.githubusercontent.com/u/10235565?v=3","gravatar_id":"","url":"https://api.github.com/users/pelotontech","html_url":"https://github.com/pelotontech","followers_url":"https://api.github.com/users/pelotontech/followers","following_url":"https://api.github.com/users/pelotontech/following{/other_user}","gists_url":"https://api.github.com/users/pelotontech/gists{/gist_id}","starred_url":"https://api.github.com/users/pelotontech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pelotontech/subscriptions","organizations_url":"https://api.github.com/users/pelotontech/orgs","repos_url":"https://api.github.com/users/pelotontech/repos","events_url":"https://api.github.com/users/pelotontech/events{/privacy}","received_events_url":"https://api.github.com/users/pelotontech/received_events","type":"Organization","site_admin":false},"repo":{"id":48551592,"name":"Peloton-EPP-.Net-4.5-SDK","full_name":"pelotontech/Peloton-EPP-.Net-4.5-SDK","owner":{"login":"pelotontech","id":10235565,"avatar_url":"https://avatars.githubusercontent.com/u/10235565?v=3","gravatar_id":"","url":"https://api.github.com/users/pelotontech","html_url":"https://github.com/pelotontech","followers_url":"https://api.github.com/users/pelotontech/followers","following_url":"https://api.github.com/users/pelotontech/following{/other_user}","gists_url":"https://api.github.com/users/pelotontech/gists{/gist_id}","starred_url":"https://api.github.com/users/pelotontech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pelotontech/subscriptions","organizations_url":"https://api.github.com/users/pelotontech/orgs","repos_url":"https://api.github.com/users/pelotontech/repos","events_url":"https://api.github.com/users/pelotontech/events{/privacy}","received_events_url":"https://api.github.com/users/pelotontech/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/pelotontech/Peloton-EPP-.Net-4.5-SDK","description":"","fork":false,"url":"https://api.github.com/repos/pelotontech/Peloton-EPP-.Net-4.5-SDK","forks_url":"https://api.github.com/repos/pelotontech/Peloton-EPP-.Net-4.5-SDK/forks","keys_url":"https://api.github.com/repos/pelotontech/Peloton-EPP-.Net-4.5-SDK/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pelotontech/Peloton-EPP-.Net-4.5-SDK/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pelotontech/Peloton-EPP-.Net-4.5-SDK/teams","hooks_url":"https://api.github.com/repos/pelotontech/Peloton-EPP-.Net-4.5-SDK/hooks","issue_events_url":"https://api.github.com/repos/pelotontech/Peloton-EPP-.Net-4.5-SDK/issues/events{/number}","events_url":"https://api.github.com/repos/pelotontech/Peloton-EPP-.Net-4.5-SDK/events","assignees_url":"https://api.github.com/repos/pelotontech/Peloton-EPP-.Net-4.5-SDK/assignees{/user}","branches_url":"https://api.github.com/repos/pelotontech/Peloton-EPP-.Net-4.5-SDK/branches{/branch}","tags_url":"https://api.github.com/repos/pelotontech/Peloton-EPP-.Net-4.5-SDK/tags","blobs_url":"https://api.github.com/repos/pelotontech/Peloton-EPP-.Net-4.5-SDK/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pelotontech/Peloton-EPP-.Net-4.5-SDK/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pelotontech/Peloton-EPP-.Net-4.5-SDK/git/refs{/sha}","trees_url":"https://api.github.com/repos/pelotontech/Peloton-EPP-.Net-4.5-SDK/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pelotontech/Peloton-EPP-.Net-4.5-SDK/statuses/{sha}","languages_url":"https://api.github.com/repos/pelotontech/Peloton-EPP-.Net-4.5-SDK/languages","stargazers_url":"https://api.github.com/repos/pelotontech/Peloton-EPP-.Net-4.5-SDK/stargazers","contributors_url":"https://api.github.com/repos/pelotontech/Peloton-EPP-.Net-4.5-SDK/contributors","subscribers_url":"https://api.github.com/repos/pelotontech/Peloton-EPP-.Net-4.5-SDK/subscribers","subscription_url":"https://api.github.com/repos/pelotontech/Peloton-EPP-.Net-4.5-SDK/subscription","commits_url":"https://api.github.com/repos/pelotontech/Peloton-EPP-.Net-4.5-SDK/commits{/sha}","git_commits_url":"https://api.github.com/repos/pelotontech/Peloton-EPP-.Net-4.5-SDK/git/commits{/sha}","comments_url":"https://api.github.com/repos/pelotontech/Peloton-EPP-.Net-4.5-SDK/comments{/number}","issue_comment_url":"https://api.github.com/repos/pelotontech/Peloton-EPP-.Net-4.5-SDK/issues/comments{/number}","contents_url":"https://api.github.com/repos/pelotontech/Peloton-EPP-.Net-4.5-SDK/contents/{+path}","compare_url":"https://api.github.com/repos/pelotontech/Peloton-EPP-.Net-4.5-SDK/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pelotontech/Peloton-EPP-.Net-4.5-SDK/merges","archive_url":"https://api.github.com/repos/pelotontech/Peloton-EPP-.Net-4.5-SDK/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pelotontech/Peloton-EPP-.Net-4.5-SDK/downloads","issues_url":"https://api.github.com/repos/pelotontech/Peloton-EPP-.Net-4.5-SDK/issues{/number}","pulls_url":"https://api.github.com/repos/pelotontech/Peloton-EPP-.Net-4.5-SDK/pulls{/number}","milestones_url":"https://api.github.com/repos/pelotontech/Peloton-EPP-.Net-4.5-SDK/milestones{/number}","notifications_url":"https://api.github.com/repos/pelotontech/Peloton-EPP-.Net-4.5-SDK/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pelotontech/Peloton-EPP-.Net-4.5-SDK/labels{/name}","releases_url":"https://api.github.com/repos/pelotontech/Peloton-EPP-.Net-4.5-SDK/releases{/id}","deployments_url":"https://api.github.com/repos/pelotontech/Peloton-EPP-.Net-4.5-SDK/deployments","created_at":"2015-12-24T17:24:59Z","updated_at":"2016-03-27T22:20:29Z","pushed_at":"2016-04-01T16:39:37Z","git_url":"git://github.com/pelotontech/Peloton-EPP-.Net-4.5-SDK.git","ssh_url":"git@github.com:pelotontech/Peloton-EPP-.Net-4.5-SDK.git","clone_url":"https://github.com/pelotontech/Peloton-EPP-.Net-4.5-SDK.git","svn_url":"https://github.com/pelotontech/Peloton-EPP-.Net-4.5-SDK","homepage":null,"size":65,"stargazers_count":2,"watchers_count":2,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":2,"default_branch":"master"}},"base":{"label":"pelotontech:master","ref":"master","sha":"a3840916c404059833548bc77851a2e926bdbcdf","user":{"login":"pelotontech","id":10235565,"avatar_url":"https://avatars.githubusercontent.com/u/10235565?v=3","gravatar_id":"","url":"https://api.github.com/users/pelotontech","html_url":"https://github.com/pelotontech","followers_url":"https://api.github.com/users/pelotontech/followers","following_url":"https://api.github.com/users/pelotontech/following{/other_user}","gists_url":"https://api.github.com/users/pelotontech/gists{/gist_id}","starred_url":"https://api.github.com/users/pelotontech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pelotontech/subscriptions","organizations_url":"https://api.github.com/users/pelotontech/orgs","repos_url":"https://api.github.com/users/pelotontech/repos","events_url":"https://api.github.com/users/pelotontech/events{/privacy}","received_events_url":"https://api.github.com/users/pelotontech/received_events","type":"Organization","site_admin":false},"repo":{"id":48551592,"name":"Peloton-EPP-.Net-4.5-SDK","full_name":"pelotontech/Peloton-EPP-.Net-4.5-SDK","owner":{"login":"pelotontech","id":10235565,"avatar_url":"https://avatars.githubusercontent.com/u/10235565?v=3","gravatar_id":"","url":"https://api.github.com/users/pelotontech","html_url":"https://github.com/pelotontech","followers_url":"https://api.github.com/users/pelotontech/followers","following_url":"https://api.github.com/users/pelotontech/following{/other_user}","gists_url":"https://api.github.com/users/pelotontech/gists{/gist_id}","starred_url":"https://api.github.com/users/pelotontech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pelotontech/subscriptions","organizations_url":"https://api.github.com/users/pelotontech/orgs","repos_url":"https://api.github.com/users/pelotontech/repos","events_url":"https://api.github.com/users/pelotontech/events{/privacy}","received_events_url":"https://api.github.com/users/pelotontech/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/pelotontech/Peloton-EPP-.Net-4.5-SDK","description":"","fork":false,"url":"https://api.github.com/repos/pelotontech/Peloton-EPP-.Net-4.5-SDK","forks_url":"https://api.github.com/repos/pelotontech/Peloton-EPP-.Net-4.5-SDK/forks","keys_url":"https://api.github.com/repos/pelotontech/Peloton-EPP-.Net-4.5-SDK/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pelotontech/Peloton-EPP-.Net-4.5-SDK/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pelotontech/Peloton-EPP-.Net-4.5-SDK/teams","hooks_url":"https://api.github.com/repos/pelotontech/Peloton-EPP-.Net-4.5-SDK/hooks","issue_events_url":"https://api.github.com/repos/pelotontech/Peloton-EPP-.Net-4.5-SDK/issues/events{/number}","events_url":"https://api.github.com/repos/pelotontech/Peloton-EPP-.Net-4.5-SDK/events","assignees_url":"https://api.github.com/repos/pelotontech/Peloton-EPP-.Net-4.5-SDK/assignees{/user}","branches_url":"https://api.github.com/repos/pelotontech/Peloton-EPP-.Net-4.5-SDK/branches{/branch}","tags_url":"https://api.github.com/repos/pelotontech/Peloton-EPP-.Net-4.5-SDK/tags","blobs_url":"https://api.github.com/repos/pelotontech/Peloton-EPP-.Net-4.5-SDK/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pelotontech/Peloton-EPP-.Net-4.5-SDK/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pelotontech/Peloton-EPP-.Net-4.5-SDK/git/refs{/sha}","trees_url":"https://api.github.com/repos/pelotontech/Peloton-EPP-.Net-4.5-SDK/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pelotontech/Peloton-EPP-.Net-4.5-SDK/statuses/{sha}","languages_url":"https://api.github.com/repos/pelotontech/Peloton-EPP-.Net-4.5-SDK/languages","stargazers_url":"https://api.github.com/repos/pelotontech/Peloton-EPP-.Net-4.5-SDK/stargazers","contributors_url":"https://api.github.com/repos/pelotontech/Peloton-EPP-.Net-4.5-SDK/contributors","subscribers_url":"https://api.github.com/repos/pelotontech/Peloton-EPP-.Net-4.5-SDK/subscribers","subscription_url":"https://api.github.com/repos/pelotontech/Peloton-EPP-.Net-4.5-SDK/subscription","commits_url":"https://api.github.com/repos/pelotontech/Peloton-EPP-.Net-4.5-SDK/commits{/sha}","git_commits_url":"https://api.github.com/repos/pelotontech/Peloton-EPP-.Net-4.5-SDK/git/commits{/sha}","comments_url":"https://api.github.com/repos/pelotontech/Peloton-EPP-.Net-4.5-SDK/comments{/number}","issue_comment_url":"https://api.github.com/repos/pelotontech/Peloton-EPP-.Net-4.5-SDK/issues/comments{/number}","contents_url":"https://api.github.com/repos/pelotontech/Peloton-EPP-.Net-4.5-SDK/contents/{+path}","compare_url":"https://api.github.com/repos/pelotontech/Peloton-EPP-.Net-4.5-SDK/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pelotontech/Peloton-EPP-.Net-4.5-SDK/merges","archive_url":"https://api.github.com/repos/pelotontech/Peloton-EPP-.Net-4.5-SDK/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pelotontech/Peloton-EPP-.Net-4.5-SDK/downloads","issues_url":"https://api.github.com/repos/pelotontech/Peloton-EPP-.Net-4.5-SDK/issues{/number}","pulls_url":"https://api.github.com/repos/pelotontech/Peloton-EPP-.Net-4.5-SDK/pulls{/number}","milestones_url":"https://api.github.com/repos/pelotontech/Peloton-EPP-.Net-4.5-SDK/milestones{/number}","notifications_url":"https://api.github.com/repos/pelotontech/Peloton-EPP-.Net-4.5-SDK/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pelotontech/Peloton-EPP-.Net-4.5-SDK/labels{/name}","releases_url":"https://api.github.com/repos/pelotontech/Peloton-EPP-.Net-4.5-SDK/releases{/id}","deployments_url":"https://api.github.com/repos/pelotontech/Peloton-EPP-.Net-4.5-SDK/deployments","created_at":"2015-12-24T17:24:59Z","updated_at":"2016-03-27T22:20:29Z","pushed_at":"2016-04-01T16:39:37Z","git_url":"git://github.com/pelotontech/Peloton-EPP-.Net-4.5-SDK.git","ssh_url":"git@github.com:pelotontech/Peloton-EPP-.Net-4.5-SDK.git","clone_url":"https://github.com/pelotontech/Peloton-EPP-.Net-4.5-SDK.git","svn_url":"https://github.com/pelotontech/Peloton-EPP-.Net-4.5-SDK","homepage":null,"size":65,"stargazers_count":2,"watchers_count":2,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/pelotontech/Peloton-EPP-.Net-4.5-SDK/pulls/1"},"html":{"href":"https://github.com/pelotontech/Peloton-EPP-.Net-4.5-SDK/pull/1"},"issue":{"href":"https://api.github.com/repos/pelotontech/Peloton-EPP-.Net-4.5-SDK/issues/1"},"comments":{"href":"https://api.github.com/repos/pelotontech/Peloton-EPP-.Net-4.5-SDK/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/pelotontech/Peloton-EPP-.Net-4.5-SDK/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/pelotontech/Peloton-EPP-.Net-4.5-SDK/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/pelotontech/Peloton-EPP-.Net-4.5-SDK/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/pelotontech/Peloton-EPP-.Net-4.5-SDK/statuses/2c90f1a9d5b1d62fca3989f6b71401aa080e0d46"}}}}