99namespace UnzerSDK \Interfaces ;
1010
1111use DateTime ;
12+ use RuntimeException ;
1213use UnzerSDK \Exceptions \UnzerApiException ;
1314use UnzerSDK \Resources \AbstractUnzerResource ;
1415use UnzerSDK \Resources \Basket ;
2425use UnzerSDK \Resources \TransactionTypes \Charge ;
2526use UnzerSDK \Resources \TransactionTypes \Payout ;
2627use UnzerSDK \Resources \TransactionTypes \Shipment ;
27- use RuntimeException ;
2828
2929interface PaymentServiceInterface
3030{
@@ -48,8 +48,8 @@ public function performAuthorization(
4848 Authorization $ authorization ,
4949 $ paymentType ,
5050 $ customer = null ,
51- Metadata $ metadata = null ,
52- Basket $ basket = null
51+ ? Metadata $ metadata = null ,
52+ ? Basket $ basket = null
5353 ): Authorization ;
5454
5555 /**
@@ -130,8 +130,8 @@ public function performCharge(
130130 Charge $ charge ,
131131 $ paymentType ,
132132 $ customer = null ,
133- Metadata $ metadata = null ,
134- Basket $ basket = null
133+ ? Metadata $ metadata = null ,
134+ ? Basket $ basket = null
135135 ): Charge ;
136136
137137 /**
@@ -229,9 +229,9 @@ public function performChargeOnPayment(
229229 */
230230 public function chargeAuthorization (
231231 $ payment ,
232- float $ amount = null ,
233- string $ orderId = null ,
234- string $ invoiceId = null
232+ ? float $ amount = null ,
233+ ? string $ orderId = null ,
234+ ? string $ invoiceId = null
235235 ): Charge ;
236236
237237 /**
@@ -252,9 +252,9 @@ public function chargeAuthorization(
252252 */
253253 public function chargePayment (
254254 $ payment ,
255- float $ amount = null ,
256- string $ orderId = null ,
257- string $ invoiceId = null
255+ ? float $ amount = null ,
256+ ? string $ orderId = null ,
257+ ? string $ invoiceId = null
258258 ): Charge ;
259259
260260 /**
@@ -284,11 +284,11 @@ public function payout(
284284 $ paymentType ,
285285 string $ returnUrl ,
286286 $ customer = null ,
287- string $ orderId = null ,
288- Metadata $ metadata = null ,
289- Basket $ basket = null ,
290- string $ invoiceId = null ,
291- string $ referenceText = null
287+ ? string $ orderId = null ,
288+ ? Metadata $ metadata = null ,
289+ ? Basket $ basket = null ,
290+ ? string $ invoiceId = null ,
291+ ? string $ referenceText = null
292292 ): Payout ;
293293
294294 /**
@@ -303,7 +303,7 @@ public function payout(
303303 * @throws UnzerApiException An UnzerApiException is thrown if there is an error returned on API-request.
304304 * @throws RuntimeException A RuntimeException is thrown when there is an error while using the SDK.
305305 */
306- public function ship ($ payment , string $ invoiceId = null , string $ orderId = null ): Shipment ;
306+ public function ship ($ payment , ? string $ invoiceId = null , ? string $ orderId = null ): Shipment ;
307307
308308 /**
309309 * Initializes a PayPage for charge transaction and returns the PayPage resource.
@@ -328,9 +328,9 @@ public function ship($payment, string $invoiceId = null, string $orderId = null)
328328 */
329329 public function initPayPageCharge (
330330 Paypage $ paypage ,
331- Customer $ customer = null ,
332- Basket $ basket = null ,
333- Metadata $ metadata = null
331+ ? Customer $ customer = null ,
332+ ? Basket $ basket = null ,
333+ ? Metadata $ metadata = null
334334 ): Paypage ;
335335
336336 /**
@@ -356,9 +356,9 @@ public function initPayPageCharge(
356356 */
357357 public function initPayPageAuthorize (
358358 Paypage $ paypage ,
359- Customer $ customer = null ,
360- Basket $ basket = null ,
361- Metadata $ metadata = null
359+ ? Customer $ customer = null ,
360+ ? Basket $ basket = null ,
361+ ? Metadata $ metadata = null
362362 ): Paypage ;
363363
364364 /**
@@ -378,7 +378,7 @@ public function fetchInstallmentPlans(
378378 float $ amount ,
379379 string $ currency ,
380380 float $ effectiveInterest ,
381- DateTime $ orderDate = null
381+ ? DateTime $ orderDate = null
382382 ): InstalmentPlans ;
383383
384384 /**
0 commit comments