$connector
$connector :
Class Invoice
__construct(\Ezypay\Contract\IDriver $connector, \Ezypay\Validation\ValidationBase $validation)
Invoice constructor.
| \Ezypay\Contract\IDriver | $connector | |
| \Ezypay\Validation\ValidationBase | $validation | ValidationBase |
findAll(array $data = array()) : \Ezypay\Result\ResultProducer
Returns a list of Invoices.Merchant ID, customer ID, subscription ID are optional fields but they are good filters for setting the scope of query.
| array | $data |
findById( $id) : \Ezypay\Result\ResultProducer
Get an invoice to retrieve detailed information about its payments and statuses.
| $id | string The ID of the invoice. |
getNext( $customerId, $subscriptionId) : \Ezypay\Result\ResultProducer
Get the next invoice to retrieve detailed information about its payments and statuses.
| $customerId | string The ID of the customer. A unique identifier generated by the system. |
|
| $subscriptionId | string The ID of the subscription. |
create(array $data) : \Ezypay\Result\ResultProducer
Creates an ad-hoc invoice that is not part of a customers subscription.
| array | $data | The invoice array. Refer to request body schema (see link) |
update( $id, array $data) : \Ezypay\Result\ResultProducer
Updates an existing invoice information. If the invoice has already been paid, any update request will be rejected.
| $id | string The ID of the invoice. |
|
| array | $data | The invoice object. Refer to request body schema (see link) |
refund( $id) : \Ezypay\Result\ResultProducer
Invoice that has already been paid can be refund in full using this End Point. Note that if an Invoice that is not of success status, can not be refund.
| $id | string The ID of the invoice |
markAsPaid( $id) : \Ezypay\Result\ResultProducer
You can mark the particular Invoice as paid which you have collected offline.
| $id | string The ID of the invoice. |
delete( $id) : \Ezypay\Result\ResultProducer
Write-Off an existing Invoice from billing.
| $id | string The ID of the invoice |
addValidator(\Ezypay\Contract\IValidator $validator)
| \Ezypay\Contract\IValidator | $validator |
result() : \Ezypay\Result\ResultProducer
Result