Class SupportedCardTypes


  • public class SupportedCardTypes
    extends Object
    SupportedCardTypes
    • Constructor Detail

      • SupportedCardTypes

        public SupportedCardTypes()
    • Method Detail

      • credit

        public SupportedCardTypes credit​(Boolean credit)
        Set to **true** to accept credit cards.
        Parameters:
        credit - Set to **true** to accept credit cards.
        Returns:
        the current SupportedCardTypes instance, allowing for method chaining
      • getCredit

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

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

        public SupportedCardTypes debit​(Boolean debit)
        Set to **true** to accept debit cards.
        Parameters:
        debit - Set to **true** to accept debit cards.
        Returns:
        the current SupportedCardTypes instance, allowing for method chaining
      • getDebit

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

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

        public SupportedCardTypes deferredDebit​(Boolean deferredDebit)
        Set to **true** to accept cards that allow deferred debit.
        Parameters:
        deferredDebit - Set to **true** to accept cards that allow deferred debit.
        Returns:
        the current SupportedCardTypes instance, allowing for method chaining
      • getDeferredDebit

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

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

        public SupportedCardTypes prepaid​(Boolean prepaid)
        Set to **true** to accept prepaid cards.
        Parameters:
        prepaid - Set to **true** to accept prepaid cards.
        Returns:
        the current SupportedCardTypes instance, allowing for method chaining
      • getPrepaid

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

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

        public SupportedCardTypes unknown​(Boolean unknown)
        Set to **true** to accept card types for which the terminal can't determine the funding source while offline.
        Parameters:
        unknown - Set to **true** to accept card types for which the terminal can't determine the funding source while offline.
        Returns:
        the current SupportedCardTypes instance, allowing for method chaining
      • 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 Set to **true** to accept card types for which the terminal can't determine the funding source while offline.
      • 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 - Set to **true** to accept card types for which the terminal can't determine the funding source while offline.
      • includeNullValues

        public SupportedCardTypes includeNullValues​(boolean includeNullValues)
        Configures whether null values are explicitly serialized in the JSON payload. Default is false.
      • isIncludeNullValues

        public boolean isIncludeNullValues()
        Returns whether null values are explicitly serialized in the JSON payload.
      • setIncludeNullValues

        public void setIncludeNullValues​(boolean includeNullValues)
        Sets whether null values should be explicitly serialized in the JSON payload. Default is false.
      • 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
      • getExplicitNulls

        public Map<String,​Object> getExplicitNulls()
        Returns a map of properties to be merged into the JSON payload as explicit null values.
      • 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