\Ezypay\ResourceSettlement

Class Settlement

Summary

Methods
Properties
Constants
__construct()
latest()
findAll()
getRevenue()
getDeduction()
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

latest()

latest(  $merchantId) : \Ezypay\Result\ResultProducer

Get Latest Settlement

Parameters

$merchantId

string The ID of the merchant. Filter settlements that belongs only to a Merchant.

Returns

\Ezypay\Result\ResultProducer

findAll()

findAll(array  $data) : \Ezypay\Result\ResultProducer

List the settlements based on the given filters. MerchantId is compulsory.

Parameters

array $data

Parameters (see link)

Returns

\Ezypay\Result\ResultProducer

getRevenue()

getRevenue(  $merchantId,   $settlementId) : \Ezypay\Result\ResultProducer

Get Settlement Revenue Details

Parameters

$merchantId

string The ID of the merchant. Filter settlements that belongs only to a Merchant.

$settlementId

integer The ID of the settlement. Filter settlement that belongs to the settlement run.

Returns

\Ezypay\Result\ResultProducer

getDeduction()

getDeduction(  $merchantId,   $settlementId) : \Ezypay\Result\ResultProducer

Get Settlement Deduction Details

Parameters

$merchantId

string The ID of the merchant. Filter settlements that belongs only to a Merchant.

$settlementId

integer The ID of the settlement. Filter plans that belongs to the settlement run.

Returns

\Ezypay\Result\ResultProducer

settings()

settings(array  $settings) 

Parameters

array $settings

connector settings

setResourceType()

setResourceType(  $resourceType) 

Parameters

$resourceType

string Name of resource