Skip to content

Commit 3f92f27

Browse files
committed
Generate service to fix deprecation warninng
1 parent 0457e19 commit 3f92f27

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

src/Adyen/Service/PaymentsApp/PaymentsAppApi.php

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public function __construct(Client $client)
4848
* @return \Adyen\Model\PaymentsApp\BoardingTokenResponse
4949
* @throws AdyenException
5050
*/
51-
public function generatePaymentsAppBoardingTokenForMerchant(string $merchantId, \Adyen\Model\PaymentsApp\BoardingTokenRequest $boardingTokenRequest, array $requestOptions = null): \Adyen\Model\PaymentsApp\BoardingTokenResponse
51+
public function generatePaymentsAppBoardingTokenForMerchant(string $merchantId, \Adyen\Model\PaymentsApp\BoardingTokenRequest $boardingTokenRequest, ?array $requestOptions = null): \Adyen\Model\PaymentsApp\BoardingTokenResponse
5252
{
5353
$endpoint = $this->baseURL . str_replace(['{merchantId}'], [$merchantId], "/merchants/{merchantId}/generatePaymentsAppBoardingToken");
5454
$response = $this->requestHttp($endpoint, strtolower('POST'), (array) $boardingTokenRequest->jsonSerialize(), $requestOptions);
@@ -65,7 +65,7 @@ public function generatePaymentsAppBoardingTokenForMerchant(string $merchantId,
6565
* @return \Adyen\Model\PaymentsApp\BoardingTokenResponse
6666
* @throws AdyenException
6767
*/
68-
public function generatePaymentsAppBoardingTokenForStore(string $merchantId, string $storeId, \Adyen\Model\PaymentsApp\BoardingTokenRequest $boardingTokenRequest, array $requestOptions = null): \Adyen\Model\PaymentsApp\BoardingTokenResponse
68+
public function generatePaymentsAppBoardingTokenForStore(string $merchantId, string $storeId, \Adyen\Model\PaymentsApp\BoardingTokenRequest $boardingTokenRequest, ?array $requestOptions = null): \Adyen\Model\PaymentsApp\BoardingTokenResponse
6969
{
7070
$endpoint = $this->baseURL . str_replace(['{merchantId}', '{storeId}'], [$merchantId, $storeId], "/merchants/{merchantId}/stores/{storeId}/generatePaymentsAppBoardingToken");
7171
$response = $this->requestHttp($endpoint, strtolower('POST'), (array) $boardingTokenRequest->jsonSerialize(), $requestOptions);
@@ -80,7 +80,7 @@ public function generatePaymentsAppBoardingTokenForStore(string $merchantId, str
8080
* @return \Adyen\Model\PaymentsApp\PaymentsAppResponse
8181
* @throws AdyenException
8282
*/
83-
public function listPaymentsAppForMerchant(string $merchantId, array $requestOptions = null): \Adyen\Model\PaymentsApp\PaymentsAppResponse
83+
public function listPaymentsAppForMerchant(string $merchantId, ?array $requestOptions = null): \Adyen\Model\PaymentsApp\PaymentsAppResponse
8484
{
8585
$endpoint = $this->baseURL . str_replace(['{merchantId}'], [$merchantId], "/merchants/{merchantId}/paymentsApps");
8686
$response = $this->requestHttp($endpoint, strtolower('GET'), null, $requestOptions);
@@ -96,7 +96,7 @@ public function listPaymentsAppForMerchant(string $merchantId, array $requestOpt
9696
* @return \Adyen\Model\PaymentsApp\PaymentsAppResponse
9797
* @throws AdyenException
9898
*/
99-
public function listPaymentsAppForStore(string $merchantId, string $storeId, array $requestOptions = null): \Adyen\Model\PaymentsApp\PaymentsAppResponse
99+
public function listPaymentsAppForStore(string $merchantId, string $storeId, ?array $requestOptions = null): \Adyen\Model\PaymentsApp\PaymentsAppResponse
100100
{
101101
$endpoint = $this->baseURL . str_replace(['{merchantId}', '{storeId}'], [$merchantId, $storeId], "/merchants/{merchantId}/stores/{storeId}/paymentsApps");
102102
$response = $this->requestHttp($endpoint, strtolower('GET'), null, $requestOptions);
@@ -109,12 +109,13 @@ public function listPaymentsAppForStore(string $merchantId, string $storeId, arr
109109
* @param string $merchantId
110110
* @param string $installationId
111111
* @param array|null $requestOptions
112-
112+
113113
* @throws AdyenException
114114
*/
115-
public function revokePaymentsApp(string $merchantId, string $installationId, array $requestOptions = null)
115+
public function revokePaymentsApp(string $merchantId, string $installationId, ?array $requestOptions = null)
116116
{
117117
$endpoint = $this->baseURL . str_replace(['{merchantId}', '{installationId}'], [$merchantId, $installationId], "/merchants/{merchantId}/paymentsApps/{installationId}/revoke");
118118
$this->requestHttp($endpoint, strtolower('POST'), null, $requestOptions);
119+
119120
}
120121
}

0 commit comments

Comments
 (0)