aidbull / dc-api
Debit Cards API 客户端服务。为 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-09-20 22:33:12 UTC
README
Fayrix 的借记卡 API。
端点
卡片
国家
API 客户端服务
-
CardService 的方法
- 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 的方法
- __invoke(): CountryDTO[]
- get(int $countryId): CountryDTO|null
安装
通过 composer 添加包
composer require aidbull/dc-api
注册服务提供者(以设置配置)
php artisan vendor:publish --tag=config --provider="DebitCardsAPI\DebitCardsAPIServiceProvider"