Skip to content
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

Merged
merged 1 commit into from Nov 28, 2018
Merged

Conversation

remi-stripe
Copy link
Contributor

r? @brandur-stripe
cc @stripe/api-libraries

review.go Outdated
Livemode bool `json:"livemode"`
Open bool `json:"open"`
Reason ReviewReasonType `json:"reason"`
Review *Review `json:"review"`
Copy link
Contributor

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?

Copy link
Contributor Author

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) {
Copy link
Contributor

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.

Copy link
Contributor Author

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!

@brandur-stripe
Copy link
Contributor

Minor comment, but LGTM.

ptal @remi-stripe

@remi-stripe
Copy link
Contributor Author

@brandur-stripe PTAL

@brandur-stripe
Copy link
Contributor

LGTM!

@brandur-stripe brandur-stripe merged commit a75473b into master Nov 28, 2018
@brandur-stripe brandur-stripe deleted the remi-add-radar-review branch November 28, 2018 17:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants