|
38 | 38 | class TheClient |
39 | 39 | { |
40 | 40 | /** @var string */ |
41 | | - public const VERSION = '3.0.0'; |
| 41 | + public const VERSION = '3.0.1'; |
42 | 42 |
|
43 | 43 | private TheConfig $config; |
44 | 44 | private GateServiceInterface $gate; |
@@ -75,7 +75,7 @@ public function getProjects() |
75 | 75 | * |
76 | 76 | * @return array<AccountBalance> |
77 | 77 | */ |
78 | | - public function getAccountsBalances($accountIban = null, $projectId = null, \DateTime $balanceAt = null) |
| 78 | + public function getAccountsBalances($accountIban = null, $projectId = null, ?\DateTime $balanceAt = null) |
79 | 79 | { |
80 | 80 | return $this->api->getAccountsBalances( |
81 | 81 | $accountIban !== null ? new StringValue($accountIban) : null, |
@@ -106,7 +106,7 @@ public function getAccountTransactionHistory(TransactionFilter $filter, $page = |
106 | 106 | * @return PaymentMethodCollection |
107 | 107 | * @throws ApiException |
108 | 108 | */ |
109 | | - public function getActivePaymentMethods(PaymentMethodFilter $filter = null, LanguageCode $languageCode = null, $isRecurring = false, $isDeposit = true) |
| 109 | + public function getActivePaymentMethods(?PaymentMethodFilter $filter = null, ?LanguageCode $languageCode = null, $isRecurring = false, $isDeposit = true) |
110 | 110 | { |
111 | 111 | $paymentMethods = $this |
112 | 112 | ->api |
@@ -199,7 +199,7 @@ public function realizePaymentBySavedAuthorization($parentPaymentUid, RealizePay |
199 | 199 | * @return PaymentCollection<SimplePayment> |
200 | 200 | * @throws ApiException |
201 | 201 | */ |
202 | | - public function getPayments(PaymentsFilter $filter = null, $page = 1, $limit = 25) |
| 202 | + public function getPayments(?PaymentsFilter $filter = null, $page = 1, $limit = 25) |
203 | 203 | { |
204 | 204 | if ($filter === null) { |
205 | 205 | $filter = new PaymentsFilter(); |
@@ -241,7 +241,7 @@ public function getPaymentUrlsForPayment($uid, $languageCode = null) |
241 | 241 | * @return string |
242 | 242 | * @throws ApiException |
243 | 243 | */ |
244 | | - public function getPaymentButtons(CreatePaymentParams $params, PaymentMethodFilter $filter = null, $useInlineAssets = true) |
| 244 | + public function getPaymentButtons(CreatePaymentParams $params, ?PaymentMethodFilter $filter = null, $useInlineAssets = true) |
245 | 245 | { |
246 | 246 | $params = $this->setLanguageCodeIfMissing($params); |
247 | 247 |
|
@@ -402,7 +402,7 @@ public function createPaymentRefund($paymentUid, $amount, $reason) |
402 | 402 | * |
403 | 403 | * @throws ApiException if payment is not paid yet |
404 | 404 | */ |
405 | | - public function generatePaymentConfirmationPdf(string $paymentUid, string $languageCode = null): string |
| 405 | + public function generatePaymentConfirmationPdf(string $paymentUid, ?string $languageCode = null): string |
406 | 406 | { |
407 | 407 | $this->validateUid($paymentUid); |
408 | 408 | return $this->api->generatePaymentConfirmationPdf( |
|
0 commit comments