Skip to content

Commit

Permalink
[create-pull-request] automated change
Browse files Browse the repository at this point in the history
  • Loading branch information
AdyenAutomationBot committed Sep 21, 2023
1 parent c7ed2a9 commit 923fa1c
Show file tree
Hide file tree
Showing 6 changed files with 151 additions and 39 deletions.
6 changes: 3 additions & 3 deletions src/Adyen/Service/BalancePlatform/BalanceAccountsApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -167,15 +167,15 @@ public function createBalanceAccount(\Adyen\Model\BalancePlatform\BalanceAccount
* Create a sweep
*
* @param string $balanceAccountId
* @param \Adyen\Model\BalancePlatform\SweepConfigurationV2 $sweepConfigurationV2
* @param \Adyen\Model\BalancePlatform\CreateSweepConfigurationV2 $createSweepConfigurationV2
* @param array|null $requestOptions
* @return \Adyen\Model\BalancePlatform\SweepConfigurationV2
* @throws AdyenException
*/
public function createSweep(string $balanceAccountId, \Adyen\Model\BalancePlatform\SweepConfigurationV2 $sweepConfigurationV2, array $requestOptions = null): \Adyen\Model\BalancePlatform\SweepConfigurationV2
public function createSweep(string $balanceAccountId, \Adyen\Model\BalancePlatform\CreateSweepConfigurationV2 $createSweepConfigurationV2, array $requestOptions = null): \Adyen\Model\BalancePlatform\SweepConfigurationV2
{
$endpoint = $this->baseURL . str_replace(['{balanceAccountId}'], [$balanceAccountId], "/balanceAccounts/{balanceAccountId}/sweeps");
$response = $this->requestHttp($endpoint, strtolower('POST'), (array) $sweepConfigurationV2->jsonSerialize(), $requestOptions);
$response = $this->requestHttp($endpoint, strtolower('POST'), (array) $createSweepConfigurationV2->jsonSerialize(), $requestOptions);
return ObjectSerializer::deserialize($response, \Adyen\Model\BalancePlatform\SweepConfigurationV2::class);
}
}
56 changes: 56 additions & 0 deletions src/Adyen/Service/BalancePlatform/TransferRoutesApi.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
<?php
/**
* Configuration API
*
* The version of the OpenAPI document: 2
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 6.4.0
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/

namespace Adyen\Service\BalancePlatform;

use Adyen\AdyenException;
use Adyen\Client;
use Adyen\Service;
use Adyen\Model\BalancePlatform\ObjectSerializer;

class TransferRoutesApi extends Service
{
/**
* @var array|string|string[]
*/
private $baseURL;

/**
* TransferRoutesApi constructor.
*
* @param \Adyen\Client $client
* @throws AdyenException
*/
public function __construct(Client $client)
{
parent::__construct($client);

// Create the baseUrl based on live/test and optional live-url-prefix
$this->baseURL = $this->createBaseUrl("https://balanceplatform-api-test.adyen.com/bcl/v2");
}

/**
* Calculate transfer routes
*
* @param \Adyen\Model\BalancePlatform\TransferRouteRequest $transferRouteRequest
* @param array|null $requestOptions
* @return \Adyen\Model\BalancePlatform\TransferRouteResponse
* @throws AdyenException
*/
public function calculateTransferRoutes(\Adyen\Model\BalancePlatform\TransferRouteRequest $transferRouteRequest, array $requestOptions = null): \Adyen\Model\BalancePlatform\TransferRouteResponse
{
$endpoint = $this->baseURL . "/transferRoutes/calculate";
$response = $this->requestHttp($endpoint, strtolower('POST'), (array) $transferRouteRequest->jsonSerialize(), $requestOptions);
return ObjectSerializer::deserialize($response, \Adyen\Model\BalancePlatform\TransferRouteResponse::class);
}
}
7 changes: 3 additions & 4 deletions src/Adyen/Service/Checkout/RecurringApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,13 @@ public function __construct(Client $client)
*
* @param string $storedPaymentMethodId
* @param array|null $requestOptions ['queryParams' => ['shopperReference'=> string, 'merchantAccount'=> string]]
* @return \Adyen\Model\Checkout\StoredPaymentMethodResource
* @throws AdyenException
*/
public function deleteTokenForStoredPaymentDetails(string $storedPaymentMethodId, array $requestOptions = null): \Adyen\Model\Checkout\StoredPaymentMethodResource
public function deleteTokenForStoredPaymentDetails(string $storedPaymentMethodId, array $requestOptions = null)
{
$endpoint = $this->baseURL . str_replace(['{storedPaymentMethodId}'], [$storedPaymentMethodId], "/storedPaymentMethods/{storedPaymentMethodId}");
$response = $this->requestHttp($endpoint, strtolower('DELETE'), null, $requestOptions);
return ObjectSerializer::deserialize($response, \Adyen\Model\Checkout\StoredPaymentMethodResource::class);
$this->requestHttp($endpoint, strtolower('DELETE'), null, $requestOptions);
}

/**
Expand Down
87 changes: 87 additions & 0 deletions src/Adyen/Service/Management/AndroidFilesCompanyLevelApi.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
<?php
/**
* Management API
*
* The version of the OpenAPI document: 1
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 6.4.0
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/

namespace Adyen\Service\Management;

use Adyen\AdyenException;
use Adyen\Client;
use Adyen\Service;
use Adyen\Model\Management\ObjectSerializer;

class AndroidFilesCompanyLevelApi extends Service
{
/**
* @var array|string|string[]
*/
private $baseURL;

/**
* AndroidFilesCompanyLevelApi constructor.
*
* @param \Adyen\Client $client
* @throws AdyenException
*/
public function __construct(Client $client)
{
parent::__construct($client);

// Create the baseUrl based on live/test and optional live-url-prefix
$this->baseURL = $this->createBaseUrl("https://management-test.adyen.com/v1");
}

/**
* Get a list of Android apps
*
* @param string $companyId
* @param array|null $requestOptions ['queryParams' => ['pageNumber'=> int, 'pageSize'=> int, 'packageName'=> string, 'versionCode'=> int]]
* @return \Adyen\Model\Management\AndroidAppsResponse
* @throws AdyenException
*/
public function listAndroidApps(string $companyId, array $requestOptions = null): \Adyen\Model\Management\AndroidAppsResponse
{
$endpoint = $this->baseURL . str_replace(['{companyId}'], [$companyId], "/companies/{companyId}/androidApps");
$response = $this->requestHttp($endpoint, strtolower('GET'), null, $requestOptions);
return ObjectSerializer::deserialize($response, \Adyen\Model\Management\AndroidAppsResponse::class);
}

/**
* Get Android app
*
* @param string $companyId
* @param string $id
* @param array|null $requestOptions
* @return \Adyen\Model\Management\AndroidApp
* @throws AdyenException
*/
public function getAndroidApp(string $companyId, string $id, array $requestOptions = null): \Adyen\Model\Management\AndroidApp
{
$endpoint = $this->baseURL . str_replace(['{companyId}', '{id}'], [$companyId, $id], "/companies/{companyId}/androidApps/{id}");
$response = $this->requestHttp($endpoint, strtolower('GET'), null, $requestOptions);
return ObjectSerializer::deserialize($response, \Adyen\Model\Management\AndroidApp::class);
}

/**
* Get a list of Android certificates
*
* @param string $companyId
* @param array|null $requestOptions ['queryParams' => ['pageNumber'=> int, 'pageSize'=> int, 'certificateName'=> string]]
* @return \Adyen\Model\Management\AndroidCertificatesResponse
* @throws AdyenException
*/
public function listAndroidCertificates(string $companyId, array $requestOptions = null): \Adyen\Model\Management\AndroidCertificatesResponse
{
$endpoint = $this->baseURL . str_replace(['{companyId}'], [$companyId], "/companies/{companyId}/androidCertificates");
$response = $this->requestHttp($endpoint, strtolower('GET'), null, $requestOptions);
return ObjectSerializer::deserialize($response, \Adyen\Model\Management\AndroidCertificatesResponse::class);
}
}
30 changes: 0 additions & 30 deletions src/Adyen/Service/Management/TerminalActionsCompanyLevelApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,36 +39,6 @@ public function __construct(Client $client)
$this->baseURL = $this->createBaseUrl("https://management-test.adyen.com/v1");
}

/**
* Get a list of Android apps
*
* @param string $companyId
* @param array|null $requestOptions ['queryParams' => ['pageNumber'=> int, 'pageSize'=> int, 'packageName'=> string, 'versionCode'=> int]]
* @return \Adyen\Model\Management\AndroidAppsResponse
* @throws AdyenException
*/
public function listAndroidApps(string $companyId, array $requestOptions = null): \Adyen\Model\Management\AndroidAppsResponse
{
$endpoint = $this->baseURL . str_replace(['{companyId}'], [$companyId], "/companies/{companyId}/androidApps");
$response = $this->requestHttp($endpoint, strtolower('GET'), null, $requestOptions);
return ObjectSerializer::deserialize($response, \Adyen\Model\Management\AndroidAppsResponse::class);
}

/**
* Get a list of Android certificates
*
* @param string $companyId
* @param array|null $requestOptions ['queryParams' => ['pageNumber'=> int, 'pageSize'=> int, 'certificateName'=> string]]
* @return \Adyen\Model\Management\AndroidCertificatesResponse
* @throws AdyenException
*/
public function listAndroidCertificates(string $companyId, array $requestOptions = null): \Adyen\Model\Management\AndroidCertificatesResponse
{
$endpoint = $this->baseURL . str_replace(['{companyId}'], [$companyId], "/companies/{companyId}/androidCertificates");
$response = $this->requestHttp($endpoint, strtolower('GET'), null, $requestOptions);
return ObjectSerializer::deserialize($response, \Adyen\Model\Management\AndroidCertificatesResponse::class);
}

/**
* Get a list of terminal actions
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@
use Adyen\Service;
use Adyen\Model\Payments\ObjectSerializer;

class GeneralApi extends Service
class PaymentsApi extends Service
{
/**
* @var array|string|string[]
*/
private $baseURL;

/**
* GeneralApi constructor.
* PaymentsApi constructor.
*
* @param \Adyen\Client $client
* @throws AdyenException
Expand Down

0 comments on commit 923fa1c

Please sign in to comment.