Teren-app/app/Services/Sms/SmsClient.php
Simon Pocrnjič 930ac83604 SMS service
2025-10-24 21:39:10 +02:00

24 lines
592 B
PHP

<?php
namespace App\Services\Sms;
use App\Models\SmsProfile;
interface SmsClient
{
/**
* Sends an SMS message using the given profile credentials.
*/
public function send(SmsProfile $profile, SmsMessage $message): SmsResult;
/**
* Returns current credit balance as an integer (normalized provider value).
*/
public function getCreditBalance(SmsProfile $profile): int;
/**
* Returns price quote(s) as an array of strings (provider can return multiple separated by ##).
*/
public function getPriceQuotes(SmsProfile $profile): array;
}