java.lang.Object
org.kohsuke.github.GHMarketplacePlan
A Github Marketplace plan.
- Author:
- Paulo Miguel Almeida
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGets accounts url.Gets bullets.Gets description.long
getId()
Gets id.long
Gets monthly price in cents.getName()
Gets name.long
Gets number.Gets price model.getState()
Gets state.Gets unit name.getUrl()
Gets url.long
Gets yearly price in cents.boolean
Is free trial boolean.Starts a builder that list any accounts associated with a plan, including free plans.
-
Constructor Details
-
GHMarketplacePlan
public GHMarketplacePlan()Create default GHMarketplacePlan instance
-
-
Method Details
-
getUrl
Gets url.- Returns:
- the url
-
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
Gets name.- Returns:
- the name
-
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
Gets price model.- Returns:
- the price model
-
isFreeTrial
public boolean isFreeTrial()Is free trial boolean.- Returns:
- the boolean
-
getUnitName
Gets unit name.- Returns:
- the unit name
-
getState
Gets state.- Returns:
- the state
-
getBullets
Gets bullets.- Returns:
- the bullets
-
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:
-