Package com.flutterwave.services
Class PaymentPlan
java.lang.Object
com.flutterwave.services.PaymentPlan
Create and manage payment plans.
- Author:
- Cleopatra Douglas
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncancelPlan(int id) Cancel an existing payment plan.getPlan(int id) Get a single payment plangetPlans()Fetch all payment plans on your account.runCreatePlan(PaymentPlanRequest paymentPlanRequest) Create a payment plan with Flutterwave.updatePlan(int id, UpdatePaymentPlanRequest UpdatePaymentPlanRequest) Update an existing payment plan.
-
Constructor Details
-
PaymentPlan
public PaymentPlan()
-
-
Method Details
-
runCreatePlan
Create a payment plan with Flutterwave.- Parameters:
paymentPlanRequest- bean- Returns:
- Response
-
getPlans
Fetch all payment plans on your account.- Returns:
- ListResponse
-
getPlan
Get a single payment plan- Parameters:
id- int This is the unique id of the payment plan you want to fetch. It is returned in the call to create a payment plan as data.id- Returns:
- Response
-
cancelPlan
Cancel an existing payment plan.- Parameters:
id- int This is the unique id of the payment plan you want to cancel- Returns:
- Response
-
updatePlan
Update an existing payment plan.- Parameters:
id- int This is the unique id of the payment plan you want to fetch. It is returned in the call to create a payment plan as data.idUpdatePaymentPlanRequest- bean- Returns:
- Response
-