Class GooglePayInfo


  • public class GooglePayInfo
    extends Object
    GooglePayInfo
    • Constructor Detail

      • GooglePayInfo

        public GooglePayInfo()
    • Method Detail

      • getMerchantId

        public String getMerchantId()
        Google Pay [Merchant ID](https://support.google.com/paymentscenter/answer/7163092?hl=en). Character length and limitations: 16 alphanumeric characters or 20 numeric characters.
        Returns:
        merchantId
      • setMerchantId

        public void setMerchantId​(String merchantId)
      • getReuseMerchantId

        public Boolean getReuseMerchantId()
        Indicates whether the Google Pay Merchant ID is used for several merchant accounts. Default value: **false**.
        Returns:
        reuseMerchantId
      • setReuseMerchantId

        public void setReuseMerchantId​(Boolean reuseMerchantId)
      • 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 GooglePayInfo
      • fromJson

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

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