public final class PaypalServerSdkClient extends Object implements Configuration
| Modifier and Type | Class and Description |
|---|---|
static class |
PaypalServerSdkClient.Builder
Class to build instances of
PaypalServerSdkClient. |
| Modifier and Type | Method and Description |
|---|---|
String |
getBaseUri()
Get base URI by current environment.
|
String |
getBaseUri(Server server)
Get base URI by current environment.
|
String |
getBaseUri(String server)
Get base URI by current environment.
|
ClientCredentialsAuth |
getClientCredentialsAuth()
The credentials to use with ClientCredentialsAuth.
|
ClientCredentialsAuthModel |
getClientCredentialsAuthModel()
The auth credential model for ClientCredentialsAuth.
|
Environment |
getEnvironment()
Current API environment.
|
ReadonlyHttpClientConfiguration |
getHttpClientConfig()
Http Client Configuration instance.
|
ReadonlyLoggingConfiguration |
getLoggingConfig()
Logging Configuration instance.
|
OAuthAuthorizationController |
getOAuthAuthorizationController()
Get the instance of OAuthAuthorizationController.
|
OrdersController |
getOrdersController()
Get the instance of OrdersController.
|
PaymentsController |
getPaymentsController()
Get the instance of PaymentsController.
|
VaultController |
getVaultController()
Get the instance of VaultController.
|
PaypalServerSdkClient.Builder |
newBuilder()
Builds a new
PaypalServerSdkClient.Builder object. |
static void |
shutdown()
Shutdown the underlying HttpClient instance.
|
long |
timeout()
Deprecated.
This method will be removed in a future version. Use
getHttpClientConfig() instead. |
String |
toString()
Converts this PaypalServerSdkClient into string format.
|
public static void shutdown()
public OrdersController getOrdersController()
public PaymentsController getPaymentsController()
public VaultController getVaultController()
public OAuthAuthorizationController getOAuthAuthorizationController()
public Environment getEnvironment()
getEnvironment in interface Configurationpublic ReadonlyHttpClientConfiguration getHttpClientConfig()
getHttpClientConfig in interface Configurationpublic ReadonlyLoggingConfiguration getLoggingConfig()
getLoggingConfig in interface Configurationpublic ClientCredentialsAuth getClientCredentialsAuth()
getClientCredentialsAuth in interface Configurationpublic ClientCredentialsAuthModel getClientCredentialsAuthModel()
getClientCredentialsAuthModel in interface Configuration@Deprecated public long timeout()
getHttpClientConfig() instead.timeout in interface Configurationpublic String getBaseUri(Server server)
getBaseUri in interface Configurationserver - Server for which to get the base URIpublic String getBaseUri()
getBaseUri in interface Configurationpublic String getBaseUri(String server)
server - string for which to get the base URIpublic String toString()
public PaypalServerSdkClient.Builder newBuilder()
PaypalServerSdkClient.Builder object.
Creates the instance with the state of the current client.PaypalServerSdkClient.Builder objectCopyright © 2025. All rights reserved.