-
Notifications
You must be signed in to change notification settings - Fork 103
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[create-pull-request] automated change
- Loading branch information
1 parent
c7ed2a9
commit 923fa1c
Showing
6 changed files
with
151 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
87 changes: 87 additions & 0 deletions
87
src/Adyen/Service/Management/AndroidFilesCompanyLevelApi.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters