{"action":"created","issue":{"url":"https://api.github.com/repos/stripe/stripe-ios/issues/808","repository_url":"https://api.github.com/repos/stripe/stripe-ios","labels_url":"https://api.github.com/repos/stripe/stripe-ios/issues/808/labels{/name}","comments_url":"https://api.github.com/repos/stripe/stripe-ios/issues/808/comments","events_url":"https://api.github.com/repos/stripe/stripe-ios/issues/808/events","html_url":"https://github.com/stripe/stripe-ios/pull/808","id":261769229,"number":808,"title":"Add `metadata` accessors","user":{"login":"joeydong-stripe","id":28276156,"avatar_url":"https://avatars2.githubusercontent.com/u/28276156?v=4","gravatar_id":"","url":"https://api.github.com/users/joeydong-stripe","html_url":"https://github.com/joeydong-stripe","followers_url":"https://api.github.com/users/joeydong-stripe/followers","following_url":"https://api.github.com/users/joeydong-stripe/following{/other_user}","gists_url":"https://api.github.com/users/joeydong-stripe/gists{/gist_id}","starred_url":"https://api.github.com/users/joeydong-stripe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joeydong-stripe/subscriptions","organizations_url":"https://api.github.com/users/joeydong-stripe/orgs","repos_url":"https://api.github.com/users/joeydong-stripe/repos","events_url":"https://api.github.com/users/joeydong-stripe/events{/privacy}","received_events_url":"https://api.github.com/users/joeydong-stripe/received_events","type":"User","site_admin":false},"labels":[{"id":379315472,"url":"https://api.github.com/repos/stripe/stripe-ios/labels/approved","name":"approved","color":"2DA239","default":false}],"state":"open","locked":false,"assignee":{"login":"joeydong-stripe","id":28276156,"avatar_url":"https://avatars2.githubusercontent.com/u/28276156?v=4","gravatar_id":"","url":"https://api.github.com/users/joeydong-stripe","html_url":"https://github.com/joeydong-stripe","followers_url":"https://api.github.com/users/joeydong-stripe/followers","following_url":"https://api.github.com/users/joeydong-stripe/following{/other_user}","gists_url":"https://api.github.com/users/joeydong-stripe/gists{/gist_id}","starred_url":"https://api.github.com/users/joeydong-stripe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joeydong-stripe/subscriptions","organizations_url":"https://api.github.com/users/joeydong-stripe/orgs","repos_url":"https://api.github.com/users/joeydong-stripe/repos","events_url":"https://api.github.com/users/joeydong-stripe/events{/privacy}","received_events_url":"https://api.github.com/users/joeydong-stripe/received_events","type":"User","site_admin":false},"assignees":[{"login":"joeydong-stripe","id":28276156,"avatar_url":"https://avatars2.githubusercontent.com/u/28276156?v=4","gravatar_id":"","url":"https://api.github.com/users/joeydong-stripe","html_url":"https://github.com/joeydong-stripe","followers_url":"https://api.github.com/users/joeydong-stripe/followers","following_url":"https://api.github.com/users/joeydong-stripe/following{/other_user}","gists_url":"https://api.github.com/users/joeydong-stripe/gists{/gist_id}","starred_url":"https://api.github.com/users/joeydong-stripe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joeydong-stripe/subscriptions","organizations_url":"https://api.github.com/users/joeydong-stripe/orgs","repos_url":"https://api.github.com/users/joeydong-stripe/repos","events_url":"https://api.github.com/users/joeydong-stripe/events{/privacy}","received_events_url":"https://api.github.com/users/joeydong-stripe/received_events","type":"User","site_admin":false}],"milestone":null,"comments":1,"created_at":"2017-09-29T20:59:43Z","updated_at":"2017-10-02T21:26:53Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/stripe/stripe-ios/pulls/808","html_url":"https://github.com/stripe/stripe-ios/pull/808","diff_url":"https://github.com/stripe/stripe-ios/pull/808.diff","patch_url":"https://github.com/stripe/stripe-ios/pull/808.patch"},"body":"## Summary\r\n\r\nAdd `metadata` accessors to `STPBankAccount` and `STPCard`\r\n\r\nThe data is populated on these two objects when working with customers fetched using ephemeral keys.\r\n\r\n## Motivation\r\n\r\nFollowing up from https://github.com/stripe/stripe-ios/issues/807\r\n\r\n## Testing\r\n\r\nUpdated unit tests. Also added extra guards to ensure the metadata keys/values are strings.\r\n"},"comment":{"url":"https://api.github.com/repos/stripe/stripe-ios/issues/comments/333670269","html_url":"https://github.com/stripe/stripe-ios/pull/808#issuecomment-333670269","issue_url":"https://api.github.com/repos/stripe/stripe-ios/issues/808","id":333670269,"user":{"login":"bg-stripe","id":23086960,"avatar_url":"https://avatars3.githubusercontent.com/u/23086960?v=4","gravatar_id":"","url":"https://api.github.com/users/bg-stripe","html_url":"https://github.com/bg-stripe","followers_url":"https://api.github.com/users/bg-stripe/followers","following_url":"https://api.github.com/users/bg-stripe/following{/other_user}","gists_url":"https://api.github.com/users/bg-stripe/gists{/gist_id}","starred_url":"https://api.github.com/users/bg-stripe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bg-stripe/subscriptions","organizations_url":"https://api.github.com/users/bg-stripe/orgs","repos_url":"https://api.github.com/users/bg-stripe/repos","events_url":"https://api.github.com/users/bg-stripe/events{/privacy}","received_events_url":"https://api.github.com/users/bg-stripe/received_events","type":"User","site_admin":false},"created_at":"2017-10-02T21:26:53Z","updated_at":"2017-10-02T21:26:53Z","author_association":"CONTRIBUTOR","body":"Just did a run through of our docs – looks like bank account, PII, and file creations don't support metadata, but you can attach metadata to a card. Should we also add a `metadata` property to `STPCardParams`? \r\n\r\nhttps://stripe.com/docs/api#token_object-card-metadata\r\n\r\n"}}
{"actor":{"display_login":"bg-stripe"}}