Skip to content

Commit 6b2425f

Browse files
authored
Fix AngazaSHS plugin (#557)
* Fix AngazaSHS plugin * Update function docblock to reflect parameter changes * Remove unused imported model
1 parent f325a93 commit 6b2425f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/backend/packages/inensus/angaza-shs/src/Modules/Api/AngazaSHSApi.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
use App\Exceptions\Manufacturer\ApiCallDoesNotSupportedException;
66
use App\Lib\IManufacturerAPI;
77
use App\Misc\TransactionDataContainer;
8-
use App\Models\Meter\Meter;
8+
use App\Models\Device;
99
use Illuminate\Support\Carbon;
1010
use Illuminate\Support\Facades\Log;
1111
use Inensus\AngazaSHS\Exceptions\AngazaApiResponseException;
@@ -21,7 +21,7 @@ public function __construct(
2121
private ApiRequests $apiRequests,
2222
) {}
2323

24-
public function chargeMeter(TransactionDataContainer $transactionContainer): array {
24+
public function chargeDevice(TransactionDataContainer $transactionContainer): array {
2525
$dayDifferenceBetweenTwoInstallments = $transactionContainer->dayDifferenceBetweenTwoInstallments;
2626
$minimumPurchaseAmount = $transactionContainer->installmentCost;
2727
$minimumPurchaseAmountPerDay =
@@ -81,13 +81,13 @@ public function chargeMeter(TransactionDataContainer $transactionContainer): arr
8181
}
8282

8383
/**
84-
* @param Meter $meters
84+
* @param Device $device
8585
*
8686
* @return void
8787
*
8888
* @throws ApiCallDoesNotSupportedException
8989
*/
90-
public function clearMeter(Meter $meters) {
90+
public function clearDevice(Device $device) {
9191
throw new ApiCallDoesNotSupportedException('This api call does not supported');
9292
}
9393
}

0 commit comments

Comments
 (0)