Skip to content

Commit 5bbb5c1

Browse files
committed
Minor change
1 parent d02d076 commit 5bbb5c1

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

src/main/java/org/kohsuke/github/GHMarketplaceAccount.java

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package org.kohsuke.github;
22

3+
import java.io.IOException;
34
import java.net.URL;
45

56
// TODO: Auto-generated Javadoc
@@ -78,21 +79,18 @@ public GHMarketplaceAccountType getType() {
7879
* also see the upcoming pending change.
7980
*
8081
* <p>
81-
* You use the returned builder to set various properties, then call
82-
* {@link GHMarketplacePlanForAccountBuilder#createRequest()} to finally fetch the plan related this this account.
83-
*
84-
* <p>
8582
* GitHub Apps must use a JWT to access this endpoint.
8683
* <p>
8784
* OAuth Apps must use basic authentication with their client ID and client secret to access this endpoint.
8885
*
8986
* @return a GHMarketplaceListAccountBuilder instance
87+
* @throws IOException
9088
* @see <a href=
91-
* "https://developer.github.com/v3/apps/marketplace/#list-all-github-accounts-user-or-organization-on-a-specific-plan">List
92-
* all GitHub accounts (user or organization) on a specific plan</a>
89+
* "https://docs.github.com/en/rest/apps/marketplace?apiVersion=2022-11-28#get-a-subscription-plan-for-an-account">Get
90+
* a subscription plan for an account</a>
9391
*/
94-
public GHMarketplacePlanForAccountBuilder getPlan() {
95-
return new GHMarketplacePlanForAccountBuilder(root(), this.id);
92+
public GHMarketplaceAccountPlan getPlan() throws IOException {
93+
return new GHMarketplacePlanForAccountBuilder(root(), this.id).createRequest();
9694
}
9795

9896
}

0 commit comments

Comments
 (0)