@@ -30,7 +30,7 @@ interface CancelServiceInterface
30
30
* @throws UnzerApiException An UnzerApiException is thrown if there is an error returned on API-request.
31
31
* @throws RuntimeException A RuntimeException is thrown when there is an error while using the SDK.
32
32
*/
33
- public function cancelAuthorization (Authorization $ authorization , float $ amount = null ): Cancellation ;
33
+ public function cancelAuthorization (Authorization $ authorization , ? float $ amount = null ): Cancellation ;
34
34
35
35
/**
36
36
* Performs a Cancellation transaction for the Authorization of the given Payment object.
@@ -44,7 +44,7 @@ public function cancelAuthorization(Authorization $authorization, float $amount
44
44
* @throws UnzerApiException An UnzerApiException is thrown if there is an error returned on API-request.
45
45
* @throws RuntimeException A RuntimeException is thrown when there is an error while using the SDK.
46
46
*/
47
- public function cancelAuthorizationByPayment ($ payment , float $ amount = null ): Cancellation ;
47
+ public function cancelAuthorizationByPayment ($ payment , ? float $ amount = null ): Cancellation ;
48
48
49
49
/**
50
50
* Performs a Cancellation transaction for the given Charge and returns the resulting Cancellation object.
@@ -67,11 +67,11 @@ public function cancelAuthorizationByPayment($payment, float $amount = null): Ca
67
67
public function cancelChargeById (
68
68
$ payment ,
69
69
string $ chargeId ,
70
- float $ amount = null ,
70
+ ? float $ amount = null ,
71
71
?string $ reasonCode = null ,
72
72
?string $ referenceText = null ,
73
- float $ amountNet = null ,
74
- float $ amountVat = null
73
+ ? float $ amountNet = null ,
74
+ ? float $ amountVat = null
75
75
): Cancellation ;
76
76
77
77
/**
@@ -93,11 +93,11 @@ public function cancelChargeById(
93
93
*/
94
94
public function cancelCharge (
95
95
Charge $ charge ,
96
- float $ amount = null ,
96
+ ? float $ amount = null ,
97
97
?string $ reasonCode = null ,
98
98
?string $ referenceText = null ,
99
- float $ amountNet = null ,
100
- float $ amountVat = null
99
+ ? float $ amountNet = null ,
100
+ ? float $ amountVat = null
101
101
): Cancellation ;
102
102
103
103
/**
@@ -119,11 +119,11 @@ public function cancelCharge(
119
119
*/
120
120
public function cancelPayment (
121
121
$ payment ,
122
- float $ amount = null ,
122
+ ? float $ amount = null ,
123
123
?string $ reasonCode = CancelReasonCodes::REASON_CODE_CANCEL ,
124
124
?string $ referenceText = null ,
125
- float $ amountNet = null ,
126
- float $ amountVat = null
125
+ ? float $ amountNet = null ,
126
+ ? float $ amountVat = null
127
127
): array ;
128
128
129
129
/**
@@ -167,5 +167,5 @@ public function cancelChargedPayment($payment, ?Cancellation $cancellation = nul
167
167
* @throws UnzerApiException An UnzerApiException is thrown if there is an error returned on API-request.
168
168
* @throws RuntimeException A RuntimeException is thrown when there is a error while using the SDK.
169
169
*/
170
- public function cancelPaymentAuthorization ($ payment , float $ amount = null ): ?Cancellation ;
170
+ public function cancelPaymentAuthorization ($ payment , ? float $ amount = null ): ?Cancellation ;
171
171
}
0 commit comments