-
Notifications
You must be signed in to change notification settings - Fork 88
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
several bug fixes to client #192
Conversation
|
} | ||
|
||
impl<'a> CreateSetupIntent<'a> { | ||
pub fn new() -> Self { | ||
CreateSetupIntent { | ||
confirm: Default::default(), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this fn just return Default::default()?
@@ -154,26 +154,26 @@ pub enum CheckResult { | |||
|
|||
#[derive(Copy, Clone, Debug, Deserialize, Serialize, Eq, PartialEq)] | |||
pub enum CardBrand { | |||
#[serde(rename = "American Express")] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think this is safe -
https://stripe.com/docs/api/cards/object#card_object-brand
Would this meet your needs? #188
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#188 has now been merged. The enum PaymentMethodCardBrand
now holds variants that would be helpful here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, #188 covers. Thanks!
I think this looks good other than the CardBrand issue - if #188 meets your needs for that portion, I'm happy merging the other parts. |
Thanks for the review, @stearnsc! @daringordon, would you be interested in submitting separate PRs for these different changes? I believe the first change has now been covered by #141. |
OK. I'm closing this PR as two of the commits in it were addressed by 188 and 141. This PR is now replaced by a reduced version: #202 |
see: https://stripe.com/docs/api/charges/object#charge_object-payment_method_details-card-brand