Package org.kohsuke.github
Class GHMarketplacePlan
- java.lang.Object
-
- org.kohsuke.github.GHMarketplacePlan
-
public class GHMarketplacePlan extends Object
A Github Marketplace plan.- Author:
- Paulo Miguel Almeida
- See Also:
GitHub.listMarketplacePlans()
-
-
Constructor Summary
Constructors Constructor Description GHMarketplacePlan()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetAccountsUrl()Gets accounts url.List<String>getBullets()Gets bullets.StringgetDescription()Gets description.longgetId()Gets id.longgetMonthlyPriceInCents()Gets monthly price in cents.StringgetName()Gets name.longgetNumber()Gets number.GHMarketplacePriceModelgetPriceModel()Gets price model.StringgetState()Gets state.StringgetUnitName()Gets unit name.URLgetUrl()Gets url.longgetYearlyPriceInCents()Gets yearly price in cents.booleanisFreeTrial()Is free trial boolean.GHMarketplaceListAccountBuilderlistAccounts()Starts a builder that list any accounts associated with a plan, including free plans.
-
-
-
Method Detail
-
getUrl
public URL getUrl()
Gets url.- Returns:
- the url
-
getAccountsUrl
public String getAccountsUrl()
Gets accounts url.- Returns:
- the accounts url
-
getId
public long getId()
Gets id.- Returns:
- the id
-
getNumber
public long getNumber()
Gets number.- Returns:
- the number
-
getName
public String getName()
Gets name.- Returns:
- the name
-
getDescription
public String getDescription()
Gets description.- Returns:
- the description
-
getMonthlyPriceInCents
public long getMonthlyPriceInCents()
Gets monthly price in cents.- Returns:
- the monthly price in cents
-
getYearlyPriceInCents
public long getYearlyPriceInCents()
Gets yearly price in cents.- Returns:
- the yearly price in cents
-
getPriceModel
public GHMarketplacePriceModel getPriceModel()
Gets price model.- Returns:
- the price model
-
isFreeTrial
public boolean isFreeTrial()
Is free trial boolean.- Returns:
- the boolean
-
getUnitName
public String getUnitName()
Gets unit name.- Returns:
- the unit name
-
getState
public String getState()
Gets state.- Returns:
- the state
-
listAccounts
public GHMarketplaceListAccountBuilder listAccounts()
Starts a builder that list any accounts associated with a plan, including free plans. For per-seat pricing, you see the list of accounts that have purchased the plan, including the number of seats purchased. When someone submits a plan change that won't be processed until the end of their billing cycle, you will also see the upcoming pending change.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.
- Returns:
- a GHMarketplaceListAccountBuilder instance
- See Also:
- List all GitHub accounts (user or organization) on a specific plan
-
-