Class SupportedCardTypes


  • public class SupportedCardTypes
    extends Object
    SupportedCardTypes
    • Constructor Detail

      • SupportedCardTypes

        public SupportedCardTypes()
    • Method Detail

      • getCredit

        public Boolean getCredit()
        Set to **true** to accept credit cards.
        Returns:
        credit
      • setCredit

        public void setCredit​(Boolean credit)
        Set to **true** to accept credit cards.
        Parameters:
        credit -
      • getDebit

        public Boolean getDebit()
        Set to **true** to accept debit cards.
        Returns:
        debit
      • setDebit

        public void setDebit​(Boolean debit)
        Set to **true** to accept debit cards.
        Parameters:
        debit -
      • getDeferredDebit

        public Boolean getDeferredDebit()
        Set to **true** to accept cards that allow deferred debit.
        Returns:
        deferredDebit
      • setDeferredDebit

        public void setDeferredDebit​(Boolean deferredDebit)
        Set to **true** to accept cards that allow deferred debit.
        Parameters:
        deferredDebit -
      • getPrepaid

        public Boolean getPrepaid()
        Set to **true** to accept prepaid cards.
        Returns:
        prepaid
      • setPrepaid

        public void setPrepaid​(Boolean prepaid)
        Set to **true** to accept prepaid cards.
        Parameters:
        prepaid -
      • getUnknown

        public Boolean getUnknown()
        Set to **true** to accept card types for which the terminal can't determine the funding source while offline.
        Returns:
        unknown
      • setUnknown

        public void setUnknown​(Boolean unknown)
        Set to **true** to accept card types for which the terminal can't determine the funding source while offline.
        Parameters:
        unknown -
      • equals

        public boolean equals​(Object o)
        Return true if this SupportedCardTypes object is equal to o.
        Overrides:
        equals in class Object
      • hashCode

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

        public static SupportedCardTypes fromJson​(String jsonString)
                                           throws com.fasterxml.jackson.core.JsonProcessingException
        Create an instance of SupportedCardTypes given an JSON string
        Parameters:
        jsonString - JSON string
        Returns:
        An instance of SupportedCardTypes
        Throws:
        com.fasterxml.jackson.core.JsonProcessingException - if the JSON string is invalid with respect to SupportedCardTypes
      • toJson

        public String toJson()
                      throws com.fasterxml.jackson.core.JsonProcessingException
        Convert an instance of SupportedCardTypes to an JSON string
        Returns:
        JSON string
        Throws:
        com.fasterxml.jackson.core.JsonProcessingException