Skip to content

Commit ffc8434

Browse files
committed
Fix transactionId typing
1 parent 8f6aa97 commit ffc8434

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "simpaypl/simpay",
33
"description": "Official SimPay API",
44
"type": "library",
5-
"version": "2.0.1",
5+
"version": "2.0.2",
66
"license": "MIT",
77
"minimum-stability": "stable",
88
"require": {

lib/DirectBilling/Traits/TransactionsTrait.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,16 @@
55
trait TransactionsTrait
66
{
77

8-
public function getTransactions(int $serviceId, int $page = 1, int $limit = 15) {
8+
public function getTransactions(int $serviceId, int $page = 1, int $limit = 15)
9+
{
910
return $this->guzzle->request('GET', '/directbilling/' . $serviceId . '/transactions', [
1011
'page' => $page,
1112
'limit' => $limit
1213
]);
1314
}
1415

15-
public function getTransaction(int $serviceId, int $transactionId) {
16+
public function getTransaction(int $serviceId, string $transactionId)
17+
{
1618
return $this->guzzle->request('GET', '/directbilling/' . $serviceId . '/transactions/' . $transactionId);
1719
}
18-
19-
}
20+
}

0 commit comments

Comments
 (0)