{"action":"created","comment":{"url":"https://api.github.com/repos/stripe/stripe-ios/pulls/comments/41881608","id":41881608,"diff_hunk":"@@ -0,0 +1,90 @@\n+//\n+//  STPCardParams.h\n+//  Stripe\n+//\n+//  Created by Jack Flintermann on 10/4/15.\n+//  Copyright © 2015 Stripe, Inc. All rights reserved.\n+//\n+\n+#import <Foundation/Foundation.h>\n+\n+/**\n+ *  Representation of a user's credit card details. You can assemble these with information that your user enters and\n+ *  then create Stripe tokens with them using an STPAPIClient. @see https://stripe.com/docs/api#cards\n+ */\n+@interface STPCardParams : NSObject\n+\n+/**\n+ *  The card's number.\n+ */\n+@property (nonatomic, copy, nullable) NSString *number;\n+\n+/**\n+ *  The last 4 digits of the card's number, if it's been set, otherwise nil.\n+ */\n+- (nullable NSString *)last4;\n+\n+/**\n+ *  The card's expiration month.\n+ */\n+@property (nonatomic) NSUInteger expMonth;\n+\n+/**\n+ *  The card's expiration year.\n+ */\n+@property (nonatomic) NSUInteger expYear;\n+\n+/**\n+ *  The card's security code, found on the back. This will be nil for cards retrieved from the Stripe API.","path":"Stripe/PublicHeaders/STPCardParams.h","position":38,"original_position":38,"commit_id":"8e775f4456948e02961496434aed6e9a3ed9c2ca","original_commit_id":"8e775f4456948e02961496434aed6e9a3ed9c2ca","user":{"login":"benzguo","id":894119,"avatar_url":"https://avatars.githubusercontent.com/u/894119?v=3","gravatar_id":"","url":"https://api.github.com/users/benzguo","html_url":"https://github.com/benzguo","followers_url":"https://api.github.com/users/benzguo/followers","following_url":"https://api.github.com/users/benzguo/following{/other_user}","gists_url":"https://api.github.com/users/benzguo/gists{/gist_id}","starred_url":"https://api.github.com/users/benzguo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benzguo/subscriptions","organizations_url":"https://api.github.com/users/benzguo/orgs","repos_url":"https://api.github.com/users/benzguo/repos","events_url":"https://api.github.com/users/benzguo/events{/privacy}","received_events_url":"https://api.github.com/users/benzguo/received_events","type":"User","site_admin":false},"body":"remove \"This will be nil for cards retrieved from the Stripe API.\" ?","created_at":"2015-10-13T15:27:03Z","updated_at":"2015-10-13T15:27:03Z","html_url":"https://github.com/stripe/stripe-ios/pull/247#discussion_r41881608","pull_request_url":"https://api.github.com/repos/stripe/stripe-ios/pulls/247","_links":{"self":{"href":"https://api.github.com/repos/stripe/stripe-ios/pulls/comments/41881608"},"html":{"href":"https://github.com/stripe/stripe-ios/pull/247#discussion_r41881608"},"pull_request":{"href":"https://api.github.com/repos/stripe/stripe-ios/pulls/247"}}},"pull_request":{"url":"https://api.github.com/repos/stripe/stripe-ios/pulls/247","id":47477005,"html_url":"https://github.com/stripe/stripe-ios/pull/247","diff_url":"https://github.com/stripe/stripe-ios/pull/247.diff","patch_url":"https://github.com/stripe/stripe-ios/pull/247.patch","issue_url":"https://api.github.com/repos/stripe/stripe-ios/issues/247","number":247,"state":"open","locked":false,"title":"Introduce STPCardParams","user":{"login":"jflinter","id":740583,"avatar_url":"https://avatars.githubusercontent.com/u/740583?v=3","gravatar_id":"","url":"https://api.github.com/users/jflinter","html_url":"https://github.com/jflinter","followers_url":"https://api.github.com/users/jflinter/followers","following_url":"https://api.github.com/users/jflinter/following{/other_user}","gists_url":"https://api.github.com/users/jflinter/gists{/gist_id}","starred_url":"https://api.github.com/users/jflinter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jflinter/subscriptions","organizations_url":"https://api.github.com/users/jflinter/orgs","repos_url":"https://api.github.com/users/jflinter/repos","events_url":"https://api.github.com/users/jflinter/events{/privacy}","received_events_url":"https://api.github.com/users/jflinter/received_events","type":"User","site_admin":false},"body":"This splits `STPCard`, which was previously used for both creating requests to the Stripe API and serializing responses from it, into `STPCardParams` and `STPCard`, respectively. (Same for `STPBankAccount`.) For compatibility reasons, `STPCard` inherits from `STPCardParams` - this way existing code won't break, although it will trigger deprecation warnings.\nr? @benzguo","created_at":"2015-10-12T23:52:09Z","updated_at":"2015-10-13T15:27:03Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8bfb0bf84c3e944bf4b9161bde0e4b81a00761bd","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/stripe/stripe-ios/pulls/247/commits","review_comments_url":"https://api.github.com/repos/stripe/stripe-ios/pulls/247/comments","review_comment_url":"https://api.github.com/repos/stripe/stripe-ios/pulls/comments{/number}","comments_url":"https://api.github.com/repos/stripe/stripe-ios/issues/247/comments","statuses_url":"https://api.github.com/repos/stripe/stripe-ios/statuses/8e775f4456948e02961496434aed6e9a3ed9c2ca","head":{"label":"stripe:jack-stpcardparams","ref":"jack-stpcardparams","sha":"8e775f4456948e02961496434aed6e9a3ed9c2ca","user":{"login":"stripe","id":856813,"avatar_url":"https://avatars.githubusercontent.com/u/856813?v=3","gravatar_id":"","url":"https://api.github.com/users/stripe","html_url":"https://github.com/stripe","followers_url":"https://api.github.com/users/stripe/followers","following_url":"https://api.github.com/users/stripe/following{/other_user}","gists_url":"https://api.github.com/users/stripe/gists{/gist_id}","starred_url":"https://api.github.com/users/stripe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stripe/subscriptions","organizations_url":"https://api.github.com/users/stripe/orgs","repos_url":"https://api.github.com/users/stripe/repos","events_url":"https://api.github.com/users/stripe/events{/privacy}","received_events_url":"https://api.github.com/users/stripe/received_events","type":"Organization","site_admin":false},"repo":{"id":6656911,"name":"stripe-ios","full_name":"stripe/stripe-ios","owner":{"login":"stripe","id":856813,"avatar_url":"https://avatars.githubusercontent.com/u/856813?v=3","gravatar_id":"","url":"https://api.github.com/users/stripe","html_url":"https://github.com/stripe","followers_url":"https://api.github.com/users/stripe/followers","following_url":"https://api.github.com/users/stripe/following{/other_user}","gists_url":"https://api.github.com/users/stripe/gists{/gist_id}","starred_url":"https://api.github.com/users/stripe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stripe/subscriptions","organizations_url":"https://api.github.com/users/stripe/orgs","repos_url":"https://api.github.com/users/stripe/repos","events_url":"https://api.github.com/users/stripe/events{/privacy}","received_events_url":"https://api.github.com/users/stripe/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/stripe/stripe-ios","description":"Stripe bindings for iOS and OS X","fork":false,"url":"https://api.github.com/repos/stripe/stripe-ios","forks_url":"https://api.github.com/repos/stripe/stripe-ios/forks","keys_url":"https://api.github.com/repos/stripe/stripe-ios/keys{/key_id}","collaborators_url":"https://api.github.com/repos/stripe/stripe-ios/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/stripe/stripe-ios/teams","hooks_url":"https://api.github.com/repos/stripe/stripe-ios/hooks","issue_events_url":"https://api.github.com/repos/stripe/stripe-ios/issues/events{/number}","events_url":"https://api.github.com/repos/stripe/stripe-ios/events","assignees_url":"https://api.github.com/repos/stripe/stripe-ios/assignees{/user}","branches_url":"https://api.github.com/repos/stripe/stripe-ios/branches{/branch}","tags_url":"https://api.github.com/repos/stripe/stripe-ios/tags","blobs_url":"https://api.github.com/repos/stripe/stripe-ios/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/stripe/stripe-ios/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/stripe/stripe-ios/git/refs{/sha}","trees_url":"https://api.github.com/repos/stripe/stripe-ios/git/trees{/sha}","statuses_url":"https://api.github.com/repos/stripe/stripe-ios/statuses/{sha}","languages_url":"https://api.github.com/repos/stripe/stripe-ios/languages","stargazers_url":"https://api.github.com/repos/stripe/stripe-ios/stargazers","contributors_url":"https://api.github.com/repos/stripe/stripe-ios/contributors","subscribers_url":"https://api.github.com/repos/stripe/stripe-ios/subscribers","subscription_url":"https://api.github.com/repos/stripe/stripe-ios/subscription","commits_url":"https://api.github.com/repos/stripe/stripe-ios/commits{/sha}","git_commits_url":"https://api.github.com/repos/stripe/stripe-ios/git/commits{/sha}","comments_url":"https://api.github.com/repos/stripe/stripe-ios/comments{/number}","issue_comment_url":"https://api.github.com/repos/stripe/stripe-ios/issues/comments{/number}","contents_url":"https://api.github.com/repos/stripe/stripe-ios/contents/{+path}","compare_url":"https://api.github.com/repos/stripe/stripe-ios/compare/{base}...{head}","merges_url":"https://api.github.com/repos/stripe/stripe-ios/merges","archive_url":"https://api.github.com/repos/stripe/stripe-ios/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/stripe/stripe-ios/downloads","issues_url":"https://api.github.com/repos/stripe/stripe-ios/issues{/number}","pulls_url":"https://api.github.com/repos/stripe/stripe-ios/pulls{/number}","milestones_url":"https://api.github.com/repos/stripe/stripe-ios/milestones{/number}","notifications_url":"https://api.github.com/repos/stripe/stripe-ios/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/stripe/stripe-ios/labels{/name}","releases_url":"https://api.github.com/repos/stripe/stripe-ios/releases{/id}","created_at":"2012-11-12T16:55:08Z","updated_at":"2015-10-13T01:16:18Z","pushed_at":"2015-10-13T14:58:07Z","git_url":"git://github.com/stripe/stripe-ios.git","ssh_url":"git@github.com:stripe/stripe-ios.git","clone_url":"https://github.com/stripe/stripe-ios.git","svn_url":"https://github.com/stripe/stripe-ios","homepage":"https://stripe.com","size":23495,"stargazers_count":490,"watchers_count":490,"language":"Objective-C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":228,"mirror_url":null,"open_issues_count":6,"forks":228,"open_issues":6,"watchers":490,"default_branch":"master"}},"base":{"label":"stripe:master","ref":"master","sha":"3fc03eabf2f5005cc2545e63cb6f43f9855b1464","user":{"login":"stripe","id":856813,"avatar_url":"https://avatars.githubusercontent.com/u/856813?v=3","gravatar_id":"","url":"https://api.github.com/users/stripe","html_url":"https://github.com/stripe","followers_url":"https://api.github.com/users/stripe/followers","following_url":"https://api.github.com/users/stripe/following{/other_user}","gists_url":"https://api.github.com/users/stripe/gists{/gist_id}","starred_url":"https://api.github.com/users/stripe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stripe/subscriptions","organizations_url":"https://api.github.com/users/stripe/orgs","repos_url":"https://api.github.com/users/stripe/repos","events_url":"https://api.github.com/users/stripe/events{/privacy}","received_events_url":"https://api.github.com/users/stripe/received_events","type":"Organization","site_admin":false},"repo":{"id":6656911,"name":"stripe-ios","full_name":"stripe/stripe-ios","owner":{"login":"stripe","id":856813,"avatar_url":"https://avatars.githubusercontent.com/u/856813?v=3","gravatar_id":"","url":"https://api.github.com/users/stripe","html_url":"https://github.com/stripe","followers_url":"https://api.github.com/users/stripe/followers","following_url":"https://api.github.com/users/stripe/following{/other_user}","gists_url":"https://api.github.com/users/stripe/gists{/gist_id}","starred_url":"https://api.github.com/users/stripe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stripe/subscriptions","organizations_url":"https://api.github.com/users/stripe/orgs","repos_url":"https://api.github.com/users/stripe/repos","events_url":"https://api.github.com/users/stripe/events{/privacy}","received_events_url":"https://api.github.com/users/stripe/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/stripe/stripe-ios","description":"Stripe bindings for iOS and OS X","fork":false,"url":"https://api.github.com/repos/stripe/stripe-ios","forks_url":"https://api.github.com/repos/stripe/stripe-ios/forks","keys_url":"https://api.github.com/repos/stripe/stripe-ios/keys{/key_id}","collaborators_url":"https://api.github.com/repos/stripe/stripe-ios/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/stripe/stripe-ios/teams","hooks_url":"https://api.github.com/repos/stripe/stripe-ios/hooks","issue_events_url":"https://api.github.com/repos/stripe/stripe-ios/issues/events{/number}","events_url":"https://api.github.com/repos/stripe/stripe-ios/events","assignees_url":"https://api.github.com/repos/stripe/stripe-ios/assignees{/user}","branches_url":"https://api.github.com/repos/stripe/stripe-ios/branches{/branch}","tags_url":"https://api.github.com/repos/stripe/stripe-ios/tags","blobs_url":"https://api.github.com/repos/stripe/stripe-ios/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/stripe/stripe-ios/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/stripe/stripe-ios/git/refs{/sha}","trees_url":"https://api.github.com/repos/stripe/stripe-ios/git/trees{/sha}","statuses_url":"https://api.github.com/repos/stripe/stripe-ios/statuses/{sha}","languages_url":"https://api.github.com/repos/stripe/stripe-ios/languages","stargazers_url":"https://api.github.com/repos/stripe/stripe-ios/stargazers","contributors_url":"https://api.github.com/repos/stripe/stripe-ios/contributors","subscribers_url":"https://api.github.com/repos/stripe/stripe-ios/subscribers","subscription_url":"https://api.github.com/repos/stripe/stripe-ios/subscription","commits_url":"https://api.github.com/repos/stripe/stripe-ios/commits{/sha}","git_commits_url":"https://api.github.com/repos/stripe/stripe-ios/git/commits{/sha}","comments_url":"https://api.github.com/repos/stripe/stripe-ios/comments{/number}","issue_comment_url":"https://api.github.com/repos/stripe/stripe-ios/issues/comments{/number}","contents_url":"https://api.github.com/repos/stripe/stripe-ios/contents/{+path}","compare_url":"https://api.github.com/repos/stripe/stripe-ios/compare/{base}...{head}","merges_url":"https://api.github.com/repos/stripe/stripe-ios/merges","archive_url":"https://api.github.com/repos/stripe/stripe-ios/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/stripe/stripe-ios/downloads","issues_url":"https://api.github.com/repos/stripe/stripe-ios/issues{/number}","pulls_url":"https://api.github.com/repos/stripe/stripe-ios/pulls{/number}","milestones_url":"https://api.github.com/repos/stripe/stripe-ios/milestones{/number}","notifications_url":"https://api.github.com/repos/stripe/stripe-ios/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/stripe/stripe-ios/labels{/name}","releases_url":"https://api.github.com/repos/stripe/stripe-ios/releases{/id}","created_at":"2012-11-12T16:55:08Z","updated_at":"2015-10-13T01:16:18Z","pushed_at":"2015-10-13T14:58:07Z","git_url":"git://github.com/stripe/stripe-ios.git","ssh_url":"git@github.com:stripe/stripe-ios.git","clone_url":"https://github.com/stripe/stripe-ios.git","svn_url":"https://github.com/stripe/stripe-ios","homepage":"https://stripe.com","size":23495,"stargazers_count":490,"watchers_count":490,"language":"Objective-C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":228,"mirror_url":null,"open_issues_count":6,"forks":228,"open_issues":6,"watchers":490,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/stripe/stripe-ios/pulls/247"},"html":{"href":"https://github.com/stripe/stripe-ios/pull/247"},"issue":{"href":"https://api.github.com/repos/stripe/stripe-ios/issues/247"},"comments":{"href":"https://api.github.com/repos/stripe/stripe-ios/issues/247/comments"},"review_comments":{"href":"https://api.github.com/repos/stripe/stripe-ios/pulls/247/comments"},"review_comment":{"href":"https://api.github.com/repos/stripe/stripe-ios/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/stripe/stripe-ios/pulls/247/commits"},"statuses":{"href":"https://api.github.com/repos/stripe/stripe-ios/statuses/8e775f4456948e02961496434aed6e9a3ed9c2ca"}}}}