$connector
$connector :
Class Customer
__construct(\Ezypay\Contract\IDriver $connector, \Ezypay\Validation\ValidationBase $validation)
Customer constructor.
| \Ezypay\Contract\IDriver | $connector | |
| \Ezypay\Validation\ValidationBase | $validation | ValidationBase |
findAll(array $data = array()) : \Ezypay\Result\ResultProducer
Get the list of customers. You can further filter the list of customer that relates to the individual merchant using merchantId.
| array | $data | EzyPay API parametes (see link) |
findById( $id) : \Ezypay\Result\ResultProducer
Retrieve the details of an existing customer.
| $id | string EzyPay customer ID |
findByReferenceId( $id) : \Ezypay\Result\ResultProducer
Retrieve the details of an existing customer using referenceId.
| $id | string The reference ID of the customer. A unique identifier from a third-party software integration. |
create(array $data) : \Ezypay\Result\ResultProducer
Add the customer along with optional details such as address, payment method, and subscriptions which you can provide later on
| array | $data | The customer data. Refer to request body schema (see link) |
update( $id, array $data) : \Ezypay\Result\ResultProducer
Update an existing customer details.
| $id | string The ID of the customer. A unique identifier generated by the system |
|
| array | $data | The customer data. Refer to request body schema (see link) |
addValidator(\Ezypay\Contract\IValidator $validator)
| \Ezypay\Contract\IValidator | $validator |
result() : \Ezypay\Result\ResultProducer
Result