Enum Class GPayApiClient.BaseUrl

java.lang.Object
java.lang.Enum<GPayApiClient.BaseUrl>
net.libyaguide.gpay.sdk.client.GPayApiClient.BaseUrl
All Implemented Interfaces:
Serializable, Comparable<GPayApiClient.BaseUrl>, java.lang.constant.Constable
Enclosing class:
GPayApiClient

public static enum GPayApiClient.BaseUrl extends Enum<GPayApiClient.BaseUrl>
Enum for GPay API base URLs.
  • Enum Constant Details

    • STAGING

      public static final GPayApiClient.BaseUrl STAGING
      Staging URL for GPay API. Used for testing and development.
    • PRODUCTION

      public static final GPayApiClient.BaseUrl PRODUCTION
      Production URL for GPay API. Use this for live transactions.
  • Method Details

    • values

      public static GPayApiClient.BaseUrl[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static GPayApiClient.BaseUrl valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getUrl

      public String getUrl()
      Gets the URL for the base URL enum.
      Returns:
      The base URL as a string.