forked from LiveCarta/PayPal-PHP-Server-SDK
Beta Release 0.5.0 (#3)
* Automated commit message * Automated commit message * Automated commit message * Automated commit message --------- Co-authored-by: PayPalServerSDKs <server-sdks@paypal.com>
This commit is contained in:
50
src/ConfigurationInterface.php
Normal file
50
src/ConfigurationInterface.php
Normal file
@@ -0,0 +1,50 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
/*
|
||||
* PaypalServerSDKLib
|
||||
*
|
||||
* This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
|
||||
*/
|
||||
|
||||
namespace PaypalServerSDKLib;
|
||||
|
||||
use CoreInterfaces\Http\HttpConfigurations;
|
||||
use PaypalServerSDKLib\Authentication\ClientCredentialsAuthCredentialsBuilder;
|
||||
use PaypalServerSDKLib\Logging\LoggingConfigurationBuilder;
|
||||
|
||||
/**
|
||||
* An interface for all configuration parameters required by the SDK.
|
||||
*/
|
||||
interface ConfigurationInterface extends HttpConfigurations
|
||||
{
|
||||
/**
|
||||
* Get current API environment
|
||||
*/
|
||||
public function getEnvironment(): string;
|
||||
|
||||
/**
|
||||
* Get the credentials to use with ClientCredentialsAuth
|
||||
*/
|
||||
public function getClientCredentialsAuth(): ClientCredentialsAuth;
|
||||
|
||||
/**
|
||||
* Get the credentials builder instance to update credentials for ClientCredentialsAuth
|
||||
*/
|
||||
public function getClientCredentialsAuthCredentialsBuilder(): ?ClientCredentialsAuthCredentialsBuilder;
|
||||
|
||||
/**
|
||||
* Represents the logging configurations for API calls.
|
||||
*/
|
||||
public function getLoggingConfigurationBuilder(): ?LoggingConfigurationBuilder;
|
||||
|
||||
/**
|
||||
* Get the base uri for a given server in the current environment.
|
||||
*
|
||||
* @param string $server Server name
|
||||
*
|
||||
* @return string Base URI
|
||||
*/
|
||||
public function getBaseUri(string $server = Server::DEFAULT_): string;
|
||||
}
|
||||
Reference in New Issue
Block a user