Class MbwayDetails


  • public class MbwayDetails
    extends Object
    MbwayDetails
    • Constructor Detail

      • MbwayDetails

        public MbwayDetails()
    • Method Detail

      • getCheckoutAttemptId

        public String getCheckoutAttemptId()
        The checkout attempt identifier.
        Returns:
        checkoutAttemptId
      • setCheckoutAttemptId

        public void setCheckoutAttemptId​(String checkoutAttemptId)
      • getShopperEmail

        public String getShopperEmail()
        Returns:
        shopperEmail
      • setShopperEmail

        public void setShopperEmail​(String shopperEmail)
      • getTelephoneNumber

        public String getTelephoneNumber()
        Returns:
        telephoneNumber
      • setTelephoneNumber

        public void setTelephoneNumber​(String telephoneNumber)
      • 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 MbwayDetails
      • fromJson

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

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