\Ezypay\ResourceCustomer

Class Customer

Summary

Methods
Properties
Constants
__construct()
findAll()
findById()
findByReferenceId()
create()
update()
No public properties found
No constants found
settings()
addValidator()
setResourceType()
result()
No protected properties found
N/A
No private methods found
$connector
$resourceType
$validation
N/A

Properties

$connector

$connector : 

Type

— IDriver

$resourceType

$resourceType : string

Type

string — defautl object name

$validation

$validation : 

Type

— ValidationBase

Methods

findAll()

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.

Parameters

array $data

EzyPay API parametes (see link)

Returns

\Ezypay\Result\ResultProducer

findById()

findById(  $id) : \Ezypay\Result\ResultProducer

Retrieve the details of an existing customer.

Parameters

$id

string EzyPay customer ID

Returns

\Ezypay\Result\ResultProducer

findByReferenceId()

findByReferenceId(  $id) : \Ezypay\Result\ResultProducer

Retrieve the details of an existing customer using referenceId.

Parameters

$id

string The reference ID of the customer. A unique identifier from a third-party software integration.

Returns

\Ezypay\Result\ResultProducer

create()

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

Parameters

array $data

The customer data. Refer to request body schema (see link)

Returns

\Ezypay\Result\ResultProducer

update()

update(  $id, array  $data) : \Ezypay\Result\ResultProducer

Update an existing customer details.

Parameters

$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)

Returns

\Ezypay\Result\ResultProducer

settings()

settings(array  $settings) 

Parameters

array $settings

connector settings

setResourceType()

setResourceType(  $resourceType) 

Parameters

$resourceType

string Name of resource