java.lang.Object
org.kohsuke.github.GHMarketplacePlan
A Github Marketplace plan.
- Author:
- Paulo Miguel Almeida
- See Also:
-
Constructor Summary
Constructors -
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
-
getAccountsUrl
Gets accounts url.- Returns:
- the accounts url
-
getBullets
Gets bullets.- Returns:
- the bullets
-
getDescription
Gets description.- Returns:
- the description
-
getId
public long getId()Gets id.- Returns:
- the id
-
getMonthlyPriceInCents
public long getMonthlyPriceInCents()Gets monthly price in cents.- Returns:
- the monthly price in cents
-
getName
Gets name.- Returns:
- the name
-
getNumber
public long getNumber()Gets number.- Returns:
- the number
-
getPriceModel
Gets price model.- Returns:
- the price model
-
getState
Gets state.- Returns:
- the state
-
getUnitName
Gets unit name.- Returns:
- the unit name
-
getUrl
Gets url.- Returns:
- the url
-
getYearlyPriceInCents
public long getYearlyPriceInCents()Gets yearly price in cents.- Returns:
- the yearly price in cents
-
isFreeTrial
public boolean isFreeTrial()Is free trial boolean.- Returns:
- the boolean
-
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:
-