Class CheckoutOrder


  • public class CheckoutOrder
    extends Object
    CheckoutOrder
    • Constructor Detail

      • CheckoutOrder

        public CheckoutOrder()
    • Method Detail

      • getOrderData

        public String getOrderData()
        The encrypted order data.
        Returns:
        orderData
      • setOrderData

        public void setOrderData​(String orderData)
      • getPspReference

        public String getPspReference()
        The `pspReference` that belongs to the order.
        Returns:
        pspReference
      • setPspReference

        public void setPspReference​(String pspReference)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • validateJsonObject

        public static void validateJsonObject​(com.google.gson.JsonObject jsonObj)
                                       throws IOException
        Validates the JSON Object and throws an exception if issues found
        Parameters:
        jsonObj - JSON Object
        Throws:
        IOException - if the JSON Object is invalid with respect to CheckoutOrder
      • fromJson

        public static CheckoutOrder fromJson​(String jsonString)
                                      throws IOException
        Create an instance of CheckoutOrder given an JSON string
        Parameters:
        jsonString - JSON string
        Returns:
        An instance of CheckoutOrder
        Throws:
        IOException - if the JSON string is invalid with respect to CheckoutOrder
      • toJson

        public String toJson()
        Convert an instance of CheckoutOrder to an JSON string
        Returns:
        JSON string