public enum Environment extends java.lang.Enum<Environment> implements IEnvironment
| Enum Constant and Description |
|---|
PRODUCTION |
SANDBOX |
| Modifier and Type | Method and Description |
|---|---|
java.net.URI |
getBalancesApi() |
java.net.URI |
getCheckoutApi() |
java.net.URI |
getFilesApi() |
java.net.URI |
getOAuthAuthorizationApi() |
java.net.URI |
getTransfersApi() |
boolean |
isSandbox() |
static Environment |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Environment[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Environment SANDBOX
public static final Environment PRODUCTION
public static Environment[] values()
for (Environment c : Environment.values()) System.out.println(c);
public static Environment valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic java.net.URI getCheckoutApi()
getCheckoutApi in interface IEnvironmentpublic java.net.URI getFilesApi()
getFilesApi in interface IEnvironmentpublic java.net.URI getTransfersApi()
getTransfersApi in interface IEnvironmentpublic java.net.URI getBalancesApi()
getBalancesApi in interface IEnvironmentpublic java.net.URI getOAuthAuthorizationApi()
getOAuthAuthorizationApi in interface IEnvironmentpublic boolean isSandbox()
isSandbox in interface IEnvironment