-
Notifications
You must be signed in to change notification settings - Fork 460
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
Add support for the Review resource #730
Conversation
review.go
Outdated
Livemode bool `json:"livemode"` | ||
Open bool `json:"open"` | ||
Reason ReviewReasonType `json:"reason"` | ||
Review *Review `json:"review"` |
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 think this is supposed to be Charge
/*Charge
/json:"charge"
right?
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.
Damn nice catch, I messed up my string replace
} | ||
|
||
// Approve approves a review. | ||
func (c Client) Approve(id string, params *stripe.ReviewApproveParams) (*stripe.Review, error) { |
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.
Thanks for following convention with the empty params struct here! It feels a little funny to do, but I like that we're staying consistent.
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.
yeah and I do feel like we'll have params soon!
Minor comment, but LGTM. ptal @remi-stripe |
b97de22
to
f888898
Compare
@brandur-stripe PTAL |
LGTM! |
r? @brandur-stripe
cc @stripe/api-libraries