-
Notifications
You must be signed in to change notification settings - Fork 741
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
[Patch 1/2] :: Add support to Marketplace endpoints #635
[Patch 1/2] :: Add support to Marketplace endpoints #635
Conversation
@bitwiseman this PR is ready for your review :) |
@PauloMigAlmeida |
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.
Great work. Just need to clean up the @JsonProperty
annotations and change retrieve()
to createRequest()
.
@JsonProperty("organization_billing_email") | ||
private String organizationBillingEmail; | ||
private GHMarketplaceAccountType type; | ||
@JsonProperty("marketplace_pending_change") |
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.
These should not be needed any more. I've updated the MAPPER
:
https://github.com/github-api/github-api/blob/master/src/main/java/org/kohsuke/github/GitHub.java#L1401
public class GHMarketplacePendingChange { | ||
private GitHub root; | ||
private long id; | ||
@JsonProperty("unit_count") |
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.
@JsonProperty("unit_count") |
private Long unitCount; | ||
@SuppressFBWarnings(value = "UWF_UNWRITTEN_FIELD", justification = "Field comes from JSON deserialization") | ||
private GHMarketplacePlan plan; | ||
@JsonProperty("effective_date") |
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.
@JsonProperty("effective_date") |
|
||
private GitHub root; | ||
private String url; | ||
@JsonProperty("accounts_url") |
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.
@JsonProperty("accounts_url") |
And the same for most of the other JsonProperties here.
* A Github Marketplace Account. | ||
* | ||
* @author Paulo Miguel Almeida | ||
* @see GHMarketplaceListAccountBuilder#retrieve() |
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.
* @see GHMarketplaceListAccountBuilder#retrieve() | |
* @see GHMarketplaceListAccountBuilder#createRequest() |
Changed this in the GitHub
class, should try to stay consistent.
|
||
GHMarketplaceListAccountBuilder(GitHub root, long planId) { | ||
this.root = root; | ||
this.builder = new Requester(root); |
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.
this.builder = new Requester(root); | |
this.builder = root.createRequest(); |
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.
do you mean root.retrieve()
?
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.
nevermind :)
@bitwiseman sure! will do it tomorrow when I get home |
@bitwiseman changes implemented. Ready for your review :) |
Signed-off-by: PauloMigAlmeida <[email protected]>
Signed-off-by: PauloMigAlmeida <[email protected]>
Signed-off-by: PauloMigAlmeida <[email protected]>
Signed-off-by: PauloMigAlmeida <[email protected]>
Signed-off-by: PauloMigAlmeida <[email protected]>
Signed-off-by: PauloMigAlmeida <[email protected]>
Signed-off-by: PauloMigAlmeida <[email protected]>
Signed-off-by: PauloMigAlmeida <[email protected]>
fa2e3aa
to
c7123b0
Compare
Description
Add support to Marketplace endpoints
Endpoints added:
In the best interest of keeping this PR readable (too many lines due to the integration tests files), I will submit a second PR to add the remaining endpoints related to GitHub Marketplace.
Before submitting a PR:
We love getting PRs, but we hate asking people for the same basic changes every time.
master
. Create your PR from that branch.mvn install site
locally. This may reformat your code, commit those changes. If this command doesn't succeed, your change will not pass CI.