aidbull / dc-api
Client service for Debit Cards API. Made for Fayrix.
dev-master
2023-08-20 20:05 UTC
Requires
- php: ^8.0
- guzzlehttp/guzzle: ^7.0.1
- illuminate/support: ^8.0
This package is auto-updated.
Last update: 2024-10-20 22:37:55 UTC
README
Debit Card API for Fayrix.
Endpoints
Cards:
Countries:
API-client services
-
CardService's methods:
- get(int $cardId): CardDTO
- balance(int $cardId): float|null
- pin(int $cardId): int|null
- history(int $cardId, DateTime $startDate, DateTime $endDate)
- create(CardDTO $cardData): CardDTO|null
- activate(int $cardId)
- deactivate(int $cardId)
- update(int $cardId, CardDTO $cardData)
- updatePin(int $cardId, int $cardPin)
- load(int $cardId, int $amount)
-
CountryService's methods:
- __invoke(): CountryDTO[]
- get(int $countryId): CountryDTO|null
Installation
Add a package via composer:
composer require aidbull/dc-api
Register service provider (to set config):
php artisan vendor:publish --tag=config --provider="DebitCardsAPI\DebitCardsAPIServiceProvider"