Class MasterpassDetails


  • public class MasterpassDetails
    extends Object
    MasterpassDetails
    • Constructor Detail

      • MasterpassDetails

        public MasterpassDetails()
    • Method Detail

      • getCheckoutAttemptId

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

        public void setCheckoutAttemptId​(String checkoutAttemptId)
      • getFundingSource

        public MasterpassDetails.FundingSourceEnum getFundingSource()
        The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**.
        Returns:
        fundingSource
      • getMasterpassTransactionId

        public String getMasterpassTransactionId()
        The Masterpass transaction ID.
        Returns:
        masterpassTransactionId
      • setMasterpassTransactionId

        public void setMasterpassTransactionId​(String masterpassTransactionId)
      • 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 MasterpassDetails
      • fromJson

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

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