Package com.stripe.service
Class PlanService
java.lang.Object
com.stripe.net.ApiService
com.stripe.service.PlanService
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreate
(PlanCreateParams params) You can now model subscriptions more flexibly using the Prices API.create
(PlanCreateParams params, RequestOptions options) You can now model subscriptions more flexibly using the Prices API.Deleting plans means new subscribers can’t be added.delete
(String plan, RequestOptions options) Deleting plans means new subscribers can’t be added.list()
Returns a list of your plans.list
(RequestOptions options) Returns a list of your plans.list
(PlanListParams params) Returns a list of your plans.list
(PlanListParams params, RequestOptions options) Returns a list of your plans.Retrieves the plan with the given ID.retrieve
(String plan, RequestOptions options) Retrieves the plan with the given ID.retrieve
(String plan, PlanRetrieveParams params) Retrieves the plan with the given ID.retrieve
(String plan, PlanRetrieveParams params, RequestOptions options) Retrieves the plan with the given ID.Updates the specified plan by setting the values of the parameters passed.update
(String plan, RequestOptions options) Updates the specified plan by setting the values of the parameters passed.update
(String plan, PlanUpdateParams params) Updates the specified plan by setting the values of the parameters passed.update
(String plan, PlanUpdateParams params, RequestOptions options) Updates the specified plan by setting the values of the parameters passed.Methods inherited from class com.stripe.net.ApiService
getResponseGetter, request, requestStream
-
Constructor Details
-
PlanService
-
-
Method Details
-
delete
Deleting plans means new subscribers can’t be added. Existing subscribers aren’t affected.- Throws:
StripeException
-
delete
Deleting plans means new subscribers can’t be added. Existing subscribers aren’t affected.- Throws:
StripeException
-
retrieve
Retrieves the plan with the given ID.- Throws:
StripeException
-
retrieve
Retrieves the plan with the given ID.- Throws:
StripeException
-
retrieve
Retrieves the plan with the given ID.- Throws:
StripeException
-
retrieve
public Plan retrieve(String plan, PlanRetrieveParams params, RequestOptions options) throws StripeException Retrieves the plan with the given ID.- Throws:
StripeException
-
update
Updates the specified plan by setting the values of the parameters passed. Any parameters not provided are left unchanged. By design, you cannot change a plan’s ID, amount, currency, or billing cycle.- Throws:
StripeException
-
update
Updates the specified plan by setting the values of the parameters passed. Any parameters not provided are left unchanged. By design, you cannot change a plan’s ID, amount, currency, or billing cycle.- Throws:
StripeException
-
update
Updates the specified plan by setting the values of the parameters passed. Any parameters not provided are left unchanged. By design, you cannot change a plan’s ID, amount, currency, or billing cycle.- Throws:
StripeException
-
update
public Plan update(String plan, PlanUpdateParams params, RequestOptions options) throws StripeException Updates the specified plan by setting the values of the parameters passed. Any parameters not provided are left unchanged. By design, you cannot change a plan’s ID, amount, currency, or billing cycle.- Throws:
StripeException
-
list
Returns a list of your plans.- Throws:
StripeException
-
list
Returns a list of your plans.- Throws:
StripeException
-
list
Returns a list of your plans.- Throws:
StripeException
-
list
public StripeCollection<Plan> list(PlanListParams params, RequestOptions options) throws StripeException Returns a list of your plans.- Throws:
StripeException
-
create
You can now model subscriptions more flexibly using the Prices API. It replaces the Plans API and is backwards compatible to simplify your migration.- Throws:
StripeException
-
create
You can now model subscriptions more flexibly using the Prices API. It replaces the Plans API and is backwards compatible to simplify your migration.- Throws:
StripeException
-