public class GHMarketplacePlan extends Object
GitHub.listMarketplacePlans()| Constructor and Description |
|---|
GHMarketplacePlan() |
| Modifier and Type | Method and Description |
|---|---|
String |
getAccountsUrl()
Gets accounts url.
|
List<String> |
getBullets()
Gets bullets.
|
String |
getDescription()
Gets description.
|
long |
getId()
Gets id.
|
long |
getMonthlyPriceInCents()
Gets monthly price in cents.
|
String |
getName()
Gets name.
|
long |
getNumber()
Gets number.
|
GHMarketplacePriceModel |
getPriceModel()
Gets price model.
|
String |
getState()
Gets state.
|
String |
getUnitName()
Gets unit name.
|
URL |
getUrl()
Gets url.
|
long |
getYearlyPriceInCents()
Gets yearly price in cents.
|
boolean |
isFreeTrial()
Is free trial boolean.
|
GHMarketplaceListAccountBuilder |
listAccounts()
Starts a builder that list any accounts associated with a plan, including free plans.
|
public URL getUrl()
public String getAccountsUrl()
public long getId()
public long getNumber()
public String getName()
public String getDescription()
public long getMonthlyPriceInCents()
public long getYearlyPriceInCents()
public GHMarketplacePriceModel getPriceModel()
public boolean isFreeTrial()
public String getUnitName()
public String getState()
public GHMarketplaceListAccountBuilder listAccounts()
You use the returned builder to set various properties, then call
GHMarketplaceListAccountBuilder.createRequest() to finally list the accounts related to this plan.
GitHub Apps must use a JWT to access this endpoint.
OAuth Apps must use basic authentication with their client ID and client secret to access this endpoint.
Copyright © 2020. All rights reserved.