public class Plans extends AbstractApi
client| Modifier and Type | Method and Description |
|---|---|
protected String |
buildUrl() |
protected String |
buildUrl(String planId) |
PlanResponse |
createPlan(CreatePlanRequest request)
Create a plan
https://stripe.com/docs/api/curl#create_plan
|
DeleteResponse |
deletePlan(String planId)
Delete a plan
https://stripe.com/docs/api/curl#delete_plan
|
PlanResponse |
getPlan(String planId)
Retrieve a plan
https://stripe.com/docs/api/curl#retrieve_plan
|
ListPlansResponse |
listPlans(ListPlansRequest request)
List plans
https://stripe.com/docs/api/curl#list_plans
|
PlanResponse |
updatePlan(String planId,
UpdatePlanRequest request)
Update a plan
https://stripe.com/docs/api/curl#update_plan
|
public Plans(Client client)
public PlanResponse createPlan(CreatePlanRequest request)
public PlanResponse getPlan(String planId)
planId - the id of the plan to retrievepublic PlanResponse updatePlan(String planId, UpdatePlanRequest request)
planId - the id of the plan to updatepublic DeleteResponse deletePlan(String planId)
planId - the id of the plan to deletepublic ListPlansResponse listPlans(ListPlansRequest request)
protected String buildUrl()
Copyright © 2014. All rights reserved.