@@ -81,7 +81,7 @@ public function getCurrency(): string
8181 * @param array<mixed> $additionalParams
8282 * @return array<mixed>
8383 */
84- public function purchase (int $ amount , string $ customerId , string $ paymentMethodId = null , array $ additionalParams = []): array
84+ public function purchase (int $ amount , string $ customerId , ? string $ paymentMethodId = null , array $ additionalParams = []): array
8585 {
8686 return $ this ->adapter ->purchase ($ amount , $ customerId , $ paymentMethodId , $ additionalParams );
8787 }
@@ -98,7 +98,7 @@ public function purchase(int $amount, string $customerId, string $paymentMethodI
9898 * @param array<mixed> $additionalParams
9999 * @return array<mixed>
100100 */
101- public function authorize (int $ amount , string $ customerId , string $ paymentMethodId = null , array $ additionalParams = []): array
101+ public function authorize (int $ amount , string $ customerId , ? string $ paymentMethodId = null , array $ additionalParams = []): array
102102 {
103103 return $ this ->adapter ->authorize ($ amount , $ customerId , $ paymentMethodId , $ additionalParams );
104104 }
@@ -178,7 +178,7 @@ public function getPayment(string $paymentId): array
178178 * @param array<mixed> $additionalParams Additional parameters (optional)
179179 * @return array<mixed> Result of the update
180180 */
181- public function updatePayment (string $ paymentId , ?string $ paymentMethodId = null , ?int $ amount = null , string $ currency = null , array $ additionalParams = []): array
181+ public function updatePayment (string $ paymentId , ?string $ paymentMethodId = null , ?int $ amount = null , ? string $ currency = null , array $ additionalParams = []): array
182182 {
183183 return $ this ->adapter ->updatePayment ($ paymentId , $ paymentMethodId , $ amount , $ currency , $ additionalParams );
184184 }
@@ -218,7 +218,7 @@ public function createPaymentMethod(string $customerId, string $type, array $det
218218 * @param array<mixed> $address
219219 * @return array<mixed>
220220 */
221- public function updatePaymentMethodBillingDetails (string $ paymentMethodId , string $ type , string $ name = null , string $ email = null , string $ phone = null , array $ address = null ): array
221+ public function updatePaymentMethodBillingDetails (string $ paymentMethodId , string $ type , ? string $ name = null , ? string $ email = null , ? string $ phone = null , ? array $ address = null ): array
222222 {
223223 return $ this ->adapter ->updatePaymentMethodBillingDetails ($ paymentMethodId , $ name , $ email , $ phone , $ address );
224224 }
@@ -307,7 +307,7 @@ public function getCustomer(string $customerId): array
307307 * @param Address $address
308308 * @return array<mixed>
309309 */
310- public function updateCustomer (string $ customerId , string $ name , string $ email , Address $ address = null , ?string $ paymentMethod = null ): array
310+ public function updateCustomer (string $ customerId , string $ name , string $ email , ? Address $ address = null , ?string $ paymentMethod = null ): array
311311 {
312312 return $ this ->adapter ->updateCustomer ($ customerId , $ name , $ email , $ address , $ paymentMethod );
313313 }
0 commit comments