$connector
$connector :
Class Plan
Resource for plans
__construct(\Ezypay\Contract\IDriver $connector, $validation)
Plan constructor.
| \Ezypay\Contract\IDriver | $connector | |
| $validation | ValidationBase |
findAll(array $data = array()) : \Ezypay\Result\ResultProducer
Get list of available plan.
| array | $data |
findById( $id) : \Ezypay\Result\ResultProducer
Get an existing plan with a given planId.
| $id |
create(array $data) : \Ezypay\Result\ResultProducer
Creating a new plans can be done easily via the dashboard page. Alternatively, plans creation are available through API if creation of plans needs to be done on the fly.
| array | $data | The Plan data. Refer to Request Body Schema (see link). |
update( $id, array $data) : \Ezypay\Result\ResultProducer
Update the details of an existing plan, any subscriptions that are linked to the existing plans would not be affected by this change.
| $id | string The ID of the plan. |
|
| array | $data | The Plan data. Refer to Request Body Schema (see link) |
deactivate( $id) : \Ezypay\Result\ResultProducer
Inactivate an existing plan. That that is marked as Inactive would disable it's use from Subscriptions and Online Signup.
| $id | string The ID of the plan. |
addValidator(\Ezypay\Contract\IValidator $validator)
| \Ezypay\Contract\IValidator | $validator |
result() : \Ezypay\Result\ResultProducer
Result