Class GPayApiClient.ApiResponse

java.lang.Object
net.libyaguide.gpay.sdk.client.GPayApiClient.ApiResponse
Enclosing class:
GPayApiClient

public class GPayApiClient.ApiResponse extends Object
Represents the API response including body, headers, and status code.
  • Field Details

    • response

      public final String response
      The response body as a string.
    • headers

      public final Map<String,String> headers
      The response headers as a map.
    • code

      public final int code
      The HTTP status code.
  • Method Details

    • getJsonResponse

      public com.google.gson.JsonObject getJsonResponse()
      Parses the response body as a JsonObject.
      Returns:
      The response as a JsonObject.
    • toString

      public String toString()
      Returns the response body as a string.
      Overrides:
      toString in class Object
      Returns:
      The response body.