Skip to content

Add support for Review resource #623

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

Merged
merged 1 commit into from
Nov 28, 2018
Merged

Conversation

remi-stripe
Copy link
Contributor

cc @stripe/api-libraries

@remi-stripe remi-stripe force-pushed the remi-add-radar-review branch from c15756b to 0d6200a Compare November 27, 2018 16:12
@remi-stripe
Copy link
Contributor Author

r? @zanker-stripe

Copy link

@zanker-stripe zanker-stripe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One question for my own knowledge, but looks good.

import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
public class Review extends StripeObject implements HasId {
public class Review extends ApiResource implements HasId {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My impression from reading the code, is StripeObject is a basic object wrapper, while ApiResource is a basic object that can be extended to support other APIs like approve in this case. Is that the right way of looking at it?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Basically, StripeObject == a k/v hash returned by Stripe's API and ApiResource == an actual resource that has API methods (including standard CRUDL methods).

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

Successfully merging this pull request may close these issues.

4 participants