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 Deprecated Methods Modifier and Type Method 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.GitHub
getRoot()
Deprecated.For access to theGitHub
instance, use a local copy instead of pulling it out of objects.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.
-
-
-
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
-
getRoot
@Deprecated public GitHub getRoot()
Deprecated.For access to theGitHub
instance, use a local copy instead of pulling it out of objects.Get the rootGitHub
instance for this object.- Returns:
- the root
GitHub
instance
-
-