ContactBankService
This service class contains methods for manipulating a customers ContactBank model.
All public functions are available in the Twig template renderer.
Namespace
IO\Services
Type | Name | Description |
---|---|---|
|
Repository for contacts payment methods |
Methods
public __construct($contactPaymentRepository)
ContactBankService constructor.
Type |
Name |
Description |
|
Repository for contacts payment methods |
public getBanksOfContact($contactId, $columns = [], $perPage = 50): Collection
Get a list of bank accounts of the contact
Type |
Name |
Description |
|
Id of the contact |
|
|
Optional: What columns of the model to return (Default: ['*']) |
|
|
Optional: Number of bank accounts per page (Default: 50) |
public createContactBank($data):ContactBank
Create a new bank account for a contact and return it
Type |
Name |
Description |
|
Data for the ContactBank model |
public updateContactBank($data, $contactBankId):ContactBank
Update a ContactBank by id
Type |
Name |
Description |
|
The updated data |
|
|
Id of the ContactBank model to update |
public deleteContactBank($contactBankId):bool
Delete a ContactBank
Type |
Name |
Description |
|
Id of the ContactBank model to be deleted |
public findContactBankById($contactBankId):ContactBank
Find a ContactBank model by Id
Type |
Name |
Description |
|
Id of ContactBank to find |