9
9
namespace UnzerSDK \Interfaces ;
10
10
11
11
use DateTime ;
12
+ use RuntimeException ;
12
13
use UnzerSDK \Exceptions \UnzerApiException ;
13
14
use UnzerSDK \Resources \AbstractUnzerResource ;
14
15
use UnzerSDK \Resources \Basket ;
24
25
use UnzerSDK \Resources \TransactionTypes \Charge ;
25
26
use UnzerSDK \Resources \TransactionTypes \Payout ;
26
27
use UnzerSDK \Resources \TransactionTypes \Shipment ;
27
- use RuntimeException ;
28
28
29
29
interface PaymentServiceInterface
30
30
{
@@ -230,8 +230,8 @@ public function performChargeOnPayment(
230
230
public function chargeAuthorization (
231
231
$ payment ,
232
232
float $ amount = null ,
233
- string $ orderId = null ,
234
- string $ invoiceId = null
233
+ ? string $ orderId = null ,
234
+ ? string $ invoiceId = null
235
235
): Charge ;
236
236
237
237
/**
@@ -253,8 +253,8 @@ public function chargeAuthorization(
253
253
public function chargePayment (
254
254
$ payment ,
255
255
float $ amount = null ,
256
- string $ orderId = null ,
257
- string $ invoiceId = null
256
+ ? string $ orderId = null ,
257
+ ? string $ invoiceId = null
258
258
): Charge ;
259
259
260
260
/**
@@ -303,7 +303,7 @@ public function payout(
303
303
* @throws UnzerApiException An UnzerApiException is thrown if there is an error returned on API-request.
304
304
* @throws RuntimeException A RuntimeException is thrown when there is an error while using the SDK.
305
305
*/
306
- public function ship ($ payment , string $ invoiceId = null , string $ orderId = null ): Shipment ;
306
+ public function ship ($ payment , ? string $ invoiceId = null , ? string $ orderId = null ): Shipment ;
307
307
308
308
/**
309
309
* Initializes a PayPage for charge transaction and returns the PayPage resource.
0 commit comments